Hi, I have a strong point against it: your crates are going to be christmas trees of exposed APIs unless you are careful. This has a runtime cost, increases the risk of breaking the ABI more often than you should, and often results in unintentional APIs that you may be later beholden to maintain.
Look at the tragedy of failing to use -fvisibility=hidden when building shared libraries with gcc. Best regards, Mikhail 2013/5/30 Gábor Lehel <[email protected]> Currently Rust has different default visibilities in different places: > - `mod` items are private > - `struct` fields and `enum` variants are public > - `trait` methods are public > - `impl` methods are private > - `impls for` are public (by necessity) > > I propose to change this to: > - Everything not `priv` is public >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
