jeb
242b358e37
Fix typo in 'handle_error' docstring.
2018-09-11 15:13:20 -07:00
jeb
30cf75335b
Embed the diesel database migrations in the `todo` example.
...
`diesel_cli` is no longer needed for running the example or its tests.
2018-09-11 12:38:10 -07:00
Christophe Courtaut
7b050ebaae
Update 'uuid' dependency to '0.7'.
2018-09-11 11:04:50 -07:00
Sébastien Santoro
bac186fc0d
Fix typo in contrib 'Cargo.toml'.
2018-09-03 19:54:02 -07:00
Tal
8172f748b3
Implement 'Clone' for all URI types.
2018-09-03 19:42:34 -07:00
jeb
1da506ea5d
Remove use of the 'const_fn' feature.
2018-09-03 19:41:31 -07:00
Sergio Benitez
42361c31f1
Use crates.io version of 'compiletest_rs'.
2018-08-26 19:24:13 -07:00
Sergio Benitez
df0b96d3fa
Remove 'attr_literals' feature: stabilized.
2018-08-26 19:18:49 -07:00
Sergio Benitez
cb18954ef2
Use 'StaticFiles' in todo example.
2018-08-24 14:00:36 -07:00
Sergio Benitez
2821711ed3
Update CHANGELOG for 0.3.16.
2018-08-24 00:32:29 -07:00
jeb
59e9f7fcc9
Update codegen for 2018-08-23 nightly.
2018-08-24 00:40:56 -06:00
Sergio Benitez
fd6d577158
Remove 'use_extern_macros' feature: stabilized.
2018-08-18 17:06:28 -07:00
Sergio Benitez
58519e495e
Test all contrib features individually.
2018-08-18 16:52:45 -07:00
Sergio Benitez
9966a07c58
Update 'redis' to '0.9'.
...
Closes #743 .
2018-08-18 16:50:55 -07:00
EloD10
46da03c3c3
Fix typo in 'DatabaseConfig' docstring.
2018-08-17 11:19:37 -07:00
Sergio Benitez
a62248f7ce
Consistently use 'diesel_postgres_pool' feature.
2018-08-17 11:16:36 -07:00
Sergio Benitez
7b4747ff1c
Fix 'Segments::into_path_buf()' docstring.
2018-08-17 11:14:45 -07:00
Sergio Benitez
fe9fad339e
Clean up connection pooling documentation.
2018-08-15 23:31:49 -07:00
Eric Dattore
60b9f06407
Implement connection pooling support in contrib.
...
Resolves #167 .
2018-08-15 22:11:53 -07:00
Sergio Benitez
01a5011b61
Add a module-level docstring to 'http'.
2018-08-15 19:55:34 -07:00
Sergio Benitez
b642e94a2c
Reduce or consolidate git-based dependencies.
2018-08-15 19:44:35 -07:00
Sergio Benitez
429c0dfeb6
Fix template fairing given 'ConfigError::Missing'.
2018-08-15 19:00:43 -07:00
Sergio Benitez
5fa28ae9d2
Mention 'format' shorthands in requests guide.
2018-08-14 22:15:16 -07:00
messense
135b7d29ae
Update codegen for 2018-08-14 nightly.
2018-08-14 22:01:33 -07:00
Alfie John
47485dbadd
Fix a few grammar issues in guide.
2018-08-14 21:50:23 -07:00
Sergio Benitez
55459db773
Properly constrain 'serde_json' version.
2018-08-14 11:20:42 -07:00
Sergio Benitez
10f267a56d
Add 'ConfigError::Missing' to identify missing config keys.
2018-08-14 10:31:54 -07:00
Sergio Benitez
d699827079
Reexport new 'serde_json::json_internal_vec' macro.
2018-08-14 09:53:04 -07:00
Sergio Benitez
e0961e0750
Require all 'AdHoc' fairings to be named.
2018-08-14 09:14:06 -07:00
messense
589743579a
Fix benchmark compilation.
2018-08-13 15:51:42 -07:00
Sergio Benitez
ec130f96ee
Implement a 'StaticFiles' custom handler in contrib.
...
Closes #239 .
2018-08-13 02:17:50 -07:00
Sergio Benitez
4098ddd92f
Improve templates contrib test by reusing code.
2018-08-13 02:14:16 -07:00
Sergio Benitez
651c202060
Move 'SegmentError' into 'uri' module.
2018-08-13 02:14:16 -07:00
Sergio Benitez
948a9e6720
Move 'Request::local_cache()' method for nicer docs.
2018-08-13 02:14:16 -07:00
Sergio Benitez
7abfaafcf9
Emit a helpful error when 'LocalRequest' is malformed.
2018-08-13 02:14:16 -07:00
Sergio Benitez
4010a967a6
Allow any 'T: Into<Vec<Route>>' to be mounted.
2018-08-13 02:14:12 -07:00
Sergio Benitez
29c9cffdbe
Implement dynamic request handling via 'Handler' trait.
2018-08-12 02:13:42 -07:00
Sean Stangl
9bf585496c
Apply more Clippy suggestions.
2018-08-11 23:41:35 -07:00
Sergio Benitez
0612c644ad
Fix typo in 'Template::finalize()' docstring.
2018-08-11 23:17:22 -07:00
Ryan
995603666f
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-11 23:10:13 -07:00
Sergio Benitez
f941b1310b
Improve template engine customization docs.
2018-08-10 23:29:12 -07:00
jeb
491b04cf5a
Implement template auto-reload.
...
Resolves #163 .
2018-08-10 23:29:12 -07:00
Sergio Benitez
83cead775f
Fix 'Error' associated type for 'Result<T, T::Error>'.
2018-08-10 19:14:39 -07:00
Sergio Benitez
fe59a7fe38
Use better types for 'Error' associated types.
2018-08-10 04:42:30 -07:00
kryptan
d9bfc9b104
Implement 'Responder' for '&[u8]'.
2018-08-07 23:58:54 -07:00
Sergio Benitez
b5a4e18b0e
Remove outdated lint information in state guide.
...
Closes #389 .
2018-08-07 23:55:25 -07:00
Sergio Benitez
41f0614b14
Update request-local state documentation.
2018-08-07 23:16:16 -07:00
jeb
d1cfdbaa8e
Add documentation and examples for request-local state.
...
Closes #654 .
2018-08-07 19:40:30 -07:00
Marc Mettke
cd776d5b6a
Add 'and_then', 'failure_then', and 'forward_then' methods to 'Outcome'.
2018-08-07 18:55:04 -06:00
Sergio Benitez
d7f6d82fe4
Implement 'FromForm[Value]', 'Responder' proc-macro derives.
...
This completes the migration of custom derives to proc-macros, removing
the need for the `custom_derive` feature in consumer code. This commit
also includes documentation, unit tests, and compile UI tests for each
of the derives.
Additionally, this commit improves the existing `FromForm` and
`FromFormValue` derives. The generated code for `FromForm` now returns
an error value indicating the error condition. The `FromFormValue`
derive now accepts a `form` attribute on variants for specifying the
exact value string to match against.
Closes #590 .
Closes #670 .
2018-08-06 19:58:07 -07:00