Skip to content

Commit 2e8f0b1

Browse files
committed
Prepare for publication to crates.io
This commit prepares to publish the compiler-builtins crate to crates.io in order for the standard library to directly depend on it from crates.io in rust-lang/rust#56092
1 parent 939cbca commit 2e8f0b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ version = "0.1.0"
66
[lib]
77
test = false
88

9+
[dependencies]
10+
# For more information on this dependency see rust-lang/rust's
11+
# `src/tools/rustc-std-workspace` folder
12+
core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core' }
13+
914
[build-dependencies]
1015
cc = { optional = true, version = "1.0" }
1116

@@ -32,6 +37,9 @@ mangled-names = []
3237
# Don't generate lang items for i128 intrisnics and such
3338
no-lang-items = []
3439

40+
# Only used in the compiler's build system
41+
rustc-dep-of-std = ['c', 'compiler-builtins', 'core']
42+
3543
[[example]]
3644
name = "intrinsics"
3745
required-features = ["c", "compiler-builtins"]

0 commit comments

Comments
 (0)