From 90c661f5e1e7f307b686d4444caa6da43ae2e11c Mon Sep 17 00:00:00 2001 From: John Nunley Date: Mon, 4 Sep 2023 13:08:47 -0700 Subject: [PATCH] Remove the std default feature Added in 272bb11eafd22c063bc2e7825070c21443a8fc78 for reasons that are unclear to me. It serves no purpose aside from disabling the API of the entire crate, so it's best to remove it. Signed-off-by: John Nunley --- Cargo.toml | 4 ---- src/lib.rs | 2 -- 2 files changed, 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1a74b6b..9b79fbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,10 +17,6 @@ exclude = ["/.*"] [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] -[features] -default = ["std"] -std = [] - [dependencies] cfg-if = "1" tracing = { version = "0.1.37", default-features = false } diff --git a/src/lib.rs b/src/lib.rs index ef87702..cd144dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,8 +53,6 @@ //! # std::io::Result::Ok(()) //! ``` -#![cfg(feature = "std")] -#![cfg_attr(not(feature = "std"), no_std)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![allow(clippy::useless_conversion, clippy::unnecessary_cast, unused_unsafe)] #![cfg_attr(docsrs, feature(doc_cfg))]