2019-10-22 10:13:49 -07:00
|
|
|
[package]
|
|
|
|
|
name = "examples"
|
|
|
|
|
version = "0.0.0"
|
|
|
|
|
publish = false
|
2023-06-12 02:21:50 +09:00
|
|
|
edition = "2021"
|
2024-10-23 18:48:07 +02:00
|
|
|
license = "MIT"
|
2019-10-22 10:13:49 -07:00
|
|
|
|
2020-04-02 23:16:00 +02:00
|
|
|
# If you copy one of the examples into a new project, you should be using
|
2021-12-21 21:02:18 +08:00
|
|
|
# [dependencies] instead, and delete the **path**.
|
2019-10-22 10:13:49 -07:00
|
|
|
[dev-dependencies]
|
2021-12-21 21:02:18 +08:00
|
|
|
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing"] }
|
|
|
|
|
tokio-util = { version = "0.7.0", path = "../tokio-util", features = ["full"] }
|
2021-05-08 12:54:30 +02:00
|
|
|
tokio-stream = { version = "0.1", path = "../tokio-stream" }
|
2020-12-15 23:24:38 -05:00
|
|
|
|
2020-07-13 16:46:59 -07:00
|
|
|
tracing = "0.1"
|
2022-01-07 20:13:28 -08:00
|
|
|
tracing-subscriber = { version = "0.3.1", default-features = false, features = ["fmt", "ansi", "env-filter", "tracing-log"] }
|
2020-12-22 19:09:26 -06:00
|
|
|
bytes = "1.0.0"
|
2020-12-22 20:08:43 +01:00
|
|
|
futures = { version = "0.3.0", features = ["thread-pool"]}
|
2025-09-15 19:22:57 +09:00
|
|
|
http = "1"
|
2019-12-03 12:28:36 +08:00
|
|
|
serde = "1.0"
|
|
|
|
|
serde_derive = "1.0"
|
|
|
|
|
serde_json = "1.0"
|
|
|
|
|
httparse = "1.0"
|
2021-10-15 13:21:08 +00:00
|
|
|
httpdate = "1.0"
|
2022-09-27 23:18:13 +02:00
|
|
|
once_cell = "1.5.2"
|
2020-12-22 20:08:43 +01:00
|
|
|
|
2026-03-26 11:17:27 -04:00
|
|
|
[target.'cfg(target_os = "linux")'.dev-dependencies]
|
|
|
|
|
libc = "0.2"
|
|
|
|
|
|
2025-10-10 11:31:41 +08:00
|
|
|
[target.'cfg(all(tokio_unstable, target_os = "linux"))'.dev-dependencies]
|
|
|
|
|
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing", "taskdump"] }
|
|
|
|
|
|
2022-11-22 10:23:26 -06:00
|
|
|
[target.'cfg(windows)'.dev-dependencies.windows-sys]
|
2025-10-07 09:40:42 +01:00
|
|
|
version = "0.61"
|
2019-10-22 10:13:49 -07:00
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "chat"
|
|
|
|
|
path = "chat.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
2025-04-18 10:32:25 -04:00
|
|
|
name = "connect-tcp"
|
|
|
|
|
path = "connect-tcp.rs"
|
2019-10-22 10:13:49 -07:00
|
|
|
|
|
|
|
|
[[example]]
|
2025-04-18 10:32:25 -04:00
|
|
|
name = "connect-udp"
|
|
|
|
|
path = "connect-udp.rs"
|
|
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "echo-tcp"
|
|
|
|
|
path = "echo-tcp.rs"
|
2019-10-22 10:13:49 -07:00
|
|
|
|
2026-03-30 18:05:53 +09:00
|
|
|
[[example]]
|
|
|
|
|
name = "graceful-shutdown"
|
|
|
|
|
path = "graceful-shutdown.rs"
|
|
|
|
|
|
2019-10-22 10:13:49 -07:00
|
|
|
[[example]]
|
2025-04-18 10:32:25 -04:00
|
|
|
name = "echo-udp"
|
|
|
|
|
path = "echo-udp.rs"
|
2019-10-22 10:13:49 -07:00
|
|
|
|
|
|
|
|
[[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"
|
2020-12-22 20:08:43 +01:00
|
|
|
|
2022-09-27 23:18:13 +02:00
|
|
|
[[example]]
|
|
|
|
|
name = "custom-executor"
|
|
|
|
|
path = "custom-executor.rs"
|
|
|
|
|
|
2020-12-22 20:08:43 +01:00
|
|
|
[[example]]
|
|
|
|
|
name = "custom-executor-tokio-context"
|
|
|
|
|
path = "custom-executor-tokio-context.rs"
|
2021-06-15 08:13:31 +02:00
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "named-pipe"
|
|
|
|
|
path = "named-pipe.rs"
|
|
|
|
|
|
2021-06-28 10:43:57 +02:00
|
|
|
[[example]]
|
|
|
|
|
name = "named-pipe-ready"
|
|
|
|
|
path = "named-pipe-ready.rs"
|
|
|
|
|
|
2021-06-15 08:13:31 +02:00
|
|
|
[[example]]
|
|
|
|
|
name = "named-pipe-multi-client"
|
|
|
|
|
path = "named-pipe-multi-client.rs"
|
2023-04-27 06:59:20 -04:00
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "dump"
|
|
|
|
|
path = "dump.rs"
|
2025-01-26 01:46:21 +09:00
|
|
|
|
2026-03-26 11:17:27 -04:00
|
|
|
[[example]]
|
|
|
|
|
name = "prewarm-fd-table"
|
|
|
|
|
path = "prewarm-fd-table.rs"
|
|
|
|
|
|
2025-01-26 01:46:21 +09:00
|
|
|
[lints]
|
|
|
|
|
workspace = true
|