Skip to content

Conversation

@Hywan
Copy link
Member

@Hywan Hywan commented Feb 3, 2026

This patch adds default-features = false to all dependencies to avoid fetching useless dependencies by default.

One dependency is also removed, and a couple are updated.

Numbers:

  • cargo check --workspace --tests jumps from 725 to 710,
  • cargo tree --all-features --edges all --prefix none | rg -v '^$' | cut -d' ' -f 1 | sort | uniq | wc -l jumps from 538 to 529.

There is a bit more work for the matrix-sdk crate, but I want to tackle them separately.


@codspeed-hq
Copy link

codspeed-hq bot commented Feb 3, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing Hywan:chore-deps-no-default-features (ef7c18b) with main (40c6c33)

Summary

✅ 50 untouched benchmarks

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.84%. Comparing base (40c6c33) to head (ef7c18b).
✅ All tests successful. No failed tests found.

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.
📢 Have feedback on the report? Share it here.

Hywan added 12 commits February 3, 2026 16:23
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.
@Hywan Hywan changed the title chore: Use default-features = false for all dependencies chore: Use default-features = false for most dependencies Feb 3, 2026
@Hywan Hywan force-pushed the chore-deps-no-default-features branch from 082543b to 5e1bdc4 Compare February 3, 2026 15:23
@Hywan Hywan marked this pull request as ready for review February 3, 2026 15:24
@Hywan Hywan requested review from a team as code owners February 3, 2026 15:24
@Hywan Hywan requested review from andybalaam and removed request for a team February 3, 2026 15:24
Copy link
Member

@andybalaam andybalaam left a 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!

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