|
3 | 3 | //! the [std documentation](https://doc.rust-lang.org/nightly/std/io/index.html)
|
4 | 4 | //! for a full description of the functionality.
|
5 | 5 | #![allow(stable_features,unused_features)]
|
6 |
| -#![feature(question_mark,const_fn,collections,alloc,unicode,copy_from_slice, |
7 |
| - str_char,try_from,str_internals,align_offset,doc_spotlight, |
8 |
| - slice_internals,non_exhaustive,bind_by_move_pattern_guards)] |
| 6 | +#![feature(question_mark,const_fn,copy_from_slice,try_from,str_internals,align_offset, |
| 7 | + doc_spotlight,slice_internals)] |
| 8 | +#![cfg_attr(any(feature="alloc",feature="collections"),feature(alloc))] |
| 9 | +#![cfg_attr(pattern_guards,feature(bind_by_move_pattern_guards,nll))] |
| 10 | +#![cfg_attr(not(no_collections),feature(collections))] |
| 11 | +#![cfg_attr(non_exhaustive,feature(non_exhaustive))] |
| 12 | +#![cfg_attr(unicode,feature(str_char))] |
| 13 | +#![cfg_attr(unicode,feature(unicode))] |
9 | 14 | #![no_std]
|
10 | 15 |
|
11 | 16 | #[cfg_attr(feature="collections",macro_use)]
|
|
0 commit comments