Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hazmat feature and module for exporting crate internals #15

Open
prestwich opened this issue Jan 24, 2025 · 0 comments
Open

hazmat feature and module for exporting crate internals #15

prestwich opened this issue Jan 24, 2025 · 0 comments

Comments

@prestwich
Copy link
Member

Some things like BatchFuture, RouteFuture and much of the Router interface are public to allow testing and implementing custom transports. These should be hidden behind some sort of feature, as rust-analyzer will currently suggest importing them, which is very rarely what users actually want

#[cfg_attr(not(feature = "hazmat"), doc(hidden))]
pub mod hazmat {
    pub use ....;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant