diff --git a/ext/net/lib.rs b/ext/net/lib.rs index 068a865eb2..8909c6f40f 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -94,7 +94,7 @@ pub struct DefaultTlsOptions { /// using type alias for a `Option>` could work, but there's a high chance /// that there might be another type alias pointing to a `Option>`, which /// would override previously used alias. -pub struct UnsafelyIgnoreCertificateErrors(Option>); +pub struct UnsafelyIgnoreCertificateErrors(pub Option>); pub fn init( root_cert_store: Option, diff --git a/ext/net/ops.rs b/ext/net/ops.rs index 7f8a97df38..158f255157 100644 --- a/ext/net/ops.rs +++ b/ext/net/ops.rs @@ -278,13 +278,13 @@ where } #[derive(Deserialize)] -struct ConnectArgs { +pub struct ConnectArgs { transport: String, #[serde(flatten)] transport_args: ArgsEnum, } -async fn op_connect( +pub async fn op_connect( state: Rc>, args: ConnectArgs, _: (), diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs index 58b6147cb6..89879da68d 100644 --- a/ext/net/ops_tls.rs +++ b/ext/net/ops_tls.rs @@ -751,7 +751,7 @@ where }) } -async fn op_connect_tls( +pub async fn op_connect_tls( state: Rc>, args: ConnectTlsArgs, _: (),