Commit Graph

922 Commits

Author SHA1 Message Date
jeb eb1ce54800 Use the correct span for 'rocket_param_' idents. 2018-09-25 00:16:57 -07:00
Sergio Benitez 26e64e826e New version: 0.3.16. 2018-08-24 00:17:52 -07:00
jeb 37cc2f5e1c Update codegen for 2018-08-23 nightly. 2018-08-24 00:17:52 -07:00
Sergio Benitez a17849af6d Remove 'use_extern_macros' feature: stabilized. 2018-08-24 00:17:52 -07:00
Ryan dbcb99ecf2 Force close only the read end of connections.
Previously, when a request's body data exceeded the expected length,
Rocket would shutdown both ends of the corresponding connection. This PR
changes the behavior so that only the read end of the connection, on
Rocket's side, is shutdown. This allows a response to be sent in the
future while still preventing DoS attacks due to exuberant data.

Fixes #386.
2018-08-24 00:09:42 -07:00
Oleg Antonyan b33f75614e Add docs on retrieving config extras to guide.
Resolves #576.
2018-08-24 00:09:42 -07:00
Sergio Benitez 4f4229592d Update 'parking_lot' dependency in todo example. 2018-08-14 11:19:44 -07:00
Sergio Benitez 3384ebd06a Properly constrain 'serde_json' version. 2018-08-14 11:19:18 -07:00
Sergio Benitez 7634b27b73 Reexport new 'serde_json::json_internal_vec' macro. 2018-08-14 11:06:14 -07:00
jeb ae3d9bb664 Fix compatibility warnings and errors in examples. 2018-07-28 18:16:53 -07:00
Sergio Benitez 5c54335cbb New version: 0.3.15. 2018-07-16 01:16:24 -07:00
Sergio Benitez 9bdb38d6f1 Update codegen for 2018-07-15 nightly. 2018-07-16 01:12:29 -07:00
Philip Jenvey 9ac9cd462d Support legacy '#[error]' and 'errors!' macros.
Their use now emits a deprecation warning.

Fixes #419.
2018-07-02 12:58:45 -07:00
Sergio Benitez 48b1491f8f Rename '#[error]' to '#[catch]', 'errors!' to 'catchers!'. 2018-07-02 12:58:43 -07:00
Sergio Benitez f5db11db76 New version: 0.3.14. 2018-06-22 23:25:24 -07:00
Sergio Benitez 4f15ec28c0 Update codegen for 2018-06-22 nightly. 2018-06-22 23:23:47 -07:00
Sergio Benitez 58adbd72f0 Run 'cargo clean' before each pre-publish test run. 2018-06-16 00:51:36 +02:00
Sergio Benitez 904474b4af New version: 0.3.13. 2018-06-16 00:49:17 +02:00
jeb 0a157de330 Update codegen for 2018-06-12 nightly. 2018-06-13 19:26:55 -10:00
Sergio Benitez 432d8b0308 Require testing in release mode before publishing. 2018-05-31 20:28:54 +02:00
Sergio Benitez c184b0873d New version: 0.3.12. 2018-05-31 20:22:10 +02:00
Sergio Benitez 90044d69d2 Update codegen for 2018-05-30 nightly. 2018-05-31 20:20:25 +02:00
Sergio Benitez 617797390f Fallback to other times if fetching file create time fails.
On Travis, fetching file creation time fails. Because codegen tests
depended on being able to retrieve this time, the tests themselves would
fail. Instead of failing outright, this commit makes an effort to find
_some_ time to associate with a file's creation, even if the time is
suboptimal.
2018-05-29 19:03:08 +02:00
Sergio Benitez 147511b4db Improve compiletest codegen test dependency resolution.
In this commit, Rocket's codegen tests now search for the correct
library to depend on, independent of compiletest. This solution should
be robust against platform differences.
2018-05-29 18:03:10 +02:00
Sergio Benitez 8324203e6d Add file to preserve empty db directory. 2018-05-29 15:47:33 +02:00
Sergio Benitez 4e117cee96 Use diesel_cli <= 1.2. 2018-05-29 15:26:14 +02:00
Sergio Benitez e6a77c1573 Use static path to database file in todo example. 2018-05-29 15:24:38 +02:00
Sergio Benitez a13a4e258a Fix compiletest codegen test dependency resolution. 2018-05-29 14:57:48 +02:00
Sergio Benitez 476c9173cc Use diesel <= 1.2 while nightly issues persist. 2018-05-28 17:20:39 +02:00
Sergio Benitez 05fe6c9e65 New version: 0.3.11. 2018-05-19 17:17:53 -07:00
Sergio Benitez 44836aa2df Use 'config.link_deps()' to link dependencies in codegen tests. 2018-05-19 16:53:09 -07:00
jeb ff5db84111 Update core for latest nightly.
Fixes #643.
2018-05-19 16:32:08 -07:00
Sergio Benitez f1fd1f8645 Fix links to configuration guide. 2018-05-13 23:33:51 -07:00
Sergio Benitez eda1fb5517 New version: 0.3.10. 2018-05-05 00:29:30 -07:00
Richard Petrie bd64064a54 Fix database pool type in state guide. 2018-05-05 00:28:46 -07:00
Sergio Benitez d8ad92d083 Improve robustness of environment variable TOML parser. 2018-05-05 00:22:45 -07:00
Sergio Benitez 933e1e44f1 Update minimum nightly to '2018-05-04'. 2018-05-04 23:53:52 -07:00
Tim "S.D.Eagle" Zeitz aeaa4d7883 Update codegen for 2018-05-03 nightly. 2018-05-04 23:52:59 -07:00
Marshall Bowers 47df409be2 Replace 'macro_reexport' with 'pub use'. 2018-05-04 23:52:40 -07:00
Sergio Benitez 4e0b170456 New version: 0.3.9. 2018-04-26 20:00:27 -07:00
Sergio Benitez 067fd82230 Update codegen and core for 2018-04-26 nightly. 2018-04-26 20:00:27 -07:00
Sergio Benitez 18e1a77353 Freeze managed state before launch. 2018-04-26 20:00:27 -07:00
David Wilkening 76135e86c9 Update rustdocs to refer to 256-bit keys everywhere. 2018-04-26 20:00:27 -07:00
Michael Noronha f29e602164 Fix minor typo in rustdocs: 'avaiable' -> 'available'. 2018-04-26 20:00:27 -07:00
pixelistik f4e17688ee Fix typo in guide: 'revisting' -> 'revisiting'. 2018-04-26 20:00:27 -07:00
ImPerat0R_ b205e6a74f Use correct response code in catcher rustdocs. 2018-04-26 20:00:23 -07:00
messense 4a9c621fc2 Preallocate 512 byte buffer for JSON deserialization. 2018-04-26 19:50:22 -07:00
Sergio Benitez bebdaabb58 New version: 0.3.8. 2018-04-07 14:12:29 -07:00
Sergio Benitez 53061f2a65 Update codegen for 2018-04-06 nightly. 2018-04-07 14:11:13 -07:00
Sergio Benitez 56e24bd57f New version: 0.3.7. 2018-04-03 21:12:43 -07:00