diff --git a/units/src/lib.rs b/units/src/lib.rs index 189e11aff..1d7f47ab0 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -4,6 +4,7 @@ //! //! This library provides basic types used by the Rust Bitcoin ecosystem. +#![no_std] // Experimental features we need. #![cfg_attr(docsrs, feature(doc_auto_cfg))] // Coding conventions. @@ -13,7 +14,6 @@ // Exclude lints we don't think are valuable. #![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134 #![allow(clippy::manual_range_contains)] // More readable than clippy's format. -#![no_std] #[cfg(feature = "alloc")] extern crate alloc;