A macro used to make struct's fields public
How to use it?
#[macro_use]
extern crate public;
#[make_public(crate)]
#[derive(Debug, Default)]
struct Foo {
a: i8,
b: char,
c: String,
}
the struct Foo
and its fields will be accessible in current crate globally.
欢迎 star 和使用。
yuchunzhou/public: A crate used to make struct's fields public (github.com)