Razican
f4bb8bb511
Update depedencies:
...
* contrib: 'rmp-serde', 'tera', 'memcache', 'mysql', 'postgres', 'redis'.
* examples: 'parking-lot', 'rand'
2020-01-19 11:01:11 -08:00
Paolo Barbolini
cd5f96ae15
Update 'uuid', 'unicode-xid', and 'base64' dependencies.
2019-11-30 09:33:14 -08:00
Jeb Rosen
e04bceb81e
Call iter() instead of into_iter() on arrays ( rust-lang/rust#66145 ).
2019-11-28 12:41:26 -08:00
Jacob Pratt
e3c1a4ad3a
Remove use of the 'try_trait' feature.
...
Add the 'try_outcome' macro to replace uses of '?' on 'Outcome'.
2019-09-18 18:43:16 -07:00
Sergio Benitez
2537a1164d
Remove 'Result' specialization. Add 'Debug' responder.
...
This removes all uses of specialization in Rocket.
2019-09-09 21:57:33 -07:00
Sergio Benitez
22da02fa64
Remove double semicolons; silence test warnings.
2019-09-09 16:57:03 -07:00
Pieter Frenssen
1383671090
Do not display 'Error:' on a successful logout in the 'session' example.
2019-08-12 17:39:52 -07: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
Jeb Rosen
2f458b5217
Remove dependence on 'decl_macro' in codegen.
...
The generated 'uri' helper macros are now re-exports of 'macro_rules'
macros, made possible by the stable 'uniform_paths' feature.
2019-07-19 11:38:35 -07:00
Jacob Pratt
34a741a26e
Remove use of '!' type in favor of 'Infallible'.
...
This removes the use of and dependence on the 'never_type' feature.
2019-07-09 15:10:51 -07:00
Sergio Benitez
7f2c9f426c
Fix tests for Windows.
2019-07-06 00:59:01 -07:00
Sergio Benitez
da7e022f99
Add Rust 2015 example.
2019-06-25 11:30:43 -07:00
Jeb Rosen
d9f989a496
Migrate all examples to Rust 2018.
2019-06-25 11:30:43 -07:00
Sergio Benitez
8434a98d5c
Set Content-Type on 'MsgPack' responses.
...
Fixes #1009 .
2019-05-23 17:18:17 -07:00
Sergio Benitez
23f5ebcc4f
Update 'parking_lot' to 0.8 in 'todo' example.
2019-05-16 13:50:54 -07:00
Sergio Benitez
868a7e6425
Update 'crossbeam' to 0.7 in 'managed_queue' example.
2019-05-16 13:50:54 -07:00
Leonora Tindall
c6c0b3a6e1
Update 'rusqlite' dependency to 0.16.
2019-05-16 13:50:54 -07:00
jeb
b9c3a5c64b
Remove test bootstrapping.
2019-02-08 16:50:14 -08:00
Sergio Benitez
fbcb99669e
Update deprecated 'trim_right()' to 'trim_end()'.
2019-02-06 19:39:44 -08:00
Sergio Benitez
76c830a467
Update 'base64', 'crossbeam', 'rand' dependencies.
2018-11-18 03:47:12 -08:00
Linus Unnebäck
53758c6dd7
Introduce the 'private-cookies' feature.
2018-11-08 23:38:18 -08:00
Sergio Benitez
1bb23b8115
Rename 'space_helmet' to 'helmet'. Rework API.
2018-11-08 20:35:30 -08:00
Tal
c5167f1150
Add 'space_helmet' contrib module.
2018-11-08 20:35:26 -08:00
Sergio Benitez
983ee9b32d
Make inner 'LenientForm' field public. Add 'State::from()'.
2018-11-03 01:52:19 -07:00
jeb
328bf4b32e
Support 'uri' macro in 2018 edition crates.
2018-10-30 02:44:22 -07:00
Sergio Benitez
26db5ecb4e
Fix normalization and Windows issues.
2018-10-24 00:01:56 -07:00
Sergio Benitez
0b2ece2f65
Update rusqlite dependencies.
2018-10-15 00:28:25 -07:00
Sergio Benitez
f857f81d9c
Import 'database' attribute with 'macro_use'.
2018-10-09 04:31:09 -07:00
Sergio Benitez
9cb031a47d
Modularize contrib.
2018-10-09 04:31:09 -07:00
Sergio Benitez
2839aca8ce
Update features for latest nightly.
2018-10-09 04:31:09 -07:00
Sergio Benitez
360b0e80b0
Port all codegen tests to codegen_next.
2018-10-09 04:31:08 -07:00
Sergio Benitez
61f107f550
Reimplement route attribute as a proc-macro.
...
This commits also implement the query reform from #608 . It also consists
of many, many breaking changes. Among them are:
* Query parts in route paths use new query reform syntax.
* Routing for queries is now lenient.
- Default ranking has changed to reflect query reform.
* Format routing matching has been fixed.
- Routes with formats matching "accept" will always collide.
- Routes with formats matching "content-type" require requests to
have an equivalent content-type header to match.
- Requests with imprecise content-types are treated as not having a
content-type.
* Generated routes and catchers respect visibility modifiers.
* Raw getter methods from request were renamed and retooled.
- In particular, the index parameter is based on segments in the
route path, not dynamic parameters.
* The method-based attributes no longer accept a keyed 'path'.
* The 'rocket_codegen' crate is gone and will no longer be public.
* The 'FormItems' iterator emits values of type 'FormItem'.
- The internal form items' string can no longer be retrieved.
* In general, routes are more strictly validated.
* Logging from codegen now funnels through logging infrastructure.
* Routing has been optimized by caching routing metadata.
Resolves #93 .
Resolves #608 .
Resolves #693 .
Resolves #476 .
2018-10-09 04:18:04 -07:00
Sergio Benitez
cee2f4439f
Fix 'content_types' example for debug-only 'FromData' impl.
2018-09-27 01:16:26 -07:00
Sergio Benitez
ec4cc3a293
Allow transforms in 'FromData'. Add 'FromDataSimple'.
...
The new 'FromData' trait allows an implementor to instruct the caller to
maintain state on its stack and later pass a borrow for processing.
Among other things, it greatly simplifies the 'Form' type, removing a
use of unsafe, and allows references in deserialized data guards.
2018-09-26 21:33:02 -07:00
Sergio Benitez
d011cd63fc
Remove unnecessary 'use rocket::catch'.
2018-09-16 20:52:07 -07:00
Sergio Benitez
d2abbe72e0
Merge 'use's in 'hello_2018' example.
2018-09-16 20:38:10 -07:00
jeb
8e779610c4
Reimplement 'routes!' and 'catchers!' as proc-macros.
2018-09-16 18:52:23 -07:00
Sergio Benitez
46afabdfea
Remove neglected and obscure 'Error' type.
2018-09-16 03:07:50 -07:00
Sergio Benitez
351757c6ee
Rename 'Rocket::catch()' to 'Rocket::register()'.
2018-09-16 02:25:12 -07:00
Sergio Benitez
112e700836
Reimplement 'catch' attribute as a proc-macro.
2018-09-16 01:32:40 -07:00
jeb
30cf75335b
Embed the diesel database migrations in the `todo` example.
...
`diesel_cli` is no longer needed for running the example or its tests.
2018-09-11 12:38:10 -07:00
Christophe Courtaut
7b050ebaae
Update 'uuid' dependency to '0.7'.
2018-09-11 11:04:50 -07:00
jeb
1da506ea5d
Remove use of the 'const_fn' feature.
2018-09-03 19:41:31 -07:00
Sergio Benitez
cb18954ef2
Use 'StaticFiles' in todo example.
2018-08-24 14:00:36 -07:00
Sergio Benitez
fd6d577158
Remove 'use_extern_macros' feature: stabilized.
2018-08-18 17:06:28 -07:00
Sergio Benitez
fe9fad339e
Clean up connection pooling documentation.
2018-08-15 23:31:49 -07:00
Eric Dattore
60b9f06407
Implement connection pooling support in contrib.
...
Resolves #167 .
2018-08-15 22:11:53 -07:00
Sergio Benitez
e0961e0750
Require all 'AdHoc' fairings to be named.
2018-08-14 09:14:06 -07:00
Sergio Benitez
ec130f96ee
Implement a 'StaticFiles' custom handler in contrib.
...
Closes #239 .
2018-08-13 02:17:50 -07:00
Sergio Benitez
29c9cffdbe
Implement dynamic request handling via 'Handler' trait.
2018-08-12 02:13:42 -07:00