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
Sergio Benitez
9dcb285799
Remove stabilized feature gates.
...
These are:
* i128_type
* conservative_impl_trait
* never_type
2018-04-03 21:52:33 -07:00
Sergio Benitez
0146d31cf1
Update codegen for 2018-04-03 nightly.
2018-04-03 21:51:13 -07:00
Sergio Benitez
502190a555
Remove the outdated README performance section.
2018-04-03 13:47:50 -07:00
Shawn T. Amundson
92b6eb161f
Fix typo in responses guide: 'An' -> 'As'.
2018-04-03 13:02:30 -07:00
Karuna Murti
68683eb0a9
Add WASM as known media type.
2018-04-03 12:58:43 -07:00
Nicholas Donnelly
9bc6502fa7
Added WEBM, OGG, and WAV as known media types.
2018-04-03 12:42:32 -07:00
Sergio Benitez
58e694d14a
Improve docstring for Collider impl for Route.
2018-04-03 12:37:50 -07:00
Lucas Morales
372d85ddb3
Add fragment URI parsing tests.
2018-04-03 12:37:50 -07:00
ta.tanaka
0b0d099864
Fix fragment URI parsing.
2018-04-03 12:37:50 -07:00
Daniel McNab
96bb608e3a
Correct various spellings and typos in the guide.
...
Note that there are also some changes to the release notes included.
2018-04-03 10:57:57 -07:00
Songbird0
4862dd2161
Replace 'above' with 'below' in route parse error message.
2018-03-28 07:49:40 -05:00
messense
b0fc8b31f6
Update 'indexmap' to 1.0.
2018-03-22 04:03:54 -05:00
Sergio Benitez
362f0ccdac
Allow shorthand for route format specifiers.
2018-03-22 04:02:37 -05:00
Sergio Benitez
29d56900c6
Remove unused bounds in type alias.
2018-03-04 13:35:37 -08:00
Sergio Benitez
845b0470a6
Fix UI test for latest nightly.
2018-03-04 13:34:30 -08:00
Sergio Benitez
987f2d6afa
Fix 'typed-uri' UI test for latest nightly.
2018-02-27 00:29:21 -08:00
Sergio Benitez
c3b6c542e8
Update from 'ordermap' to 'indexmap' 0.4.
2018-02-25 20:32:10 -08:00
Sergio Benitez
794dc66e3b
Remove unnecessary 'dotenv' dependency in 'todo' example.
2018-02-25 20:20:06 -08:00
Sergio Benitez
8e46530a39
Update 'handlebars' to 0.32.
2018-02-25 20:12:53 -08:00
Sergio Benitez
1d19a54ee0
Remove unnecessary 'do_match_until' function.
2018-02-25 17:17:03 -08:00
Sergio Benitez
f8146c9c0a
Fix collisions for strings with different lengths.
...
Previously, a collision check for strings with different lengths would
succeed if one string was both a prefix and a suffix of the other. The
root cause of the bug was a failure to check whether string equality
terminated early due to a matching prefix.
Fixes #574 .
2018-02-25 06:45:42 -08:00
Sergio Benitez
d4e590af83
Fix 'diesel' version in state guide and todo example.
2018-02-21 16:07:09 -08:00
Eric Dattore
c48905f483
Use 'diesel::r2d2' in state guide and todo example.
...
Diesel now reexports r2d2, so rather than including that library
explicitly, let's leverage the reexport.
2018-02-21 15:53:02 -08:00
Sergio Benitez
a80a187c8f
Log the name of failed fairings on launch error.
2018-02-21 03:08:54 -08:00
Sergio Benitez
b76a1ef8b9
Update 'uuid' dependency to '0.6'.
...
Resolves #565 .
2018-02-21 00:57:39 -08:00
Sergio Benitez
63ebe7d06a
Update yansi and pear dependencies.
2018-02-21 00:37:31 -08:00
Sergio Benitez
b892236ea5
Add 'Config::active()' method.
2018-02-20 03:27:18 -08:00
messense
ae8e9025d2
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-19 02:58:37 -08:00
Sergio Benitez
91edab51f8
Spiffy up 'uncased_eq' implementation.
2018-02-19 02:55:56 -08:00
Sergio Benitez
c620411d92
Add 'keep_alive' configuration parameter.
...
The 'keep_alive' configuration parameter allows HTTP keep-alive timeouts
to be configured or for keep-alive to be disabled entirely.
2018-02-17 04:06:05 -08:00
Sergio Benitez
c6841ba67a
Remove use of unsafe in logger.rs.
2018-02-17 02:12:59 -08:00
Sergio Benitez
de8e1978c5
Remove unsafe 'from_utf8_unchecked'; improve form parsing.
...
The 'FormItems' iterator now successfully parses empty keys and values
as well as keys without values.
2018-02-14 14:05:26 -08:00
Sergio Benitez
8b1aaed0ce
Enforce trailing commas in 'known' macros.
2018-01-30 12:30:31 -08:00
Sergio Benitez
6de76c51bc
Only pop a log level if one was previously pushed.
2018-01-29 13:25:33 -08:00