Skip to content

Commit

Permalink
Merge pull request #503 from alexcrichton/dep-of-std
Browse files Browse the repository at this point in the history
Prepare for inclusion into libstd
  • Loading branch information
philipc authored May 14, 2020
2 parents b93f0b9 + bbf141d commit 895fb64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ fallible-iterator = { version = "0.2.0", default-features = false, optional = tr
indexmap = { version = "1.0.2", optional = true }
stable_deref_trait = { version = "1.1.0", default-features = false, optional = true }

# Internal feature, only used when building as part of libstd, not part of the
# stable interface of this crate.
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
alloc = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-alloc' }
compiler_builtins = { version = '0.1.2', optional = true }

[dev-dependencies]
crossbeam = "0.7.1"
getopts = "0.2"
Expand All @@ -39,6 +45,10 @@ write = ["indexmap"]
std = ["fallible-iterator/std", "stable_deref_trait/std"]
default = ["read", "write", "std", "fallible-iterator", "endian-reader"]

# Internal feature, only used when building as part of libstd, not part of the
# stable interface of this crate.
rustc-dep-of-std = ['core', 'alloc', 'compiler_builtins']

[profile.bench]
debug = true
codegen-units = 1
Expand Down

0 comments on commit 895fb64

Please sign in to comment.