Skip to content

Commit 5aaa07a

Browse files
Crzyrndmnicholasbishop
authored andcommitted
Remove unconditional dependency on alloc
alloc is only required for tests so just make no_std conditional on tests|"std" instead.
1 parent 194a832 commit 5aaa07a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,9 @@
111111
//! [`ufmt`]: https://docs.rs/ufmt/
112112
//! [`defmt`]: https://defmt.ferrous-systems.com/
113113
114-
#![cfg_attr(not(feature = "std"), no_std)]
114+
#![cfg_attr(not(any(test, feature = "std")), no_std)]
115115
#![feature(c_variadic)]
116116

117-
extern crate alloc;
118-
119117
use core::{ffi::*, fmt};
120118

121119
pub mod output;

0 commit comments

Comments
 (0)