Skip to content

Commit f791b1a

Browse files
authored
Use cfg_attr instead (#51)
1 parent a88b10c commit f791b1a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

oscars/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
//! Things that may be contained here in: allocators, garbage collectors, memory
44
//! management primitives.
55
6-
#![no_std]
6+
#![cfg_attr(not(any(test, feature = "std")), no_std)]
77

88
extern crate self as oscars;
99

1010
extern crate alloc as rust_alloc;
1111

12-
#[cfg(feature = "std")]
13-
extern crate std;
14-
1512
#[cfg(feature = "mark_sweep")]
1613
pub use crate::collectors::mark_sweep::*;
1714
#[cfg(feature = "mark_sweep")]

0 commit comments

Comments
 (0)