Skip to content

Commit b7f6ae7

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 97dc02b commit b7f6ae7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ categories = ["command-line-interface"]
1515

1616
[dependencies]
1717
unicode-width = "0.1.5"
18+
std = { version = "1.0", package = "rustc-std-workspace-std", optional = true }
1819

1920
[dev-dependencies]
2021
log = "0.4"
22+
23+
[features]
24+
rustc-dep-of-std = ['unicode-width/rustc-dep-of-std', 'std']

0 commit comments

Comments
 (0)