Repository navigation
Update dependencies to latest stable versions - #55
Merged
Merged
Conversation
Major bumps requiring code changes: - axum 0.7 → 0.8: native async fn in FromRequestParts trait - rand 0.8 → 0.10: thread_rng() → rng(), Rng → RngExt for fill() - reqwest 0.12 → 0.13: rustls-tls feature renamed to rustls (now uses aws-lc-rs as crypto provider instead of ring) Other major bumps (drop-in): - thiserror 1 → 2 - colored 2 → 3 - dirs 5 → 6 - crossterm 0.28 → 0.29 - tower 0.4 → 0.5 - tower-http 0.5 → 0.6 - metrics-exporter-prometheus 0.16 → 0.18 Cleanup: - Remove unused rand dep from taskbook-common All other dependencies bumped to latest compatible via cargo update.
There was a problem hiding this comment.
Pull request overview
Updates the Rust workspace’s direct dependencies to their latest stable versions, with a few code adjustments to accommodate major-version API changes (notably axum and rand).
Changes:
- Bumped key server and client dependencies (axum, tower/tower-http, rand, reqwest, metrics-exporter-prometheus, thiserror, etc.).
- Updated the
AuthUserextractor to the axum 0.8FromRequestPartsasync-trait signature. - Updated session token generation to the rand 0.10 API and removed an unused
randdependency fromtaskbook-common.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/taskbook-server/src/middleware.rs | Updates FromRequestParts impl to axum 0.8’s async signature while preserving auth/session lookup logic. |
| crates/taskbook-server/src/handlers/user.rs | Adjusts RNG imports and token generation to rand 0.10 API (RngExt, rand::rng()). |
| crates/taskbook-server/Cargo.toml | Major dependency bumps for server crate (axum/tower/rand/metrics-exporter-prometheus/thiserror). |
| crates/taskbook-common/Cargo.toml | Bumps thiserror to v2 and removes unused rand dependency. |
| crates/taskbook-client/Cargo.toml | Bumps client dependencies; updates reqwest to 0.13 and switches TLS feature to rustls. |
| Cargo.lock | Regenerates lockfile to reflect upgraded dependency graph. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Collapse nested if into match guards (event.rs) - Use checked_div for percent calculation (taskbook.rs, app.rs) - Apply rustfmt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps all direct dependencies to their latest stable versions. Most patch/minor bumps were picked up via
cargo update; 10 required major version bumps inCargo.toml.Major bumps with code changes
FromRequestPartsimpl inmiddleware.rsto use nativeasync fnin traits (the manualPin<Box<dyn Future>>signature is no longer required).thread_rng()→rng()inhandlers/user.rs;fill()moved fromRngto the newRngExttrait.rustls-tlsfeature renamed torustls. Crypto provider changes fromring(legacy) toaws-lc-rs(actively maintained).Major bumps (drop-in, no code changes)
Cleanup
randdep fromtaskbook-common.Not included
fs2 → fs4:fs2is latest stable (0.4.3) but unmaintained since 2018. Will be a separate PR.Test plan
cargo buildclean on all cratescargo test— 62 tests pass (24 + 35 + 3)cargo clippy --all-targetsclean (no warnings)tbCLI basic flows (tasks, boards, archive)tb-serverregister/login/sync round-trip against Postgres/metricsendpoint still renders under metrics-exporter-prometheus 0.18