#pub #visibility #override

macro visible

Attributes to override the visibility of items

1 unstable release

0.0.1 Apr 17, 2021

#21 in #visibility

Download history 1220/week @ 2024-03-14 1292/week @ 2024-03-21 1615/week @ 2024-03-28 1532/week @ 2024-04-04 1809/week @ 2024-04-11 2284/week @ 2024-04-18 3550/week @ 2024-04-25 2466/week @ 2024-05-02 2398/week @ 2024-05-09 2463/week @ 2024-05-16 1504/week @ 2024-05-23 2462/week @ 2024-05-30 2013/week @ 2024-06-06 1944/week @ 2024-06-13 1788/week @ 2024-06-20 1186/week @ 2024-06-27

7,469 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
~35K SLoC