Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove most default-members to speed up builds and reduce duplication #7494

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

faern
Copy link
Member

@faern faern commented Jan 21, 2025

We included almost every crate in default-members. All crates except windows-installer which could not build without specific inputs as to what installers to include (it built a full universal installer, bundling arch specific installers at build time). This list had a lot of duplication and seems like a bit of a mess to maintain.

Since our workspace also contained virtually everything, a simple cargo build built everything, which might not be desired from a build time perspective. This PR reduce the default-members to some "sane default" bare minimum. It includes mullvad-daemon and mullvad-cli because those are the main binaries, and anyone building this project is most likely after those binaries. It also includes mullvad-version since we have a ton of invocations to cargo run --bin mullvad-version, and that does not work if the crate is not a default crate. We could also update all those invocations to add an extra -p mullvad-version to solve the issue. But I felt like the version computation binary was central enough to be included as a default crate 🤷


This change is Reviewable

Copy link

linear bot commented Jan 21, 2025

@faern faern marked this pull request as ready for review January 21, 2025 15:27
@faern faern requested a review from dlon January 21, 2025 15:27
Copy link
Member

@dlon dlon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@faern faern force-pushed the remove-all-libraries-from-default-members-des-1657 branch from 5f7ef52 to 692c562 Compare January 21, 2025 20:08
@faern faern force-pushed the remove-all-libraries-from-default-members-des-1657 branch from 692c562 to 109f1b1 Compare January 22, 2025 06:45
@faern faern merged commit 2f77310 into main Jan 22, 2025
53 checks passed
@faern faern deleted the remove-all-libraries-from-default-members-des-1657 branch January 22, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants