summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mullvad-cli/Cargo.toml3
-rw-r--r--mullvad-types/Cargo.toml3
-rw-r--r--mullvad-types/src/relay_constraints.rs1
3 files changed, 7 insertions, 0 deletions
diff --git a/mullvad-cli/Cargo.toml b/mullvad-cli/Cargo.toml
index 754563ff5b..c09fd64d4a 100644
--- a/mullvad-cli/Cargo.toml
+++ b/mullvad-cli/Cargo.toml
@@ -14,6 +14,9 @@ workspace = true
name = "mullvad"
path = "src/main.rs"
+[features]
+lwo = ["mullvad-types/lwo"]
+
[dependencies]
anyhow = { workspace = true }
chrono = { workspace = true }
diff --git a/mullvad-types/Cargo.toml b/mullvad-types/Cargo.toml
index 36efa91eda..fcad67d35a 100644
--- a/mullvad-types/Cargo.toml
+++ b/mullvad-types/Cargo.toml
@@ -10,6 +10,9 @@ rust-version.workspace = true
[lints]
workspace = true
+[features]
+lwo = []
+
[dependencies]
either = "1.11"
chrono = { workspace = true, features = ["clock", "serde"] }
diff --git a/mullvad-types/src/relay_constraints.rs b/mullvad-types/src/relay_constraints.rs
index 013153524e..39a8f58e63 100644
--- a/mullvad-types/src/relay_constraints.rs
+++ b/mullvad-types/src/relay_constraints.rs
@@ -640,6 +640,7 @@ pub enum SelectedObfuscation {
Udp2Tcp,
Shadowsocks,
Quic,
+ #[cfg_attr(all(feature = "clap", not(feature = "lwo")), clap(skip))]
Lwo,
}