Skip to content

Commit

Permalink
Prepare for inclusion into libstd
Browse files Browse the repository at this point in the history
This applies the same change as gimli-rs/gimli#503 to this crate.
  • Loading branch information
alexcrichton committed May 13, 2020
1 parent 3879fc5 commit 246f68c
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 @@ -18,6 +18,12 @@ flate2 = { version = "1", optional = true }
indexmap = { version = "1.1", optional = true }
wasmparser = { version = "0.54", 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' }
compiler_builtins = { version = '0.1.2', optional = true }
alloc = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-alloc' }

[dev-dependencies]
memmap = "0.7"

Expand All @@ -38,6 +44,10 @@ wasm = ["wasmparser"]

default = ["read", "compression"]

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

[[example]]
name = "nm"
required-features = ["read"]
Expand Down

0 comments on commit 246f68c

Please sign in to comment.