2019-10-22 10:13:49 -07:00
|
|
|
[package]
|
|
|
|
|
name = "examples"
|
|
|
|
|
version = "0.0.0"
|
|
|
|
|
publish = false
|
|
|
|
|
edition = "2018"
|
|
|
|
|
|
2020-04-02 23:16:00 +02:00
|
|
|
# If you copy one of the examples into a new project, you should be using
|
|
|
|
|
# [dependencies] instead.
|
2019-10-22 10:13:49 -07:00
|
|
|
[dev-dependencies]
|
2020-12-09 09:42:05 -08:00
|
|
|
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing"] }
|
2020-12-15 23:24:38 -05:00
|
|
|
tokio-util = { version = "0.6.0", path = "../tokio-util", features = ["full"] }
|
|
|
|
|
tokio-stream = { version = "0.1", path = "../tokio-stream" }
|
|
|
|
|
|
|
|
|
|
async-stream = "0.3"
|
2020-07-13 16:46:59 -07:00
|
|
|
tracing = "0.1"
|
|
|
|
|
tracing-subscriber = { version = "0.2.7", default-features = false, features = ["fmt", "ansi", "env-filter", "chrono", "tracing-log"] }
|
2020-12-19 15:57:16 -08:00
|
|
|
bytes = { git = "https://github.com/tokio-rs/bytes" }
|
2019-11-07 05:09:10 +09:00
|
|
|
futures = "0.3.0"
|
2019-12-03 12:28:36 +08:00
|
|
|
http = "0.2"
|
|
|
|
|
serde = "1.0"
|
|
|
|
|
serde_derive = "1.0"
|
|
|
|
|
serde_json = "1.0"
|
|
|
|
|
httparse = "1.0"
|
|
|
|
|
time = "0.1"
|
2019-10-22 10:13:49 -07:00
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "chat"
|
|
|
|
|
path = "chat.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "connect"
|
|
|
|
|
path = "connect.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "echo-udp"
|
|
|
|
|
path = "echo-udp.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "echo"
|
|
|
|
|
path = "echo.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "hello_world"
|
|
|
|
|
path = "hello_world.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "print_each_packet"
|
|
|
|
|
path = "print_each_packet.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "proxy"
|
|
|
|
|
path = "proxy.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "tinydb"
|
|
|
|
|
path = "tinydb.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "udp-client"
|
|
|
|
|
path = "udp-client.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "udp-codec"
|
|
|
|
|
path = "udp-codec.rs"
|
2019-12-03 12:28:36 +08:00
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "tinyhttp"
|
|
|
|
|
path = "tinyhttp.rs"
|