Exploring New RFCs: `pub(api)` Visibility and API Boundaries
A new pre-RFC proposes `pub(api)` visibility to enforce crate-internal API boundaries. This aims to enhance encapsulation by allowing developers to define which parts of their crate's API are exposed to other crates. The proposal also discusses static enforcement mechanisms to ensure these boundaries are adhered to, potentially leading to more robust and maintainable codebases. This could significantly impact how Rust developers structure and share their libraries.