Sergio Benitez
62355b424f
Remove use of stable 'proc_macro_hygiene' feature.
2020-07-11 10:48:08 -07:00
Jeb Rosen
2b3d8110f1
Use '#[rocket::launch]' in guide examples.
2020-07-11 10:07:37 -07:00
Jeb Rosen
2c82b3e1d5
Update and fix guide tests.
2020-07-11 10:07:37 -07:00
Sergio Benitez
12308b403f
Add '#[rocket::launch]' attribute.
...
The attribute is applied everywhere it can be across the codebase and is
the newly preferred method for launching an application. This commit
also makes '#[rocket::main]` stricter by warning when it is applied to
functions other than 'main'.
2020-07-11 09:24:29 -07:00
Jeb Rosen
bc1b90cbdb
Add '#[rocket::main]' attribute and make 'launch()' an 'async fn'.
...
'#[rocket::main]' works like '#[rocket::async_test]', but it uses
tokio's multithreaded scheduler.
2020-07-11 09:24:29 -07:00
Sergio Benitez
431b963774
Use 'async_trait' for 'FromRequest'.
...
Removes 'FromRequestAsync'.
2020-07-11 09:24:29 -07:00
Jeb Rosen
70db7fb2ea
Add some general documentation on async as it pertains to Rocket.
2020-07-11 09:24:29 -07:00
Sergio Benitez
336353ced6
Foreshadow routing and catcher options in overview.
...
Resolves #1206 .
Co-authored-by: Jeb Rosen <jeb@jebrosen.com>
2020-06-11 20:42:32 -07:00
Sergio Benitez
95c981de79
Test all guide code examples.
...
Every code example is now fully runnable and testable. As a result, all
examples are now tested and include imports. Relevant imports are shown
by default. Code examples can be expanded to show all imports.
Fixes #432 .
2020-02-15 04:02:19 -08:00
Jeb Rosen
3e4f8453ce
Remove use of the 'decl_macro' feature.
...
Also removes one internal use in the 'typed-uris' codegen test.
2019-07-19 11:39:56 -07:00
Sergio Benitez
9d93d55538
Document mounting multiple routes in guide.
...
Also mention that a route's rank is displayed in brackets.
Closes #983 .
Closes #981 .
2019-05-10 19:39:38 -07:00
bohov
8195453249
Fix console output in guide.
2018-11-04 17:26:06 -08:00
Sergio Benitez
0493febc58
Keep core count generic in guide.
2018-10-23 01:22:46 -07:00
Sergio Benitez
3903ffdb47
Update guide in full for current 0.4.0-dev.
2018-10-22 14:50:57 -07:00
Sergio Benitez
26ee132782
Update site content for restructure.
2018-10-15 22:53:05 -07:00