Skip to content

Commit dcdd698

Browse files
refactor!: migrate workspace to Rust 1.85 and Edition 2024 (#4114)
- Set edition = "2024" in all 55 member crates - Centralize rust-version = "1.85" in [workspace.package] - Add unsafe to extern "C" blocks (Edition 2024 requirement) - Remove redundant ref/ref mut in match patterns (match ergonomics) - Escape reserved keyword gen as r#gen in examples - Fix RPIT lifetime over-capture in TagTokens::to_spanned and Registry::get_handler - Remove ref from macro-generated pattern in html_element.rs - Update rustfmt.toml and CI workflows to 1.85 - Apply Edition 2024 rustfmt style * chore: regenerate lock * chore(docs): update if-let gaurd stablization version * chore: update rand to 0.10 - Update workspace rand dependency from 0.9 to 0.10 - Rename trait import Rng to RngExt for extension methods - Replace removed SmallRng::from_os_rng() with from_rng() - Remove small_rng feature flag (always available in 0.10) - Keep rand 0.9 as rand_09 in function_router and router examples for lipsum MarkovChain API compatibility * chore: update fake to 5.x * docs: update MSRV to 1.85.0 in Next version docs * refactor: remove redundant Future imports now in Edition 2024 prelude * chore: update MSRV references from 1.84.0 to 1.85.0 in macro tests
1 parent 5ac5ecc commit dcdd698

236 files changed

Lines changed: 1451 additions & 1336 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
fail-fast: false
7171
matrix:
7272
toolchain:
73-
- 1.84.0
73+
- 1.85.0
7474
- stable
7575

7676
steps:
@@ -121,7 +121,7 @@ jobs:
121121
fail-fast: false
122122
matrix:
123123
toolchain:
124-
- 1.84.0
124+
- 1.85.0
125125
- stable
126126
- nightly
127127

@@ -143,7 +143,7 @@ jobs:
143143
# see https://github.com/orgs/community/discussions/25725
144144
RUSTFLAGS: ${{ matrix.toolchain == 'nightly' && '--cfg nightly_yew' || '' }}
145145
run: |
146-
if [[ "${{ matrix.toolchain }}" == "1.84.0" ]]; then
146+
if [[ "${{ matrix.toolchain }}" == "1.85.0" ]]; then
147147
cargo test --all-targets -p yew-agent -p yew-agent-macro -p yew-router
148148
else
149149
ls packages | grep -v "^yew$" | xargs -I {} cargo test --all-targets -p {}
@@ -211,7 +211,7 @@ jobs:
211211
- name: Setup toolchain
212212
uses: dtolnay/rust-toolchain@master
213213
with:
214-
toolchain: 1.84.0
214+
toolchain: 1.85.0
215215

216216
- uses: Swatinem/rust-cache@v2
217217
with:

0 commit comments

Comments
 (0)