Skip to content

Commit cff7514

Browse files
committed
add necessary feature gates for no_std feature
1 parent 4d29812 commit cff7514

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
html_favicon_url = "https://unicode-rs.github.io/unicode-rs_sm.png")]
4848

4949
#![cfg_attr(feature = "no_std", no_std)]
50-
#![cfg_attr(feature = "no_std", feature(no_std, core))]
50+
#![cfg_attr(feature = "no_std", feature(no_std, core, core_prelude, core_slice_ext, core_str_ext))]
5151

5252
#![cfg_attr(test, feature(test, unicode))]
5353

src/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ fn cargo(b: &mut Bencher) {
2828
}
2929

3030
#[bench]
31+
#[allow(deprecated)]
3132
fn stdlib(b: &mut Bencher) {
3233
let string = iter::repeat('a').take(4096).collect::<String>();
3334

0 commit comments

Comments
 (0)