Eric Dattore
18ab9fb27d
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-25 19:58:13 -08:00
Sergio Benitez
3653a5efd9
Update 'state' to 0.4.
2018-02-25 19:52:10 -08:00
Sergio Benitez
5d47456a2e
Update 'uuid' dependency to '0.6'.
...
Resolves #565 .
2018-02-25 19:51:21 -08:00
Sergio Benitez
f061c8ba9e
Update yansi and pear dependencies.
2018-02-25 19:50:21 -08:00
Sergio Benitez
444e61f23d
Spiffy up 'uncased_eq' implementation.
2018-02-25 19:48:17 -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
Sergio Benitez
d0f002c3d7
Remove unsafe 'from_utf8_unchecked'.
2018-02-25 19:47:06 -08:00
Sergio Benitez
15bce5907e
Update 'rusqlite' to fix dependency resolution.
2018-02-08 14:04:48 -08:00
Sean Stangl
68b6fa7eab
Update 'handlebars' to 0.28.
2018-01-13 10:58:11 -08:00
Sergio Benitez
4fe30711a3
Add Travis 'env' to run tests with '--release'.
2018-01-13 10:58:11 -08:00
Sergio Benitez
0d9731fbe6
Group 'Rocket.state()' method with other accessors.
2018-01-13 10:58:10 -08:00
Sergio Benitez
58f5988ec4
Fix compiletest linker flags for release builds.
2018-01-13 10:58:10 -08:00
Sergio Benitez
c63a947b98
Forward CLI arguments to Cargo in testing script.
2018-01-13 10:58:10 -08:00
Sergio Benitez
103ebc8416
Update copyright year in LICENSE-MIT.
2018-01-12 20:07:31 -08:00
Sergio Benitez
174f85e2b9
New version: 0.3.6.
2018-01-12 19:34:16 -08:00
Sergio Benitez
aaa9d6bf98
Update minimum nightly to '2018-01-12'.
...
The '2018-01-12' nightly release includes a commit that reverts the
change that broke 'ring', un-breaking 'ring', and thus un-breaking
Rocket. As a result, the '[patch]' workaround is no longer required.
Rocket is back on the latest nightly!
2018-01-12 19:20:08 -08:00
Sergio Benitez
f485bb6b04
Revert "Document nightly compatibility issues."
...
This reverts commit 4718c0a85a
.
2018-01-12 19:04:52 -08:00
Sergio Benitez
e836253141
Fix incorrect handling of nested 'attach' calls.
2018-01-12 19:01:43 -08:00
Zachary Golba
39536ca52a
Add 'application/vnd.api+json' as known media type.
2018-01-12 19:01:39 -08:00
Richard McCormack
2f7ba33ff7
Fix typo in state guide: 'simple' -> 'simply'.
2018-01-12 19:01:23 -08:00
Sergio Benitez
ab4b0f4e1d
Add regression test for issue #505 .
2018-01-05 19:40:47 -08:00
Sergio Benitez
5f88380f9c
Update 'state' to '0.3.3' for 'Storage.clone()' fix.
...
Fixes #505 .
2018-01-05 19:40:35 -08:00
Sergio Benitez
43398d694b
Update 'compiletest' to 0.3.5.
2018-01-03 02:47:48 -08:00
Sergio Benitez
b62f530d1f
Update diesel to 1.0.
2018-01-03 01:47:03 -08:00
calhilcaw
07c9671371
Update docs and examples for diesel 1.0.0-rc1.
2018-01-03 01:46:22 -08:00
Sergio Benitez
acdfa75e80
Replace 'egrep' with 'git grep' in testing script.
2017-12-30 16:29:18 -08:00
Sergio Benitez
92b2c3ddb7
Update README with changes to nightly requirements.
2017-12-30 16:29:18 -08:00
Sergio Benitez
1079287bad
Unpin nightly in Travis config.
2017-12-30 16:29:17 -08:00
Sergio Benitez
d300facff6
Update codegen for 2017-12-22 nightly.
...
This works around #513 by patching 'ring' globally using the new
'[patch]' Cargo section.
2017-12-30 16:29:11 -08:00
Jeb Rosen
581f244e0e
Add 'Rocket::state()' for managed state retrieval.
2017-12-30 16:26:20 -08:00
Sergio Benitez
e1ed038227
Rename 'state' to 'managed' in 'Request' for clarity.
2017-12-30 16:26:10 -08:00
Sergio Benitez
f2e7d41e50
Add 'success_or' methods to 'Outcome'.
2017-12-30 16:25:46 -08:00
Sergio Benitez
4d7c052a92
Clarify that 'Err' response is not a 'Responder'.
2017-12-30 16:25:42 -08:00
Sergio Benitez
3660d00103
Defer NamedFile's Responder impl to File.
2017-12-30 16:24:49 -08:00
Sergio Benitez
45a5d83504
Use pinned nightly on Travis.
2017-12-27 00:40:24 -08:00
Sergio Benitez
240b226152
Pin 'compiletest_rs' to compatible versions.
2017-12-27 00:40:18 -08:00
Sergio Benitez
4718c0a85a
Document nightly compatibility issues.
...
Closes #519 .
2017-12-26 20:55:55 -08:00
Sergio Benitez
4519de7860
New version: 0.3.5.
2017-12-18 06:59:44 -08:00
Sergio Benitez
4f2ab0d2d2
Update codegen and pear_codegen for 2017-12-17 nightly.
2017-12-18 06:57:04 -08:00
Sergio Benitez
f5a83c4d1f
Automatically set release date in 'bump_version.sh'.
2017-12-14 23:11:50 -08:00
Sergio Benitez
e12fbe0b8d
Fix 0.3.4 release date on site index.
2017-12-14 19:30:04 +07:00
Sergio Benitez
cfcfd2d65f
New version: 0.3.4.
2017-12-14 19:17:04 +07:00
Wilson Birney
60a01a1c65
Emit sized body when file length is known in 'NamedFile'.
2017-12-14 18:46:37 +07:00
Sergio Benitez
b744a58ce0
Use correct rustdoc 'html_root_url'.
...
Fixes #474 .
2017-12-14 18:45:23 +07:00
Lukas Kalbertodt
5bf2e0c6be
Remove incorrect statement in 'RawStr' docs.
2017-12-14 18:42:02 +07:00
Ian Létourneau
937c5fb031
Add a 'status::BadRequest' responder.
2017-12-14 18:41:03 +07:00
Tobias Stolzmann
0a0bfceaa8
Fix typo in 'Outcome' docs: 'users' -> 'Users'.
2017-12-14 18:40:18 +07:00
Cole R Lawrence
0be4f4b937
Fix typo in fairings guide: 'event' -> 'events'.
2017-12-14 18:39:48 +07:00
Sergio Benitez
f056ac3e20
Bump codegen nightly requirement to 2017-12-13.
2017-12-14 18:22:08 +07:00
Sergio Benitez
6460be62c3
Use '#[repr(C)]' on 'str' wrappers to guarantee correct layout.
...
Closes #494 .
2017-12-14 18:21:57 +07:00