From 19065703a59ad0ef742db3fa86aff08a55345575 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Thu, 5 Sep 2024 18:36:58 -0700 Subject: [PATCH] Add a convenience feature indicating you're on the latest stable version of Rust (#270) --- Cargo.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 337caa7..12b3e54 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_atomics", + "zeroable_maybe_uninit", +] + [dependencies] bytemuck_derive = { version = "1.4", path = "derive", optional = true }