Rocket/examples
Jeb Rosen bc8c5b9ee2 Use 'spawn_blocking' in '#[database]'.
The connection guard type generated by `#[database]` no longer
implements `Deref` and `DerefMut`. Instead, it provides an `async fn
run()` that gives access to the underlying connection on a closure run
through `spawn_blocking()`.

Additionally moves most of the implementation of `#[database]` out
of generated code and into library code for better type-checking.
2020-09-10 03:34:26 -07:00
..
config Remove use of stable 'proc_macro_hygiene' feature. 2020-07-11 10:48:08 -07:00
content_types Require data limits on 'Data::open()'. 2020-08-06 02:46:04 -05:00
cookies Use thread-safe 'CookieJar's. 2020-08-16 02:19:45 -07:00
errors Add default catchers: '#[catch(default)]'. 2020-07-30 01:55:41 -07:00
fairings Remove superfluous lifetimes in 'Fairing' methods. 2020-07-23 21:32:20 -07:00
form_kitchen_sink Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
form_validation Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
handlebars_templates Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
hello_2018 Use the blocking testing API everywhere. 2020-07-11 09:24:30 -07:00
hello_person Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
hello_world Use the blocking testing API everywhere. 2020-07-11 09:24:30 -07:00
json Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
managed_queue Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
manual_routes Require data limits on 'Data::open()'. 2020-08-06 02:46:04 -05:00
msgpack Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
optional_redirect Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
pastebin Require data limits on 'Data::open()'. 2020-08-06 02:46:04 -05:00
query_params Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
ranking Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
raw_sqlite Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
raw_upload Require data limits on 'Data::open()'. 2020-08-06 02:46:04 -05:00
redirect Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
request_guard Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
request_local_state Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
session Use thread-safe 'CookieJar's. 2020-08-16 02:19:45 -07:00
state Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
static_files Add 'serve::crate_relative!' for relative paths. 2020-07-23 20:12:17 -07:00
stream Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
tera_templates Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
testing Remove use of stable 'proc_macro_hygiene' feature. 2020-07-11 10:48:08 -07:00
tls Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00
todo Use 'spawn_blocking' in '#[database]'. 2020-09-10 03:34:26 -07:00
uuid Rearrange top-level exports. Use '#[launch]'. 2020-07-22 16:10:02 -07:00