Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit d80a778

Browse files
committed
Fix alloc + std builds
There is no reason we shouldn't support both, and we kinda have to due to rust's features resolution.
1 parent 5072646 commit d80a778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939

4040
#[cfg(any(test, feature="std"))] extern crate core;
4141
#[cfg(feature="core2")] extern crate core2;
42-
#[cfg(any(feature = "alloc"))] extern crate alloc;
43-
#[cfg(any(feature = "std"))] use std as alloc;
42+
#[cfg(feature = "alloc")] extern crate alloc;
43+
#[cfg(all(not(feature = "alloc"), feature = "std"))] use std as alloc;
4444
#[cfg(feature="serde")] pub extern crate serde;
4545
#[cfg(all(test,feature="serde"))] extern crate serde_test;
4646

0 commit comments

Comments
 (0)