-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from libcollections to liballoc (gated on an "alloc" feature)
libcollections was recently merged into liballoc: rust-lang/rust#42648 I went ahead and also added an "alloc" feature which no_std users can use to opt into liballoc features (i.e. any code using Vec). This should have no effect on anything but no_std usage. It does make it possible for people without allocators to use curve25519-dalek if they want though. Might be nice for "bare metal" development. All that said, from what I can gather liballoc, while not "stable", should likely stick around for the forseeable future. Some backstory on the liballoc/libcollections merge here: rust-lang/rust#42565
- Loading branch information
1 parent
e879869
commit 9f1d7fa
Showing
4 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
// - Henry de Valence <[email protected]> | ||
|
||
#![cfg_attr(not(feature = "std"), no_std)] | ||
#![cfg_attr(not(feature = "std"), feature(collections))] | ||
#![cfg_attr(feature = "alloc", feature(alloc))] | ||
#![cfg_attr(feature = "nightly", feature(i128_type))] | ||
#![cfg_attr(feature = "bench", feature(test))] | ||
|
||
|
@@ -58,8 +58,8 @@ extern crate core; | |
#[cfg(feature = "std")] | ||
extern crate rand; | ||
|
||
#[cfg(not(feature = "std"))] | ||
extern crate collections; | ||
#[cfg(feature = "alloc")] | ||
extern crate alloc; | ||
|
||
// Modules for low-level operations directly on field elements and curve points. | ||
|
||
|