A simple proc macro that makes all fields of a struct public
Find a file
2023-07-05 10:56:10 -04:00
src done 2023-07-05 10:01:41 -04:00
tests fix incorrect description 2023-07-05 10:55:39 -04:00
.gitignore working 2023-07-05 09:56:56 -04:00
Cargo.toml bump to v0.1.1 2023-07-05 10:56:10 -04:00
README.md docs 2023-07-05 09:59:06 -04:00

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,
}