Mark set-default-factory API as experimental.

This commit is contained in:
Nick Mathewson 2022-11-23 10:52:22 -05:00
parent c04aa9baed
commit f8e103bb94
2 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,8 @@ repository = "https://gitlab.torproject.org/tpo/core/arti.git/"
[features]
default = []
experimental = []
experimental = ["experimental-api"]
experimental-api = []
full = ["pt-client"]
pt-client = ["tor-linkspec/pt-client"]

View File

@ -274,10 +274,8 @@ impl<R: Runtime> ChanMgr<R> {
///
/// This method can be used to e.g. tell Arti to use a proxy for
/// outgoing connections.
pub fn set_default_transport(
&self,
factory: impl factory::ChannelFactory + Send + Sync + 'static,
) {
#[cfg(feature = "experimental-api")]
pub fn set_default_transport(&self, factory: impl factory::ChannelFactory + 'static) {
// TODO pt-client: Perhaps we actually want to take this as part of the constructor instead?
// TODO pt-client: It's not clear to me that we really need this method.
// TODO pt-client: Should this method take an ArcFactory instead?