Meralis40

Results 11 comments of Meralis40

I have the same bug on Windows 10: when installing via `cargo install cargo-wa`, none of the commands works, but local builds are ok. Errors in arguments are correctly reported...

@mehcode All changes have been done, except complete clippy, because of "needless_pass_by_value" warning. Also, I've change the generated code as suggested & added the "standard" methods

I've started working on it. Currently I make it into `util` mod, but maybe into `context` (or `testing`, because mostly here for testing) is better ?

I've done a basic version of a `Static` middleware as a `Handler` [here](https://github.com/Meralis40/shio-rs/tree/static_files_threadpool), using rayon for the thread pool + std io. Also with an basic example (static_files). Notes: -...

@mehcode Sure, it's just a draft, can surely be improved. I've use rayon for ease of use only. The last example should be the way to do. EDIT: I've updated...

That's basically what it's done here : the `Context` have the thread core handle, and it create a `hyper::Client` future on that handle. No thread-local storage involved here.

Maybe use std `thread_local!` ? ``` thread_local! { static CLIENT : RefCell, } fn client_start(handle: &Handle, callback: F) -> hyper::client::FutureResponse where F: Fn(&Client) -> hyper::client::FutureResponse { CLIENT.with(|rf| { let should_be_init...

I'll give it a try. Edit: I've implemented it for GET and POST (attributes `get` and `post`), the code is here : https://github.com/Meralis40/shio-rs/tree/shio-macro I've also make an example derived from...