A crate used to make struct/union and its fields public
How to use it?
add the dependency to your Cargo.toml
[]
= { = "https://github.com/yuchunzhou/public", = "main" }
then, mark the struct with the make_public macro
extern crate public;
the struct Foo and its fields will be exported to the outside world, also you can limit the items' visibility within a
given scope like the pub restrictions in Rust.