diff --git a/Cargo.toml b/Cargo.toml index 495e2141cf..8b8cc2182c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "generic-array" -version = "0.4.1" +version = "0.5.0" authors = [ "Bartłomiej Kamiński " ] description = "Generic types implementing functionality of arrays" license = "MIT" @@ -19,6 +19,3 @@ serde = { version = "~0.8", optional = true } [dev_dependencies] # this can't yet be made optional, see https://github.com/rust-lang/cargo/issues/1596 serde_json = "~0.8" - -[features] -no_std = [] diff --git a/src/lib.rs b/src/lib.rs index 0e703cf303..cca931fce4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,8 +31,7 @@ //! assert_eq!(array[2], 3); //! # } //! ``` -#![cfg_attr(feature="no_std", no_std)] -#[cfg(feature="no_std")] +#![no_std] extern crate core as std; pub extern crate typenum; extern crate nodrop;