Commit 30aa864d authored by Yonggang Luo's avatar Yonggang Luo

Add rustc-dep-of-std support.

parent 42916796
Pipeline #8651 failed with stage
in 51 seconds
......@@ -10,7 +10,15 @@ repository = "https://gitlab.redox-os.org/redox-os/posix-regex"
version = "0.1.0"
[dependencies]
# When built as part of libstd
compiler_builtins = {version = "0.1", optional = true}
core = {version = "1.0", optional = true, package = "rustc-std-workspace-core"}
alloc = {version = "1.0", optional = true, package = "rustc-std-workspace-alloc"}
[features]
bench = []
default = ["std"]
std = []
no_std = []
# Unstable feature to support being a libstd dependency
rustc-dep-of-std = ["compiler_builtins", "core", "alloc"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment