Skip to content

Commit 3ada315

Browse files
newpavlovsunfishcode
authored andcommitted
add rustc-dep-of-std feature
1 parent bf294c0 commit 3ada315

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
@@ -12,6 +12,13 @@ readme = "README.md"
1212
documentation = "https://docs.rs/wasi"
1313

1414
[dependencies]
15+
# When built as part of libstd
16+
compiler_builtins = { version = "0.1", optional = true }
17+
core = { version = "1.0", optional = true, package = "rustc-std-workspace-core" }
18+
19+
[features]
20+
# Unstable feature to support being a libstd dependency
21+
rustc-dep-of-std = ["compiler_builtins", "core"]
1522

1623
[badges]
1724
maintenance = { status = "experimental" }

0 commit comments

Comments
 (0)