Skip to content

Commit a9c7f4a

Browse files
committed
Gate behind feature flag
1 parent 607effa commit a9c7f4a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ time = "0.3.44"
4747
once_cell = "1.21.3"
4848
axum = "0.8.6"
4949
tower-http = { version = "0.6.7", features = ["fs"] }
50-
tokio-tungstenite = "0.28.0"
51-
futures-util = "0.3.31"
50+
tokio-tungstenite = { version = "0.28.0", optional = true }
51+
futures-util = { version = "0.3.31", optional = true }
5252

5353
[dev-dependencies]
5454
rcgen = "0.14.5"
5555
tempfile = "3.23.0"
5656
tdx-quote = { version = "0.0.5", features = ["mock"] }
5757

5858
[features]
59-
default = ["azure"]
59+
default = ["azure", "ws"]
60+
61+
# Adds support for Microsoft Azure attestation generation and verification
6062
azure = ["tss-esapi", "az-tdx-vtpm"]
63+
64+
# Adds websocket support
65+
ws = ["tokio-tungstenite", "futures-util"]

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ pub mod attested_get;
33
pub mod attested_tls;
44
pub mod file_server;
55
pub mod health_check;
6+
7+
#[cfg(feature = "azure")]
68
pub mod websockets;
79

810
pub use attestation::AttestationGenerator;

0 commit comments

Comments
 (0)