diff options
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | core/BUILD.gn | 4 | ||||
-rw-r--r-- | core/Cargo.toml | 8 | ||||
-rw-r--r-- | core/examples/http_bench.js (renamed from core/http_bench.js) | 0 | ||||
-rw-r--r-- | core/examples/http_bench.rs (renamed from core/http_bench.rs) | 0 |
5 files changed, 11 insertions, 2 deletions
diff --git a/Cargo.lock b/Cargo.lock index a9c6a2298..c2ece7528 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -202,6 +202,7 @@ dependencies = [ "libc 0.2.51 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.39 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] diff --git a/core/BUILD.gn b/core/BUILD.gn index e74c26cca..821d5a46b 100644 --- a/core/BUILD.gn +++ b/core/BUILD.gn @@ -54,7 +54,7 @@ if (is_win) { } rust_executable("deno_core_http_bench") { - source_root = "http_bench.rs" + source_root = "examples/http_bench.rs" deps = [ ":deno_core_deps", ] @@ -62,7 +62,7 @@ rust_executable("deno_core_http_bench") { } rust_test("deno_core_http_bench_test") { - source_root = "http_bench.rs" + source_root = "examples/http_bench.rs" deps = [ ":deno_core_deps", ] diff --git a/core/Cargo.toml b/core/Cargo.toml index e00b91689..32cd6fe79 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -19,3 +19,11 @@ lazy_static = "1.3.0" libc = "0.2.51" log = "0.4.6" serde_json = "1.0.39" + +[[example]] +name = "deno_core_http_bench" +path = "examples/http_bench.rs" + +# tokio is only used for deno_core_http_bench +[dev_dependencies] +tokio = "0.1.18" diff --git a/core/http_bench.js b/core/examples/http_bench.js index 8eb764b55..8eb764b55 100644 --- a/core/http_bench.js +++ b/core/examples/http_bench.js diff --git a/core/http_bench.rs b/core/examples/http_bench.rs index e4598a7b3..e4598a7b3 100644 --- a/core/http_bench.rs +++ b/core/examples/http_bench.rs |