#pub #visibility #override

macro visible

Attributes to override the visibility of items

1 unstable release

0.0.1 Apr 17, 2021

#24 in #pub

Download history 1992/week @ 2024-07-22 2179/week @ 2024-07-29 1609/week @ 2024-08-05 1823/week @ 2024-08-12 1933/week @ 2024-08-19 1814/week @ 2024-08-26 2037/week @ 2024-09-02 1997/week @ 2024-09-09 2087/week @ 2024-09-16 2182/week @ 2024-09-23 2701/week @ 2024-09-30 2226/week @ 2024-10-07 2521/week @ 2024-10-14 2436/week @ 2024-10-21 2760/week @ 2024-10-28 2233/week @ 2024-11-04

9,984 downloads per month
Used in 5 crates

MIT/Apache

7KB

visible

Repository Crate Documentation

License: Apache OR License: MIT

Attributes to override the visibility of items.

Example

#[visible::StructFields(pub(crate))]
pub struct Test {
    pub a: i32,
    pub b: i64,
}

The struct Test will be rewritten as below:

pub struct Test {
    pub(crate) a: i32,
    pub(crate) b: i64,
}

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in visible by you, shall be licensed as Apache-2.0 and MIT, without any additional terms or conditions.

Dependencies

~1.5MB
~36K SLoC