mirror of
https://github.com/actix/examples
synced 2024-11-30 17:14:35 +01:00
d9afae21b6
Give each example binary a unique name. This should allow running cargo run --bin in the root directory.
31 lines
481 B
TOML
31 lines
481 B
TOML
[package]
|
|
name = "websocket-tcp-example"
|
|
version = "0.1.0"
|
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
|
workspace = "../"
|
|
|
|
[[bin]]
|
|
name = "websocket-tcp-server"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "websocket-tcp-client"
|
|
path = "src/client.rs"
|
|
|
|
[dependencies]
|
|
rand = "*"
|
|
bytes = "0.4"
|
|
byteorder = "1.1"
|
|
futures = "0.1"
|
|
tokio-io = "0.1"
|
|
tokio-tcp = "0.1"
|
|
tokio-codec = "0.1"
|
|
env_logger = "*"
|
|
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
serde_derive = "1.0"
|
|
|
|
actix = "0.7"
|
|
actix-web = "0.7"
|