summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-09-05 16:14:33 +0200
committerDavid Lönnhager <david.l@mullvad.net>2025-09-15 09:21:39 +0200
commitd19946b10cf8c556b3293dd834ec17ce307c7d70 (patch)
treebac73ddae9c82b906b4f6ef61b1ce266a78809f4
parent344b9291ba15b6609d79798d7e21997f97fbc4d9 (diff)
downloadmullvadvpn-d19946b10cf8c556b3293dd834ec17ce307c7d70.tar.xz
mullvadvpn-d19946b10cf8c556b3293dd834ec17ce307c7d70.zip
Hide LWO behind feature flag in CLI
-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,
}