Skip to content

Commit 6f9699d

Browse files
committed
build: make alloc a normal dependency
The `alloc` feature was stabilized with rustc-1.36, so drop the unstable tag and make it a core dependency. Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
1 parent 3c917ab commit 6f9699d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ISO-8859-1 based string.
1919

2020
The requirements for this project are:
2121

22-
* `rustc >= 1.31.0`
22+
* `rustc >= 1.36.0`
2323

2424
### Build
2525

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@
1010
1111
// We currently need some unstable features:
1212
//
13-
// * We import `liballoc` since we want to explicitly allow running in no-std environments with
14-
// custom allocators.
15-
//
1613
// * We use `doc_cfg` to run conditional code in rustdoc compilations. This is, again, related to
1714
// `no_std`, since we want to make sure the rustdoc examples still work correctly.
18-
#![feature(alloc, doc_cfg)]
15+
#![feature(doc_cfg)]
1916

2017
// We do not depend on `libstd`, but pull it in for our unit tests and documentation.
2118
#![cfg_attr(not(any(test, rustdoc)), no_std)]

0 commit comments

Comments
 (0)