A rust attribute macro used to make struct/union and its fields public
How to use
add the dependency to your Cargo.toml
[]
= { = "https://github.com/yuchunzhou/public", = "main" }
then, mark the struct with public attribute macro
extern crate public;
the struct Foo and its fields will be visible within the current crate, of cource, you can pass another scope argument to the public attribute macro, like the pub keyword in rust.