diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-16 17:53:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-16 17:53:43 -0400 |
| commit | 79a974229ad533bc8880a5ce067b4310002c9572 (patch) | |
| tree | 94a3ab3d98ebfbe17dcc88b4f9b2ffb488a2638f /core | |
| parent | 7807afa97274d3b0645d70475fecb37f5dc8ba14 (diff) | |
Move deno_core_http_bench into examples dir (#2127)
Diffstat (limited to 'core')
| -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 |
4 files changed, 10 insertions, 2 deletions
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 |
