Skip to content

Commit b862ec7

Browse files
committed
Prepare for crates.io inclusion into libstd
See rust-lang/rust#56092
1 parent e4f478d commit b862ec7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ test = false
2121
[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dependencies]
2222
libc = { version = "0.2", default-features = false }
2323

24+
[dependencies]
25+
# For more information on these dependencies see rust-lang/rust's
26+
# `src/tools/rustc-std-workspace` folder
27+
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
28+
compiler_builtins = { version = '0.1.0', optional = true }
29+
2430
[dev-dependencies]
2531
rand = "0.3"
2632

@@ -37,3 +43,4 @@ debug = []
3743

3844
# Enable experimental support for the standard library's unstable allocator API.
3945
allocator-api = []
46+
rustc-dep-of-std = ['core', 'compiler_builtins/rustc-dep-of-std']

0 commit comments

Comments
 (0)