From b7f6ae7535d8b5b8c487994f4b34f6f2d7905060 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 16 Aug 2019 08:26:03 -0700 Subject: [PATCH] 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. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a8f7f729..d8092710 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,10 @@ categories = ["command-line-interface"] [dependencies] unicode-width = "0.1.5" +std = { version = "1.0", package = "rustc-std-workspace-std", optional = true } [dev-dependencies] log = "0.4" + +[features] +rustc-dep-of-std = ['unicode-width/rustc-dep-of-std', 'std']