diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-07-15 14:00:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 14:00:27 -0400 |
commit | bd6ebb32df11641e148fd0adca41e7188f16afce (patch) | |
tree | 60989e11495a301a93eea3253cfa49c17d1dea1a | |
parent | 1fde15c0bc77e0c5cc6f7cbf27b4e072e1ad6c46 (diff) |
hyper_hello should be in its own crate (#2641)
So that "cargo build" will build it when the gn frontend is eventually
removed.
-rw-r--r-- | BUILD.gn | 2 | ||||
-rw-r--r-- | Cargo.lock | 8 | ||||
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | tools/hyper_hello/Cargo.toml | 11 | ||||
-rw-r--r-- | tools/hyper_hello/hyper_hello.rs (renamed from tools/hyper_hello.rs) | 0 |
5 files changed, 21 insertions, 1 deletions
@@ -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 22a61aee4..6a6c57939 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -451,6 +451,14 @@ dependencies = [ ] [[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" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/Cargo.toml b/Cargo.toml index cbd245a50..1aa173285 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 000000000..44226a143 --- /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 index dc4dceb06..dc4dceb06 100644 --- a/tools/hyper_hello.rs +++ b/tools/hyper_hello/hyper_hello.rs |