#pub #visibility #override

deprecated macro visible

Attributes to override the visibility of items

1 unstable release

0.0.1 Apr 17, 2021

#20 in #visibility

Download history 1519/week @ 2023-12-04 1744/week @ 2023-12-11 740/week @ 2023-12-18 431/week @ 2023-12-25 760/week @ 2024-01-01 1681/week @ 2024-01-08 1445/week @ 2024-01-15 1841/week @ 2024-01-22 1668/week @ 2024-01-29 1454/week @ 2024-02-05 1108/week @ 2024-02-12 1060/week @ 2024-02-19 1338/week @ 2024-02-26 1635/week @ 2024-03-04 1288/week @ 2024-03-11 1214/week @ 2024-03-18

5,503 downloads per month
Used in 4 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
~33K SLoC