-
Notifications
You must be signed in to change notification settings - Fork 371
chore: Use default-features = false for most dependencies
#6104
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
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6104 +/- ##
==========================================
- Coverage 89.84% 89.84% -0.01%
==========================================
Files 363 363
Lines 100638 100638
Branches 100638 100638
==========================================
- Hits 90420 90416 -4
- Misses 6690 6694 +4
Partials 3528 3528 ☔ View full report in Codecov by Sentry. |
This patch adds `default-features = false` to all dependencies to avoid fetching useless dependencies by default. Numbers: - `cargo check --workspace --tests` jumpbs from 725 to 715, - `cargo tree --all-features --edges all --prefix none | rg -v '^$' | cut -d' ' -f 1 | sort | uniq | wc -l` jumps from 538 to 529.
Not only it uses the same version of `clap` everywhere, but it removes 7 dependencies.
`indoc` is used once to declare a string, but it's easily doable with pure Rust without too much boilerplate. Let's remove one macro dep.
default-features = false for all dependenciesdefault-features = false for most dependencies
082543b to
5e1bdc4
Compare
andybalaam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
This patch adds
default-features = falseto all dependencies to avoid fetching useless dependencies by default.One dependency is also removed, and a couple are updated.
Numbers:
cargo check --workspace --testsjumps from 725 to 710,cargo tree --all-features --edges all --prefix none | rg -v '^$' | cut -d' ' -f 1 | sort | uniq | wc -ljumps from 538 to 529.There is a bit more work for the
matrix-sdkcrate, but I want to tackle them separately.