shio-rs
shio-rs copied to clipboard
Usage example in Readme does not work.
The usage example is missing imports for Context and Method and possibly others.
I read the changelog at https://github.com/mehcode/shio-rs/blob/master/CHANGELOG.md , but could not use shio::http::{Method}; because:
|
8 | use shio::http::{Method};
| ^^^^ Could not find `http` in `shio`
The readme example is working for me with the following dependency:
[dependencies] shio = "0.3.0"
The README.md file only has one typo: route((Method::GET, "/", hello_world)) should spell Get. I don't think a PR is necessary for this fix. It's rather trivial.