diff --git a/crates/tor-chanmgr/Cargo.toml b/crates/tor-chanmgr/Cargo.toml index 4b91a5e19..ae66e9b66 100644 --- a/crates/tor-chanmgr/Cargo.toml +++ b/crates/tor-chanmgr/Cargo.toml @@ -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"] diff --git a/crates/tor-chanmgr/src/lib.rs b/crates/tor-chanmgr/src/lib.rs index 98b707765..69e748c39 100644 --- a/crates/tor-chanmgr/src/lib.rs +++ b/crates/tor-chanmgr/src/lib.rs @@ -274,10 +274,8 @@ impl ChanMgr { /// /// 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?