Commit Graph

2358 Commits

Author SHA1 Message Date
Henning Kowalk 2f2e0b83fc Add docstring to generated catcher info.
This silences the 'missing_docs' lint.
2018-05-31 21:26:14 +02:00
Rolf Schmidt 0842612607 Improve error catcher documentation in requests guide. 2018-05-31 21:16:11 +02:00
Kyle Clemens 070529e1ac Add 'tls_enabled' method to Config. 2018-05-31 21:06:58 +02:00
Sergio Benitez 162bf19c72 Require testing in release mode before publishing. 2018-05-31 20:47:18 +02:00
Sergio Benitez f1269f460e Update CHANGELOG for 0.3.11, 0.3.12. 2018-05-31 20:47:10 +02:00
Sergio Benitez f4be2a69d0 Update codegen for 2018-05-30 nightly. 2018-05-31 20:46:24 +02:00
Sergio Benitez 4376baef91 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:06:32 +02:00
Sergio Benitez f5cc69ae57 Add file to preserve empty db directory. 2018-05-29 18:55:25 +02:00
Sergio Benitez 1472255afb 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:37:14 +02:00
Sergio Benitez 39fa201c4a Update codegen for latest nightly. 2018-05-29 18:37:14 +02:00
Sergio Benitez 59d4f3d3b6 Use diesel_cli <= 1.2. 2018-05-29 18:37:14 +02:00
Sergio Benitez b12058110d Use static path to database file in todo example. 2018-05-29 18:37:14 +02:00
Sergio Benitez d17b392538 Use diesel <= 1.2 while nightly issues persist. 2018-05-29 18:37:14 +02:00
jeb 00dd691252 Update codegen and related dependencies for latest nightly. 2018-05-29 18:37:14 +02:00
jeb 350f4d04cd Update core for latest nightly.
Fixes #643.
2018-05-29 15:33:58 +02:00
Sergio Benitez 2bb343ad70 Use a specific git revision for pear dependencies. 2018-05-15 23:35:28 -07:00
Sergio Benitez a040ddd122 Fix links to configuration guide. 2018-05-13 23:33:42 -07:00
Sergio Benitez 3894e4e9fe Update CHANGELOG for 0.3.10. 2018-05-05 00:41:51 -07:00
Richard Petrie 1914706630 Fix database pool type in state guide. 2018-05-05 00:27:33 -07:00
Sergio Benitez 2dbc592ef1 Update minimum nightly to '2018-05-04'. 2018-05-04 23:51:35 -07:00
Tim "S.D.Eagle" Zeitz 1dab03f929 Update codegen for 2018-05-03 nightly. 2018-05-04 23:38:26 -07:00
Marshall Bowers b876f233a8 Replace 'macro_reexport' with 'pub use'. 2018-05-04 23:36:09 -07:00
Sergio Benitez bd4e54609e Update codegen and core for 2018-04-28 nightly. 2018-04-28 18:23:57 -07:00
Sergio Benitez 3aefe4f894 Update CHANGELOG for 0.3.9. 2018-04-28 18:23:57 -07:00
Sergio Benitez 6a31cb5f5a Freeze managed state before launch. 2018-04-28 18:23:01 -07:00
Sergio Benitez 0e85f9efd8 Loosen bounds on 'AdHoc::{Attach,Launch}' methods.
These changes allow any type that implements `FnOnce`, instead of `Fn`,
to be used as attach or launch fairings via `AdHoc`. Furthermore, the
`Sync` bound was also lifted.

Resolves #522.
2018-04-22 01:53:23 -07:00
Sergio Benitez 6e34a04188 Get time once when checking cookie expiration. 2018-04-18 09:22:11 -07:00
Sergio Benitez 46b56f11e7 Check length of flash cookie before indexing. 2018-04-15 20:18:32 -07:00
Kyle Clemens 105137a46d Rename 'UUID' to 'Uuid' in 'rocket_contrib'. 2018-04-14 20:07:50 -07:00
David Wilkening 4157c573e8 Update rustdocs to refer to 256-bit keys everywhere. 2018-04-14 20:04:14 -07:00
Sergio Benitez 9629b40202 Clear flash cookies only after they're inspected.
Resolves #512.
Resolves #466.
2018-04-14 19:53:36 -07:00
Sergio Benitez eda635aaeb Add automatic cookie propogation to 'local::Client'. 2018-04-14 19:41:37 -07:00
Sergio Benitez 30290e47d7 Update codegen for 2018-04-14 nightly. 2018-04-14 19:37:04 -07:00
Sergio Benitez a96ba1c296 Add 'Response::cookies()' method for easy cookie retrieval. 2018-04-14 16:24:41 -07:00
Sergio Benitez efc511c6dc Add a 'FromFormValue' derive. Start 'codegen_next' crate.
The 'codegen_next' crate will eventually be renamed 'codegen'. It
contains procedural macros written with the upcoming 'proc_macro' APIs,
which will eventually be stabilized. All compiler extensions in the
present 'codegen' crate will be rewritten as procedural macros and moved
to the 'codegen_next' crate.

At present, macros from 'codegen_next' are exported from the core
`rocket` crate automatically. In the future, we may wish to feature-gate
this export to allow using Rocket's core without codegen.

Resolves #16.
2018-04-12 16:07:37 -07:00
Sergio Benitez 226990584b Implement 'UriDisplay' for 'str', 'RawStr' directly. 2018-04-11 10:46:19 -07:00
Michael Noronha e9ec5b2d13 Fix minor typo in rustdocs: 'avaiable' -> 'available'. 2018-04-08 18:08:13 -07:00
pixelistik 2c9506d98f Fix typo in guide: 'revisting' -> 'revisiting'. 2018-04-08 17:56:43 -07:00
ImPerat0R_ 5df01effbb Use correct response code in catcher rustdocs. 2018-04-08 17:46:56 -07:00
Sergio Benitez d05eefd292 Clarify binding launch failure messages. 2018-04-08 17:39:46 -07:00
Riley Trautman aab74ced23 Add unique launch error message for binding issues. 2018-04-08 17:38:38 -07:00
messense fa217082fd Preallocate 512 byte buffer for JSON deserialization. 2018-04-08 17:25:35 -07:00
Sergio Benitez 1e08177f55 Tidy up latest routing changes. 2018-04-08 16:14:15 -07:00
Lukas Abfalterer 3a1d671894 Fix interactions between fairings and auto-HEAD responses.
Fixes #546.
2018-04-08 15:32:54 -07:00
Sergio Benitez 9be3c11cdf Update CHANGELOG for 0.3.8. 2018-04-07 14:18:16 -07:00
Sergio Benitez 5b4a35d508 Update codegen for 2018-04-06 nightly. 2018-04-07 13:51:57 -07:00
Sergio Benitez e860b0e261 Fix parsing of number-like TOML environment variables. 2018-04-05 09:48:24 -07:00
Sergio Benitez bae3140adf Improve robustness of environment variable TOML parser.
Fixes #598.
2018-04-05 01:14:56 -07:00
Sergio Benitez 0dfde3b0b9 Update CHANGELOG for 0.3.7. 2018-04-03 21:54:24 -07:00
Sergio Benitez e0bf21f288 Update pear dependency. 2018-04-03 21:53:25 -07:00