summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2023-05-25 16:50:23 +0200
committerLinus Färnstrand <linus@mullvad.net>2023-05-25 16:50:23 +0200
commit0fdb7df2dd774256380b468e634a9166fcab10a6 (patch)
tree2a78640e056980e3a9d67ccac8366c9f9718b768
parent6b3f0e2fb40aaba765b9e7d90874842b0ded922c (diff)
parent2e4ba63420e509c74f17de7174d11ddba6ee3cb1 (diff)
downloadmullvadvpn-0fdb7df2dd774256380b468e634a9166fcab10a6.tar.xz
mullvadvpn-0fdb7df2dd774256380b468e634a9166fcab10a6.zip
Merge branch 'only-build-the-rust-we-need-on-desktop-des-220'
-rwxr-xr-xbuild.sh12
-rw-r--r--mullvad-daemon/Cargo.toml4
2 files changed, 15 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 9bf315604e..30b954c9ad 100755
--- a/build.sh
+++ b/build.sh
@@ -214,7 +214,17 @@ function build {
if [[ -n $current_target ]]; then
cargo_target_arg+=(--target="$current_target")
fi
- cargo build "${cargo_target_arg[@]}" "${CARGO_ARGS[@]}"
+ local cargo_crates_to_build=(
+ -p mullvad-daemon --bin mullvad-daemon
+ -p mullvad-cli --bin mullvad
+ -p mullvad-setup --bin mullvad-setup
+ -p mullvad-problem-report --bin mullvad-problem-report
+ -p talpid-openvpn-plugin --lib
+ )
+ if [[ ("$(uname -s)" == "Linux") ]]; then
+ cargo_crates_to_build+=(-p mullvad-exclude --bin mullvad-exclude)
+ fi
+ cargo build "${cargo_target_arg[@]}" "${CARGO_ARGS[@]}" "${cargo_crates_to_build[@]}"
################################################################################
# Move binaries to correct locations in dist-assets
diff --git a/mullvad-daemon/Cargo.toml b/mullvad-daemon/Cargo.toml
index 709a061326..a6e8faa4d3 100644
--- a/mullvad-daemon/Cargo.toml
+++ b/mullvad-daemon/Cargo.toml
@@ -7,6 +7,10 @@ license = "GPL-3.0"
edition = "2021"
publish = false
+[features]
+# Allow the API server to use to be configured
+api-override = ["mullvad-api/api-override"]
+
[dependencies]
cfg-if = "1.0"
chrono = { version = "0.4.19", features = ["serde"] }