Raise required compiler for serde_derive to Rust 1.65
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 b517ec9 · Browse files · 6 files·+14 added−14 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+14 added−14 removed
- other:+14 added−14 removed
Provenance
- Commit
d656b4d- Tree
c1329d0- Author
David Tolnay <dtolnay@gmail.com>- Committer
David Tolnay <dtolnay@gmail.com>- Parent
b517ec9
6 files changed+14 added−14 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.61.0 name: Rust 1.65.0 runs-on: ubuntu-latest timeout-minutes: 45 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@1.61.0 - uses: dtolnay/rust-toolchain@1.65.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.61.49- if minor < 61 {48+ // Current minimum supported version of serde_derive crate is Rust 1.65.49+ if minor < 65 {50 println!("cargo:rustc-cfg=no_serde_derive");51 }52 53 // Support for the `#[diagnostic]` tool attribute namespace16 unmodified linesmodified:serde_core/build.rs+5 added-5 removed
63 unmodified lines64 println!("cargo:rustc-cfg=no_std_atomic");65 }66 }67 68- // Current minimum supported version of serde_derive crate is Rust 1.61.69- if minor < 61 {70- println!("cargo:rustc-cfg=no_serde_derive");71- }72-68 // Support for core::ffi::CStr and alloc::ffi::CString stabilized in Rust 1.64.69 // https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#c-compatible-ffi-types-in-core-and-alloc70 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.65.75+ if minor < 65 {76+ println!("cargo:rustc-cfg=no_serde_derive");77+ }78+79 // Support for core::num::Saturating and std::num::Saturating stabilized in Rust 1.7480 // https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html#stabilized-apis81 if minor < 74 {82 println!("cargo:rustc-cfg=no_core_num_saturating");31 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.61"15+rust-version = "1.65"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.61"13+rust-version = "1.65"14 15 [lib]16 path = "lib.rs"17 15 unmodified linesmodified:README.md+3 added-3 removed
1-# Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde msrv]][Rust 1.56] [![serde_derive msrv]][Rust 1.61]1+# Serde   [![Build Status]][actions] [![Latest Version]][crates.io] [![serde msrv]][Rust 1.56] [![serde_derive msrv]][Rust 1.65]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.html10-[Rust 1.61]: https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html9+[Rust 1.56]: https://blog.rust-lang.org/2021/10/21/Rust-1.56.0/10+[Rust 1.65]: https://blog.rust-lang.org/2022/11/03/Rust-1.65.0/11 12 **Serde is a framework for *ser*ializing and *de*serializing Rust data structures efficiently and generically.**13 14 ---100 unmodified lines