Commit Graph

1334 Commits

Author SHA1 Message Date
Sergio Benitez 69683dddd7 Mask emoji in the 'catchers' info log. 2018-07-07 19:01:00 -07:00
Sergio Benitez 351b8f7c37 Small fixes to request-local state cache implementation. 2018-07-07 18:52:03 -07:00
Ville Hakulinen 97c6b3ace8 Implement Request-Local State Cache.
Resolves #654.
2018-07-07 18:41:21 -07:00
Sergio Benitez 036e4b621c Note that the 'log' config accepts "off" in rustdocs. 2018-07-07 18:30:10 -07:00
Beatriz Rizental 965c90afc9 Add 'log = off' config option to disable all logging. 2018-07-07 18:12:25 -07:00
Sergio Benitez 7b4b0646c5 Don't color logs on Windows if enabling ASCII escapes fails. 2018-07-05 17:54:19 -07:00
Sergio Benitez bd6cdecf00 Improve 'Config::set_raw_tls()' implementation. 2018-07-02 20:02:23 -07:00
Sergio Benitez 88d3b59c71 Use 'or_else' to tidy up 'Template::show()'. 2018-07-02 19:14:17 -07:00
Sergio Benitez ce8817dd3c Clarify behavior of 'Rocket::attach()'. 2018-07-02 18:18:41 -07:00
Oleg Antonyan 0079e738e8 Add docs on retrieving config extras to guide.
Resolves #576.
2018-07-02 15:17:53 -07:00
Sergio Benitez 94cfba8b49 Tidy up handlebars example. 2018-07-02 14:11:09 -07:00
Ashley Williams f00c68252c Use inheritance in handlebars example. 2018-07-02 13:50:16 -07:00
Imron Alston a383d49ab0 Add FLAC (audio/flac) as a known media type. 2018-06-28 19:42:59 -07:00
David Darrell 76bbcb5de8 Always set 'secret_key' in session example.
This commit also removes a previously unused 'Flash' message.
2018-06-28 19:02:39 -07:00
jeb 648eb1a5eb Prefix 'uri!' format args to allow ignored parameters. 2018-06-25 11:24:59 -07:00
Sergio Benitez 3413129296 Small fixes to code comments. 2018-06-25 11:21:02 -07:00
Sergio Benitez 87a466211b Update CHANGELOG for 0.3.13, 0.3.14. 2018-06-22 23:49:25 -07:00
jeb 5b8f8eebc6 Update codegen for 2018-06-22 nightly (2/2). 2018-06-22 23:49:22 -07:00
Sergio Benitez 69c953edc9 Update codegen for 2018-06-22 nightly (1/2). 2018-06-22 23:46:42 -07:00
Sergio Benitez 64bbed1422 Improve documentation on unsafe usage.
All uses of `unsafe` are now thoroughly documented with arguments and
informal proofs of correctness as well as conditions that must hold for
these arguments to pass.

This commit also reduces the number of `unsafe` uses by 7, bringing the
count to ~10 non-test uses of `unsafe`.
2018-06-20 14:02:12 +02:00
Sergio Benitez df7111143e Split the 'http' module into its own 'rocket_http' crate. 2018-06-07 15:34:47 +02:00
Sergio Benitez 900e716ea6 Update to Pear 0.1. 2018-06-04 18:06:08 +02:00
Sergio Benitez 397a646dcf Fix conditional compilation for contrib templates tests. 2018-06-03 20:42:15 +02:00
Sergio Benitez 1e8e4cc553 Fix Cargo.toml path to README. 2018-06-03 19:39:32 +02:00
Sergio Benitez f171dc9d09 Reorganize repository.
The directory structure has changed to better isolate crates serving
core and contrib. The new directory structure is:

  contrib/
    lib/ - the contrib library
  core/
    lib/ - the core Rocket library
    codegen/ - the "compile extension" codegen library
    codegen_next/ - the new proc-macro library
  examples/ - unchanged
  scripts/ - unchanged
  site/ - unchanged

This commit also removes the following files:

  appveyor.yml - AppVeyor (Rust on Windows) is far too spotty for use
  rustfmt.toml - rustfmt is, unfortunately, not mature enough for use

Finally, all example Cargo crates were marked with 'publish = false'.
2018-06-03 18:44:38 +02:00
Sergio Benitez 74a5970c9d Reduce 'data' use on non-payload bearing methods error to warning.
Resolves #622.
2018-06-02 19:05:20 +02:00
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