Raise required compiler for serde_derive to Rust 1.71
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Tolnay · committed by David Tolnay · parent d179020 · Browse files · 6 files·+10 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+10 added−10 removed
- other:+10 added−10 removed
Provenance
- Commit
681270e- Tree
a786d64- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
d179020
6 files changed+10 added−10 removed
modified:.github/workflows/ci.yml+2 added-2 removed
96 unmodified lines97989910010110110210310410510610610710810911071 unmodified lines96 unmodified lines - run: cd serde && cargo build --no-default-features --features alloc - run: cd serde && cargo build
derive: name: Rust 1.68.0 name: Rust 1.71.0 runs-on: ubuntu-latest timeout-minutes: 45 steps: - uses: actions/checkout@v6 - uses: dtolnay/rust-toolchain@1.68.0 - uses: dtolnay/rust-toolchain@1.71.0 - run: | sed -i 's/proc-macro2 = { workspace = true/proc-macro2 = { version = "1"/' serde_derive*/Cargo.toml sed -i 's/quote = { workspace = true/quote = { version = "1"/' serde_derive*/Cargo.toml sed -i 's/syn = { workspace = true/syn = { version = "2"/' serde_derive*/Cargo.toml71 unmodified linesmodified:serde/build.rs+2 added-2 removed
43 unmodified lines44 println!("cargo:rustc-check-cfg=cfg(no_std_atomic64)");45 println!("cargo:rustc-check-cfg=cfg(no_target_has_atomic)");46 }47 48- // Current minimum supported version of serde_derive crate is Rust 1.68.49- if minor < 68 {48+ // Current minimum supported version of serde_derive crate is Rust 1.71.49+ if minor < 71 {50 println!("cargo:rustc-cfg=no_serde_derive");51 }52 53 // Support for the `#[diagnostic]` tool attribute namespace16 unmodified linesmodified:serde_core/build.rs+2 added-2 removed
69 unmodified lines70 if minor < 64 {71 println!("cargo:rustc-cfg=no_core_cstr");72 }73 74- // Current minimum supported version of serde_derive crate is Rust 1.68.75- if minor < 68 {74+ // Current minimum supported version of serde_derive crate is Rust 1.71.75+ if minor < 71 {76 println!("cargo:rustc-cfg=no_serde_derive");77 }78 79 // Support for core::num::Saturating and std::num::Saturating stabilized in Rust 1.7434 unmodified linesmodified:serde_derive/Cargo.toml+1 added-1 removed
10 unmodified lines11 keywords = ["serde", "serialization", "no_std", "derive"]12 license = "MIT OR Apache-2.0"13 readme = "crates-io.md"14 repository = "https://github.com/serde-rs/serde"15-rust-version = "1.68"15+rust-version = "1.71"16 17 [features]18 default = []19 deserialize_in_place = []23 unmodified linesmodified:serde_derive_internals/Cargo.toml+1 added-1 removed
8 unmodified lines9 homepage = "https://serde.rs"10 keywords = ["serde", "serialization"]11 license = "MIT OR Apache-2.0"12 repository = "https://github.com/serde-rs/serde"13-rust-version = "1.68"13+rust-version = "1.71"14 15 [lib]16 path = "lib.rs"17 15 unmodified linesmodified:README.md+2 added-2 removed
1-# Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde msrv]][Rust 1.56] [![serde_derive msrv]][Rust 1.68]1+# Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde msrv]][Rust 1.56] [![serde_derive msrv]][Rust 1.71]2 3 [Build Status]: https://img.shields.io/github/actions/workflow/status/serde-rs/serde/ci.yml?branch=master4 [actions]: https://github.com/serde-rs/serde/actions?query=branch%3Amaster5 [Latest Version]: https://img.shields.io/crates/v/serde.svg6 [crates.io]: https://crates.io/crates/serde7 [serde msrv]: https://img.shields.io/crates/msrv/serde.svg?label=serde%20msrv&color=lightgray8 [serde_derive msrv]: https://img.shields.io/crates/msrv/serde_derive.svg?label=serde_derive%20msrv&color=lightgray9 [Rust 1.56]: https://blog.rust-lang.org/2021/10/21/Rust-1.56.0/10-[Rust 1.68]: https://blog.rust-lang.org/2023/03/09/Rust-1.68.0/10+[Rust 1.71]: https://blog.rust-lang.org/2023/07/13/Rust-1.71.0/11 12 **Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and generically.**13 14 ---100 unmodified lines