Skip to content

build(deps): update dependencies to latest major versions#16

Merged
jrollin merged 1 commit into
mainfrom
chore/update-deps
Jun 24, 2026
Merged

build(deps): update dependencies to latest major versions#16
jrollin merged 1 commit into
mainfrom
chore/update-deps

Conversation

@jrollin

@jrollin jrollin commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

Updates all workshop dependencies to their latest major versions and syncs the related code and docs.

Crate Before After Code change
clap 4.5 4.6 none
rand 0.8 0.10 yes (breaking)
cli-table 0.4 0.5 none
reqwest 0.12 0.13 none (now uses rustls)
thiserror 1.0 2.0 none
mockito 1.4 1.7 none

Code changes

rand 0.10 breaking API, in 5_cli and 6_api chifoumi.rs:

  • use rand::Rng -> use rand::RngExt
  • rand::thread_rng() -> rand::rng()
  • rng.gen_range(..) -> rng.random_range(..)

Docs

  • 5_cli/README.md: rand snippet rewritten to 0.10 API; version bumps (rand, clap)
  • root README.md: corrected toolchain line (typo 1.8.8 -> tested 1.96.0, min 1.80+)

Verification

cargo fmt --check, build, clippy --all-targets, and test all pass (23 tests green, including mockito + reqwest integration tests).

- rand 0.8 -> 0.10 (Rng::thread_rng/gen_range -> rng/random_range, RngExt)
- thiserror 1.0 -> 2.0
- reqwest 0.12 -> 0.13
- cli-table 0.4 -> 0.5
- mockito 1.4 -> 1.7
- clap 4.5 -> 4.6

Sync workshop docs (rand/clap snippets, toolchain version) with upgraded code.
@jrollin jrollin merged commit c80343a into main Jun 24, 2026
1 check passed
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.

1 participant