From bd6ebb32df11641e148fd0adca41e7188f16afce Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 15 Jul 2019 14:00:27 -0400 Subject: [PATCH] hyper_hello should be in its own crate (#2641) So that "cargo build" will build it when the gn frontend is eventually removed. --- BUILD.gn | 2 +- Cargo.lock | 8 ++++++++ Cargo.toml | 1 + tools/hyper_hello/Cargo.toml | 11 +++++++++++ tools/{ => hyper_hello}/hyper_hello.rs | 0 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 tools/hyper_hello/Cargo.toml rename tools/{ => hyper_hello}/hyper_hello.rs (100%) diff --git a/BUILD.gn b/BUILD.gn index 909d04ce59..32ec776496 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -12,7 +12,7 @@ group("default") { } rust_executable("hyper_hello") { - source_root = "tools/hyper_hello.rs" + source_root = "tools/hyper_hello/hyper_hello.rs" extern_rlib = [ "hyper", "ring", diff --git a/Cargo.lock b/Cargo.lock index 22a61aee43..6a6c57939b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -450,6 +450,14 @@ dependencies = [ "webpki-roots 0.16.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "hyper_hello" +version = "0.0.1" +dependencies = [ + "hyper 0.12.30 (registry+https://github.com/rust-lang/crates.io-index)", + "ring 0.14.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "idna" version = "0.1.5" diff --git a/Cargo.toml b/Cargo.toml index cbd245a501..1aa1732857 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,4 +2,5 @@ members = [ "cli", "core", + "tools/hyper_hello", ] diff --git a/tools/hyper_hello/Cargo.toml b/tools/hyper_hello/Cargo.toml new file mode 100644 index 0000000000..44226a1438 --- /dev/null +++ b/tools/hyper_hello/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "hyper_hello" +version = "0.0.1" + +[dependencies] +hyper = "0.12.30" +ring = "0.14.6" + +[[bin]] +name = "hyper_hello" +path = "hyper_hello.rs" diff --git a/tools/hyper_hello.rs b/tools/hyper_hello/hyper_hello.rs similarity index 100% rename from tools/hyper_hello.rs rename to tools/hyper_hello/hyper_hello.rs