2 releases
0.1.1 | Jul 5, 2023 |
---|---|
0.1.0 | Jul 5, 2023 |
#31 in #usize
160 downloads per month
Used in shame
3KB
A simple attribute that makes all fields public on a struct.
Usage:
#[pub_fields]
pub struct MyStruct {
a: usize,
b: usize,
c: usize,
}
=>
pub struct MyStruct {
pub a: usize,
pub b: usize,
pub c: usize,
}
Dependencies
~280–730KB
~17K SLoC