Commit cfaeaef
committed
chore(workspace): migrate to Rust edition 2024
- Set `edition = "2024"` in workspace root `Cargo.toml`
- Set `rust-version = "1.85"` in workspace root `Cargo.toml`
- Run `cargo fix --edition` across all workspace packages
- Replace `lazy_static!` with `std::sync::LazyLock` in `udp-tracker-core`
and remove the `lazy_static` crate dependency
- Wrap `std::env::set_var` in `unsafe {}` with safety comment in integration tests
- Fix all new clippy denials triggered by edition 2024 and toolchain update:
- `io_other_error`: use `io::Error::other(...)` throughout console CI helpers
- `unnecessary_semicolon`: remove trailing `;` after match expressions in
event handlers across `udp-tracker-core`, `http-tracker-core`,
`udp-tracker-server`
- `single_match_else`: convert nested match to `if let` in persistence
benchmark DB probe helpers
- `unnecessary_map_or`: use `is_none_or` in `src/app.rs`
- `non_std_lazy_statics`: replace with `LazyLock`
- `borrow_as_ptr`: use `&raw const` in repository tests
- Fix `located-error` doctest assertion for edition 2024 doctest bundle path
- Add `doctest` to `project-words.txt`
- Update issue spec: mark all acceptance criteria DONE, record manual
verification evidence, update progress log and workflow checkpoints
All checks pass:
- `linter all` exits 0
- 954 tests pass (0 failures)
- `pre-commit.sh` exits 0
- No `rust-2024-compatibility` warnings in project source
Closes torrust#17781 parent 42ea432 commit cfaeaef
219 files changed
Lines changed: 737 additions & 735 deletions
File tree
- console/tracker-client/src/console/clients
- checker
- checks
- monitor
- http
- udp
- unified
- contrib/bencode
- benches
- src
- access
- reference
- docs/issues/open
- packages
- axum-health-check-api-server/src
- axum-http-tracker-server
- src
- v1
- handlers
- tests/server
- requests
- v1
- axum-rest-tracker-api-server
- src
- v1
- context
- auth_key
- stats
- torrent
- resources
- whitelist
- tests/server/v1/contract
- context
- axum-server/src
- clock
- src
- clock
- static_time
- configuration/src/v2_0_0
- events/src
- http-protocol/src
- v1
- requests
- responses
- services
- http-tracker-core
- benches
- helpers
- src
- services
- statistics/event
- located-error/src
- metrics/src
- label
- metric_collection
- aggregate
- metric/aggregate
- peer-id/src
- primitives/src
- rest-tracker-api-client/src/v1
- rest-tracker-api-core/src/statistics
- swarm-coordination-registry/src
- statistics/event
- swarm
- test-helpers/src
- torrent-repository-benchmarking
- benches
- helpers
- src
- entry
- repository
- tests
- common
- entry
- repository
- tracker-client/src
- http/client/requests
- udp
- tracker-core
- src
- authentication
- key
- repository
- bin/persistence_benchmark
- driver_bench
- database
- operations
- databases
- driver
- mysql
- postgres
- sqlite
- statistics
- event
- persisted
- torrent
- repository
- whitelist
- tests
- udp-protocol/src
- udp-tracker-core
- benches
- src
- crypto
- services
- statistics
- event
- udp-tracker-server
- src
- banning/event
- handlers
- server
- statistics
- event
- handler
- tests/server
- src
- bootstrap
- jobs
- console/ci
- e2e
- qbittorrent_e2e
- qbittorrent
- types
- tests/servers/api/contract/stats
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments