Skip to content

Commit a32845f

Browse files
committed
Update support for being built in rust-lang/rust
This commit updates the support necessary for this crate to be built as a dependency of `getopts` which is a dependency of the `test` crate which is built in rust-lang/rust. This change will be required to land rust-lang/rust#63637 where Rust's build system is being tweaked slightly. This is intended to not have any impact on other users of this crate and the `Cargo.toml` features here should only be used by Rust's own build system.
1 parent ff4923a commit a32845f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ according to Unicode Standard Annex #11 rules.
1717

1818
exclude = [ "target/*", "Cargo.lock" ]
1919

20+
[dependencies]
21+
std = { version = "1.0", package = "rustc-std-workspace-std", optional = true }
22+
core = { version = "1.0", package = "rustc-std-workspace-core", optional = true }
23+
compiler_builtins = { version = "0.1", optional = true }
24+
2025
[features]
2126
default = []
2227
no_std = []
2328
bench = []
29+
rustc-dep-of-std = ['std', 'core', 'compiler_builtins']

0 commit comments

Comments
 (0)