Commit Graph

134 Commits

Author SHA1 Message Date
Sergio Benitez 4623720d8b New version: 0.3.17. 2018-09-29 18:01:28 -07:00
Sergio Benitez 26e64e826e New version: 0.3.16. 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
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
Sergio Benitez 5c54335cbb New version: 0.3.15. 2018-07-16 01:16:24 -07:00
Sergio Benitez f5db11db76 New version: 0.3.14. 2018-06-22 23:25:24 -07:00
Sergio Benitez 904474b4af New version: 0.3.13. 2018-06-16 00:49:17 +02:00
Sergio Benitez c184b0873d New version: 0.3.12. 2018-05-31 20:22:10 +02:00
Sergio Benitez 05fe6c9e65 New version: 0.3.11. 2018-05-19 17:17:53 -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
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
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 56e24bd57f New version: 0.3.7. 2018-04-03 21:12:43 -07:00
Sergio Benitez 3ee9dd661a Remove stabilized feature gates.
These are:

  * i128_type
  * conservative_impl_trait
  * never_type
2018-04-03 20:55:31 -07:00
Sergio Benitez 5d47456a2e Update 'uuid' dependency to '0.6'.
Resolves #565.
2018-02-25 19:51:21 -08:00
messense 6b608797a2 Eagerly read JSON data for deserialization.
Issue #547 identified a performance issue when serde's 'from_reader' is
used to deserialize incoming data. Using 'from_str' resolves the issue.
This commit swaps a use of 'from_reader' in favor of 'from_str' in
rocket_contrib's 'Json' implementation.

Additionally, this commit ensures that un-deserialized JSON data is
discarded as long as it is within the JSON data limit.

Closes #562.
2018-02-25 19:47:53 -08:00
Sean Stangl 68b6fa7eab Update 'handlebars' to 0.28. 2018-01-13 10:58:11 -08:00
Sergio Benitez 174f85e2b9 New version: 0.3.6. 2018-01-12 19:34:16 -08:00
Sergio Benitez 4519de7860 New version: 0.3.5. 2017-12-18 06:59:44 -08:00
Sergio Benitez cfcfd2d65f New version: 0.3.4. 2017-12-14 19:17:04 +07:00
Sergio Benitez b744a58ce0 Use correct rustdoc 'html_root_url'.
Fixes #474.
2017-12-14 18:45:23 +07:00
Sergio Benitez 028a00becc New version: 0.3.3. 2017-09-25 21:00:08 -07:00
Sergio Benitez 7ea05c3d3e Remove 'drop_types_in_const' feature: stabilized. 2017-09-25 20:32:42 -07:00
Sergio Benitez 6e3c54f475 Remove unused 'extern crate's. 2017-09-25 20:32:42 -07:00
Sergio Benitez 5dabb00f2d New version: 0.3.2. 2017-08-15 12:00:02 -07:00
Sergio Benitez 8ee2fafdef New version: 0.3.1. 2017-08-11 10:19:56 -07:00
Sergio Benitez 944eaa3e3c Emit all error messages from Tera on init failure.
Resolves #369.
2017-08-02 16:58:55 -07:00
Laurentiu Nicola 5f0583eb04 Don't skip over the first Tera error.
The first line in the Tera error messages is sometimes less useful,
but in other cases, like when the context is not a map or struct,
contains the complete description. As such, always include it, even if
the output is slightly uglier. Also don't append periods at the end
since some Tera messages already have them.
2017-07-26 23:32:35 -04:00
Sergio Benitez cdacda0896 New version: 0.3.0. 2017-07-14 11:30:48 -07:00
Sergio Benitez 897313730d Use TitleCase for all 'content::' struct names. 2017-07-12 15:21:45 -07:00
Sergio Benitez 65886c8c4e Rename 'contrib::JSON' to 'contrib::Json'. 2017-07-12 15:11:41 -07:00
Sergio Benitez 6050eb5169 Update for 2017-07-09. 'associated_consts' is stable. 2017-07-09 22:00:01 -07:00
Sergio Benitez b0612d7346 Enable features on docs.rs. 2017-06-30 02:41:00 -07:00
Sergio Benitez 539a7fc55b Remove 'struct_field_attributes' feature: it's been stabilized. 2017-06-19 17:44:01 -07:00
Sergio Benitez 6a7fde6d70 Initial cleanup of 'http' docs. Add 'handler::Outcome' docs.
This commit also changes the signature of the 'ContentType'
'from_extension" method so that it returns an 'Option<ContentType>' as
opposed to 'ContentType'.

This commit also disallows negative quality values in 'Accept' media
types.
2017-06-19 17:32:33 -07:00
Sergio Benitez 43a4028085 Use a less confusing version number during dev. 2017-06-18 02:25:26 -07:00
Sergio Benitez 876a8b8329 Make tera/handlebars rendering a little clearer. 2017-06-16 20:56:51 -07:00
Sergio Benitez 2bfb41d968 Update 'handlebars' and 'base64' dependencies. 2017-06-11 01:07:18 -07:00
Sergio Benitez 9a297f776b Tidy up broken links. Set 'html_root_url'. 2017-06-11 01:03:59 -07:00
Sergio Benitez 73fed03ef4 New version: 0.2.8. 2017-06-01 22:10:05 -07:00
Sergio Benitez 5f2b2ee3df New version: 0.2.7. 2017-05-26 20:37:54 -07:00
Sergio Benitez 9b955747e4 Remove config global state. Use Responder::respond_to.
This commit includes two major changes to core:

  1. Configuration state is no longer global. The `config::active()`
     function has been removed. The active configuration can be
     retrieved via the `config` method on a `Rocket` instance.

  2. The `Responder` trait has changed. `Responder::respond(self)` has
     been removed in favor of `Responder::respond_to(self, &Request)`.
     This allows responders to dynamically adjust their response based
     on the incoming request.

Additionally, it includes the following changes to core and codegen:

  * The `Request::guard` method was added to allow for simple
    retrivial of request guards.
  * The `Request::limits` method was added to retrieve configured
    limits.
  * The `File` `Responder` implementation now uses a fixed size body
    instead of a chunked body.
  * The `Outcome::of<R: Responder>(R)` method was removed while
    `Outcome::from<R: Responder(&Request, R)` was added.
  * The unmounted and unmanaged limits are more cautious: they will only
    emit warnings when the `Rocket` receiver is known.

This commit includes one major change to contrib:

  1. To use contrib's templating, the fairing returned by
     `Template::fairing()` must be attached to the running Rocket
     instance.

Additionally, the `Display` implementation of `Template` was removed. To
directly render a template to a `String`, the new `Template::show`
method can be used.
2017-05-19 03:29:08 -07:00
Lance Carlson 13061e9062 Update uuid dependency to 0.5. 2017-05-05 12:20:36 -07:00
Sergio Benitez 30fac32978 Upgrade dependencies to Serde 1.0.
Closes #272.
Resolves #273.
2017-04-24 17:37:18 -07:00
Sergio Benitez 7b48ca7103 Add optional input for IntoOutcome. Add mapper methods to Outcome.
This is a breaking change to `IntoOutcome`.

The MsgPack and JSON types now use `into_outcome` to generate the final
`Outcome` from their `FromData` implementations.

Resolves #98.
2017-04-18 21:56:21 -07:00
Roman Frołow 8555a0fad5 Fix typo in Template documentation: words -> works. 2017-04-18 19:52:18 -07:00