diff --git a/riscv-peripheral/CHANGELOG.md b/riscv-peripheral/CHANGELOG.md index 3014eeed..5dbccd1d 100644 --- a/riscv-peripheral/CHANGELOG.md +++ b/riscv-peripheral/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed +- replaced `paste` crate with `pastey` to fix RUSTSEC-2024-0436 + ## v0.5.0 - 2025-12-19 ### Changed diff --git a/riscv-peripheral/Cargo.toml b/riscv-peripheral/Cargo.toml index 3876093a..187632dd 100644 --- a/riscv-peripheral/Cargo.toml +++ b/riscv-peripheral/Cargo.toml @@ -15,7 +15,7 @@ license = "MIT OR Apache-2.0" [dependencies] embedded-hal = "1.0.0" -paste = "1.0" +pastey = "0.2.2" riscv = { path = "../riscv", version = "0.16.0" } [package.metadata.docs.rs] diff --git a/riscv-peripheral/src/macros.rs b/riscv-peripheral/src/macros.rs index c44c594a..2daff3f2 100644 --- a/riscv-peripheral/src/macros.rs +++ b/riscv-peripheral/src/macros.rs @@ -1,6 +1,6 @@ //! Utility macros for generating standard peripherals-related code in RISC-V PACs. -pub use paste::paste; +pub use pastey::paste; /// Macro to create interfaces to CLINT peripherals in PACs. /// The resulting struct will provide safe access to the CLINT registers. diff --git a/riscv/CHANGELOG.md b/riscv/CHANGELOG.md index e1bfe669..33cd2395 100644 --- a/riscv/CHANGELOG.md +++ b/riscv/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed - Fix the CSR masks to preserve all legal status bits - Modify XS and SD bits to read-only summary fields instead of writable fields +- replaced `paste` crate with `pastey` to fix RUSTSEC-2024-0436 ## v0.16.0 - 2025-12-19 diff --git a/riscv/Cargo.toml b/riscv/Cargo.toml index fdf917da..84b5a08a 100644 --- a/riscv/Cargo.toml +++ b/riscv/Cargo.toml @@ -31,4 +31,4 @@ critical-section = "1.2.0" embedded-hal = "1.0.0" riscv-types = { path = "../riscv-types", version = "0.1.0" } riscv-macros = { path = "../riscv-macros", version = "0.4.0", optional = true } -paste = "1.0.15" +pastey = "0.2.2" diff --git a/riscv/src/lib.rs b/riscv/src/lib.rs index 8e230b24..302a3857 100644 --- a/riscv/src/lib.rs +++ b/riscv/src/lib.rs @@ -48,7 +48,7 @@ #![allow(clippy::eq_op)] #![allow(clippy::identity_op)] -pub use paste::paste; +pub use pastey::paste; pub mod asm; pub mod bits;