Rust Hyper's hello world example with explanations for C devs
When I saw Hyper's hello world example, I wondered what all those closures and futures were doing, so I rewrote in a more traditional style and stripped out the syntax sugar. In this repo are four source files, beginning with the original hello world in base.rs
and progressivley explicating parts until reaching full.rs
.
~~~
cargo build
cargo run --bin base cargo run --bin fn cargo run --bin fn-error cargo run --bin full
curl 127.0.0.1:3000 ~~~