From 4dbb4bb9b4e9ffb6b9297408c388e6ad88c4eb97 Mon Sep 17 00:00:00 2001 From: Jonas Schneider-Bensch Date: Thu, 16 Jan 2025 13:37:47 +0100 Subject: [PATCH 1/2] Use `std::Error` on feature `std` --- src/drbg.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drbg.rs b/src/drbg.rs index 5eef3db6f..8f9d0eed6 100644 --- a/src/drbg.rs +++ b/src/drbg.rs @@ -24,6 +24,10 @@ impl fmt::Display for Error { } } +#[cfg(feature = "std")] +impl std::error::Error for Error {} + +#[cfg(not(feature = "std"))] impl core::error::Error for Error {} pub struct Drbg { From 88c0f55cacebeb4dbedba959642a00ecdfc52c54 Mon Sep 17 00:00:00 2001 From: Jonas Schneider-Bensch Date: Thu, 16 Jan 2025 13:48:29 +0100 Subject: [PATCH 2/2] MSRV note in Readme --- Readme.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Readme.md b/Readme.md index 70f387217..174ddf304 100644 --- a/Readme.md +++ b/Readme.md @@ -47,6 +47,11 @@ libcrux uses the following configurations for its hardware abstractions - **simd256** assumes 256 bit SIMD instructions on the platform This implies AVX and AVX2 on x64 CPUs. +## Minimum Supported Rust Version (MSRV) + +The default feature set has a MSRV of `1.78.0`. `no_std` environments +are supported starting from Rust version `1.81.0`. + ## Randomness libcrux provides a DRBG implementation that can be used standalone (`drbg::Drbg`)