-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thoughts on updating documentation/examples #1156
Comments
Thanks for bringing this up! The examples were all written before Rust 2018, and some things were not fully updated.
If by "a library module" you are referring to
We are happy to see pull requests, and docs/examples updates are usually pretty quick and easy for us to review and merge. |
Great, that makes sense. I'll try to put something together when I have time. Thanks again! |
can add an example of compression( such as gzip....)? |
Thanks for the fantastic library!
I have been reading through documentation and examples to learn about Rocket. One thing that confused me is the use of
macro_use
,extern crate
, andserde_derive
, none of which I believe are necessary any more (or at least they do not appear to be in my testing). For example, the tera_template example currently begins with:But I am able to serve templates through routes with:
Of course, I have the serde "derive" feature enabled.
I also noticed another line in the doc that seems to perhaps not be currently, namely that
#![feature(proc_macro_hygiene, decl_macro)]
must be in the crate entrypoint; I have it instead in a library module and things are working well.I would be happy to submit a pull request containing this kind of update, but wanted to get some feedback on all of this first. Maybe there's some reason that I'm unaware of that the currently documented way is preferred? I'm relatively new to Rust, so it's hard for me to know.
Thanks!
The text was updated successfully, but these errors were encountered: