From c4b21c84a92ddb8e040db421c9ab98753373da57 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Thu, 5 Sep 2024 18:30:40 -0700 Subject: [PATCH] Add a convenience feature indicating you're on the latest stable version of Rust --- Cargo.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 337caa7..83fe983 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,23 @@ nightly_float = [] # Improved documentation using the nightly toolchain nightly_docs = [] +# Enables all features that are both sound and supported on the latest stable +# version of Rust, with the exception of `extern_crate_alloc` and +# `extern_crate_std`. +# Note: Enabling this feature opts out of any MSRV guarantees! +latest_stable_rust = [ + # Keep this list sorted. + "aarch64_simd", + "align_offset", + "const_zeroed", + "derive", + "min_const_generics", + "must_cast", + "wasm_simd", + "zeroable_atomic", + "zeroable_maybe_uninit", +] + [dependencies] bytemuck_derive = { version = "1.4", path = "derive", optional = true }