|
|
|
|
|
by marshray
2611 days ago
|
|
I just made a socket server for a small protocol, no (explicit) Tokio. [dependencies]
futures-preview = { version = "0.3.0-alpha.14", features = ["io-compat"] }
futures-util-preview = "0.3.0-alpha.14"
byteorder = "1.2.7"
clap = "2.32.0"
log = "0.4.3"
simple_logger = "0.5.0"
lazy_static = "1.2.0"
num-traits = "0.2"
num-derive = "0.2"
bytes = "0.4.12"
My source is on the order of ~1000 lines of (non-trivial) code and has 17 instances of 'async fn' and 23 instances of 'await!(...)'.Nightly 2018, --release, the resulting .exe is 990 KiB. |
|