alloc is only required for tests so just make no_std conditional on tests|"std" instead.
@@ -111,11 +111,9 @@
//! [`ufmt`]: https://docs.rs/ufmt/
//! [`defmt`]: https://defmt.ferrous-systems.com/
-#![cfg_attr(not(feature = "std"), no_std)]
+#![cfg_attr(not(any(test, feature = "std")), no_std)]
#![feature(c_variadic)]
-extern crate alloc;
-
use core::{ffi::*, fmt};
pub mod output;