Skip to content

Commit 9a9d063

Browse files
committed
chore(transport): feature-gate tcp-tls
1 parent 8af6f5b commit 9a9d063

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

msg-transport/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ tokio-openssl.workspace = true
2020
tracing.workspace = true
2121
thiserror.workspace = true
2222
derive_more.workspace = true
23-
openssl.workspace = true
2423

2524
# QUIC
2625
quinn = { workspace = true, optional = true }
2726
rcgen = { workspace = true, optional = true }
2827

28+
# TLS
29+
openssl = { workspace = true, optional = true }
30+
2931
[dev-dependencies]
3032
tracing-subscriber = "0.3"
3133

3234
[features]
3335
default = []
3436
quic = ["dep:quinn", "dep:rcgen"]
37+
tcp-tls = ["dep:openssl"]

msg-transport/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub mod ipc;
2121
#[cfg(feature = "quic")]
2222
pub mod quic;
2323
pub mod tcp;
24+
#[cfg(feature = "tcp-tls")]
2425
pub mod tcp_tls;
2526

2627
/// A trait for address types that can be used by any transport.

0 commit comments

Comments
 (0)