From e98c391f1476ed5e408d406d244f2c51473c4abb Mon Sep 17 00:00:00 2001 From: Wojciech Graj Date: Tue, 25 Aug 2026 16:10:08 +0200 Subject: [PATCH] Make crate no_std unconditionally std isn't required for the crate's functionality, so the std flag is functionally useless. And judging by this crate's history, it seems unlikely that functionality requiring std will ever be added. --- enum_index/Cargo.toml | 6 +----- enum_index/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/enum_index/Cargo.toml b/enum_index/Cargo.toml index 384bcfd..0c7b437 100644 --- a/enum_index/Cargo.toml +++ b/enum_index/Cargo.toml @@ -6,16 +6,12 @@ license = "MIT" description = "Trait and macros for extracting Enum variant index and creating Enum by variant index" keywords = ["enum", "macros", "index"] -categories = ["no-std", "data-structures"] +categories = ["no-std::no-alloc", "data-structures"] homepage = "https://github.com/regresscheck/enum_index" readme = "../README.md" -[features] -default = ["std"] -std = [] - [dev-dependencies] enum_index_derive = "0.2.0" #enum_index_derive = { path = "../enum_index_derive"} diff --git a/enum_index/src/lib.rs b/enum_index/src/lib.rs index 859b305..37ce71a 100644 --- a/enum_index/src/lib.rs +++ b/enum_index/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(not(any(feature = "std", test)), no_std)] +#![no_std] pub trait EnumIndex { fn enum_index(&self) -> usize;