shio-rs icon indicating copy to clipboard operation
shio-rs copied to clipboard

Usage example in Readme does not work.

Open ZelphirKaltstahl opened this issue 7 years ago • 2 comments

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`

ZelphirKaltstahl avatar Mar 25 '18 14:03 ZelphirKaltstahl

The readme example is working for me with the following dependency:

[dependencies] shio = "0.3.0"

geaz avatar Sep 24 '18 14:09 geaz

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.

brokenthorn avatar Oct 01 '18 21:10 brokenthorn