-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust: hyper on tokio-proto/service (#2619)
Refresh for hyper benchmark based on tokio-proto and tokio-service. serde-derive is used for json serialization as that's what people will do in real app.
- Loading branch information
1 parent
1efd6a4
commit 09a729d
Showing
5 changed files
with
50 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
[package] | ||
name = "hello" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
authors = ["Steve Klabnik <steve@steveklabnik.com>", "Alexander Polyakov <plhk@sdf.org>"] | ||
|
||
[dependencies] | ||
net2 = "0.2" | ||
futures = "0.1" | ||
pretty_env_logger = "0.1" | ||
log = "0.3.6" | ||
tokio-core = "0.1" | ||
tokio-proto = "0.1" | ||
tokio-service = "0.1" | ||
num_cpus = "1.2" | ||
serde = "0.9" | ||
serde_json = "0.9" | ||
serde_derive = "0.9" | ||
mime = "0.2" | ||
|
||
[dependencies.hyper] | ||
git = "https://github.com/hyperium/hyper/" | ||
rev = "39a53fcd3364634125dafcf4d7a1d191241a7ff0" | ||
rev = "43cf9aefe8f9147a0f08aa0f9d609d275549fd7c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ fw_depends postgresql rust | |
|
||
cargo clean | ||
cargo build --release | ||
cargo run --release & | ||
./target/release/hello & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
RUST_VERSION="1.13.0" | ||
RUST_VERSION="1.16.0" | ||
|
||
fw_installed rust && return 0 | ||
|
||
|