Skip to content

Commit

Permalink
Merge branch 'remove-all-libraries-from-default-members-des-1657'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jan 22, 2025
2 parents 8d81cd5 + 109f1b1 commit 2f77310
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
RUSTFLAGS: --deny warnings
run: |
source env.sh
time cargo clippy --locked --all-targets --no-default-features
time cargo clippy --locked --all-targets --all-features
time cargo clippy --workspace --locked --all-targets --no-default-features
time cargo clippy --workspace --locked --all-targets --all-features
clippy-check-android:
name: Clippy linting, Android
Expand Down
40 changes: 5 additions & 35 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ members = [
"mullvad-api",
"mullvad-cli",
"mullvad-daemon",
"mullvad-encrypted-dns-proxy",
"mullvad-exclude",
"mullvad-fs",
"mullvad-ios",
"mullvad-jni",
"mullvad-management-interface",
"mullvad-nsis",
"mullvad-encrypted-dns-proxy",
"mullvad-paths",
"mullvad-problem-report",
"mullvad-relay-selector",
Expand All @@ -45,44 +45,14 @@ members = [
"wireguard-go-rs",
"windows-installer",
]
# The default members may exclude packages that cannot be built for all targets, or that do not always
# need to be built
# Default members dictate what is built when running `cargo build` in the root directory.
# This is set to a minimal set of packages to speed up the build process and avoid building
# crates which might not compile without additional input, such as the `windows-installer` crate.
# To build or test everything, add `--workspace` to your cargo commands.
default-members = [
"android/translations-converter",
"desktop/packages/nseventforwarder",
"mullvad-api",
"mullvad-cli",
"mullvad-daemon",
"mullvad-exclude",
"mullvad-fs",
"mullvad-ios",
"mullvad-jni",
"mullvad-management-interface",
"mullvad-nsis",
"mullvad-encrypted-dns-proxy",
"mullvad-paths",
"mullvad-problem-report",
"mullvad-relay-selector",
"mullvad-setup",
"mullvad-types",
"mullvad-types/intersection-derive",
"mullvad-version",
"talpid-core",
"talpid-dbus",
"talpid-future",
"talpid-macos",
"talpid-net",
"talpid-openvpn",
"talpid-openvpn-plugin",
"talpid-platform-metadata",
"talpid-routing",
"talpid-time",
"talpid-tunnel",
"talpid-tunnel-config-client",
"talpid-windows",
"talpid-wireguard",
"tunnel-obfuscation",
"wireguard-go-rs",
]

# Keep all lints in sync with `test/Cargo.toml`
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ tasks.register<Exec>("generateRelayList") {

onlyIf { isReleaseBuild() || !relayListPath.exists() }

commandLine("cargo", "run", "--bin", "relay_list")
commandLine("cargo", "run", "-p", "mullvad-api", "--bin", "relay_list")

doLast {
val output = standardOutput as ByteArrayOutputStream
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ else
fi

log_info "Updating relays.json..."
cargo run --bin relay_list "${CARGO_ARGS[@]}" > build/relays.json
cargo run -p mullvad-api --bin relay_list "${CARGO_ARGS[@]}" > build/relays.json


log_header "Installing JavaScript dependencies"
Expand Down
7 changes: 5 additions & 2 deletions ci/check-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ set -eux

export RUSTFLAGS="--deny warnings"

# Excluding windows-installer because it builds an actual full installer
# at the build step, which is not desired in a CI environment.

# Build Rust crates
source env.sh
time cargo build --locked --verbose
time cargo build --workspace --exclude windows-installer --locked --verbose

# Test Rust crates
time cargo test --locked --verbose
time cargo test --workspace --exclude windows-installer --locked --verbose

0 comments on commit 2f77310

Please sign in to comment.