Expand description

puball is a library to help you get rid of some situation that you have to endlessly add pub keyword to a huge struct.

Example

[dependencies]
puball = "0.1.1"
mod iphone {
    use puball::pub_all;

    pub_all!{
        struct NoPrivacy {
            a: i32,
            b: String,
            c: bool,
        }
    }
}

use iphone::NoPrivacy;

let np = NoPrivacy {
    a: 1,
    b: String::new(),
    c: true,
};

assert_eq!(1, np.a);
assert!(np.c);

Macros

Transforming a non-public struct to a public struct. Require normal struct declaration syntax.