2 releases
0.1.1 | Jul 5, 2023 |
---|---|
0.1.0 | Jul 5, 2023 |
#28 in #usize
386 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
~225–670KB
~16K SLoC