Open crlf0710 opened 3 months ago
pub (crate if cfg!(not(feature = "internals"))) mod internal_api {
Maybe more natural as
pub(#[cfg(not(feature = "internals"))] crate) mod internal_api
assuming we accept pub()
means pub
. But you need to copy this huge thing everywhere, unlike the vis
alias.
How is this proposal going to interact with #3323?
For integration testing purpose, it might be necessary to expose more API surface than usual. While it might be possible to directly add integration testing related support, it might be easier to add general purpose mechanism for this.
Strawman proposal:
or
or even
Related existing macro-based crates.