Pre-RFC: `pub(api)` Visibility Proposal for Rust
A new pre-RFC discusses the introduction of `pub(api)` visibility in Rust, aimed at statically enforcing crate-internal API boundaries. This proposal suggests using `pub(api)` as a weak keyword to manage visibility, allowing developers to define APIs that are public within a crate but not exposed externally. This can significantly improve encapsulation and modularity in large Rust projects, providing a more flexible and powerful way to manage API boundaries compared to existing mechanisms like `pub(in path)`.