Skip to content

Commit

Permalink
Remove std feature
Browse files Browse the repository at this point in the history
  • Loading branch information
CryZe committed Aug 26, 2019
1 parent 48501c2 commit c698184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ matrix:
- rust: 1.31.0
# verify `no_std`
- rust: 1.36.0
env: FEATURES="--no-default-features"

cache:
apt: true
Expand Down
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ build = "build.rs"
version_check = "0.1"

[features]
default = ["std"]
std = []
nightly = []
9 changes: 4 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
all(
__unicase__core_and_alloc,
not(test),
not(feature = "std"),
),
no_std,
)]
Expand Down Expand Up @@ -53,14 +52,14 @@
#[cfg(feature = "nightly")]
extern crate test;

#[cfg(all(__unicase__core_and_alloc, not(test), not(feature = "std")))]
#[cfg(all(__unicase__core_and_alloc, not(test)))]
extern crate alloc;
#[cfg(all(__unicase__core_and_alloc, not(test), not(feature = "std")))]
#[cfg(all(__unicase__core_and_alloc, not(test)))]
use alloc::string::String;

#[cfg(not(all(__unicase__core_and_alloc, not(test), not(feature = "std"))))]
#[cfg(not(all(__unicase__core_and_alloc, not(test))))]
extern crate std as alloc;
#[cfg(not(all(__unicase__core_and_alloc, not(test), not(feature = "std"))))]
#[cfg(not(all(__unicase__core_and_alloc, not(test))))]
extern crate std as core;

use alloc::borrow::Cow;
Expand Down

0 comments on commit c698184

Please sign in to comment.