Skip to content

Fix(no_std): boxed not in collections #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 25, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@
//! }
//! ```
#![cfg_attr(not(feature = "std"), feature(no_std))]
#![cfg_attr(not(feature = "std"), feature(alloc))]
#![cfg_attr(not(feature = "std"), feature(collections))]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "nightly", feature(test))]
Expand All @@ -392,6 +393,8 @@
#![cfg_attr(feature = "nightly", plugin(compiler_error))]
//#![warn(missing_docs)]

#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(not(feature = "std"))]
extern crate collections;
#[cfg(feature = "regexp")]
Expand All @@ -415,7 +418,8 @@ macro_rules! compiler_error {
mod std {
#[macro_use]
pub use core::{fmt, cmp, iter, option, result, ops, slice, str, mem, convert};
pub use collections::{boxed, vec, string};
pub use alloc::boxed;
pub use collections::{vec, string};
pub mod prelude {
pub use core::prelude as v1;
}
Expand Down