Sergio Benitez
2537a1164d
Remove 'Result' specialization. Add 'Debug' responder.
...
This removes all uses of specialization in Rocket.
2019-09-09 21:57:33 -07:00
Sergio Benitez
3fae9919f7
Deprecate 'Result<T, E>, E: !Responder' responder.
2019-09-09 21:56:55 -07:00
Sergio Benitez
c5973f01df
Remove use of specialization in 'status::Created'.
2019-09-09 16:37:46 -07:00
Jeb Rosen
3e4f8453ce
Remove use of the 'decl_macro' feature.
...
Also removes one internal use in the 'typed-uris' codegen test.
2019-07-19 11:39:56 -07:00
Jacob Pratt
34a741a26e
Remove use of '!' type in favor of 'Infallible'.
...
This removes the use of and dependence on the 'never_type' feature.
2019-07-09 15:10:51 -07:00
Sergio Benitez
21b10176ee
Forward from 'StaticFiles' if a file is not found.
...
Also adds a 'handler::Outcome::from_or_forward' method for easily
constructing handler outcomes that forward on responder failures.
Fixes #1036 .
2019-07-07 23:22:38 -07:00
Dmitry Murzin
c100a92127
Implement 'FromParam' for 'NonZero*' types.
2019-07-06 13:32:08 -07:00
Sergio Benitez
7f2c9f426c
Fix tests for Windows.
2019-07-06 00:59:01 -07:00
Jeb Rosen
34cb1c14b8
Migrate core to Rust 2018.
2019-06-25 13:45:23 -04:00
Thomas Lent
42f8af411e
Fix type in 'Data' rustdocs: 'T' -> 'DataGuard'.
2019-06-11 15:04:54 -07:00
Sergio Benitez
e458df094f
Update 'version_check' to 0.9.
2019-05-24 01:48:42 -07:00
jeb
6bf751fb22
Reexport derive macros alongside derived traits.
2019-05-22 22:19:47 -07:00
Sergio Benitez
1caf87eb21
Move to 0.5.0-dev on master.
2019-05-13 16:18:48 -07:00
Richard Petrie
75d2ea96d9
Replace deprecated 'isatty' with 'atty'.
2019-05-10 18:21:58 -07:00
Sergio Benitez
3e7a20ae57
Clarify defaults in 'Config' documentation.
2019-05-10 16:39:41 -07:00
Sergio Benitez
fdd76ecf7e
Clean up 'AdHoc' fairing implementation.
2019-05-09 09:04:31 -07:00
Sergio Benitez
7c2dda2647
Clean up 'Server' header commentary.
2019-05-08 20:20:26 -07:00
Sergio Benitez
9f75e0f443
Clean up 'conditionally-set-server-header' test.
2019-05-08 20:18:10 -07:00
lu4nm3
0a978fdb5d
Set default 'Server' header only if it isn't set.
...
Closes #996 .
2019-05-08 20:18:10 -07:00
Konrad Borowski
7ab1c427b5
Replace uses of FnBox
; Box<dyn FnOnce>
now implements FnOnce
.
2019-04-13 09:15:27 -07:00
Jacob Pratt
9b219ddc01
Remove stabilized feature gates.
...
* try_from
* transpose_result
2019-04-12 18:48:51 -07:00
Sergio Benitez
de9a98edd2
Update 'Rocket::custom()' docs to match signature.
...
Resolves #910 .
2019-02-06 17:18:53 -08:00
Chris Foster
4921af459f
Fix typo in 'LenientForm' docstring: 'gaurd' -> 'guard'.
2019-01-31 20:15:10 -08:00
Sergio Benitez
ca5623c641
Type encoding to fix encoding issues once and for all.
...
Fixes #849 .
2018-12-12 17:38:36 -08:00
Sergio Benitez
a4dcb0cf4c
New version: 0.4.0.
2018-12-06 09:19:11 -08:00
Sergio Benitez
90a6749313
New version: 0.4.0-rc.2.
2018-11-30 21:00:18 -08:00
Sergio Benitez
7919ceac39
Strip dev-dependencies more reliably.
2018-11-30 20:58:29 -08:00
Sergio Benitez
5ec21d5ba0
Update dependencies to published versions.
2018-11-30 09:00:16 -08:00
Sergio Benitez
b7db74144f
Parameterize 'UriDisplay' with 'Path' or 'Query'.
...
This commit introduces the sealed `UriPart` marker trait as well as the
implementing `Path` and `Query` marker types, allowing for parts of a
URI to be distinguished at the type level. Consequently, `UriDisplay`
has been parameterized with `P: UriPart`, creating `UriDisplay<Path>`
and `UriDisplay<Query>`. The effect of this change is improved type
safely for URI rendering as well as the ability to omit rendering values
in query parts via `Option` and `Result`.
The `UriDisplay` derive was replaced by `UriDisplayQuery` and
`UriDisplayPath` which derive implementations for `UriDisplay<Path>`
and `UriDisplay<Query>`, respectively.
This commit also works around a rustdoc visibility issue by creating a
hidden `http::private` module.
Finally, this commit also removes the now vestigial use of the
`rustc_private` feature in codegen.
Fixes #827 .
2018-11-27 10:01:47 -06:00
Sergio Benitez
abb434f228
Stop using white for legible logging everywhere.
...
Prior to this change, Rocket emitted "white" text in much of its logging
output. On terminals with light backgrounds, the text was nearly
illegible. This PR stops using white coloring altogether, opting instead
to use the terminal's default color albeit with bold styling. On dark
terminals, this will likely be a light color, and on light terminals,
this will likely be a dark color. The end result is that Rocket's
logging output should be readable everywhere.
Resolves #639 .
2018-11-19 02:11:38 -08:00
Sergio Benitez
76c830a467
Update 'base64', 'crossbeam', 'rand' dependencies.
2018-11-18 03:47:12 -08:00
Sergio Benitez
3b6c4d2a5f
Prefix codegen imports to avoid name collisions.
...
Fixes #817 .
2018-11-12 13:08:39 -08:00
Sergio Benitez
834c91ae9d
Remove the need for a current working directory.
...
This commit includes several breaking changes:
* `Config{new,development,staging,production}` constructors return a
`Config` instead of a `Result<Config>`.
* `Config.root()` returns an `Option<&Path>` instead of `&Path`.
* `ConfigError::BadCWD` was removed.
* `Config` no longer exposes a `config_path` field.
Resolves #809 .
2018-11-12 02:24:13 -08:00
Alva Snædís
b87994b52c
Implement FromParam, FromFormValue for i128, u128.
2018-11-11 21:51:24 -08:00
Sergio Benitez
4224419e63
Reduce 'cfg' usage for 'private-cookies' feature.
2018-11-08 23:56:15 -08:00
Linus Unnebäck
53758c6dd7
Introduce the 'private-cookies' feature.
2018-11-08 23:38:18 -08:00
Sergio Benitez
b16269a30e
Add note about cookie tracking serialization.
2018-11-08 21:40:42 -08:00
messense
64ba2056ef
Use 'RwLock' to make 'Client' 'Sync'.
...
Resolves #814 .
2018-11-08 21:40:34 -08:00
Sergio Benitez
983ee9b32d
Make inner 'LenientForm' field public. Add 'State::from()'.
2018-11-03 01:52:19 -07:00
Rukai
b4f85daaf2
Make inner 'Form' field public.
2018-11-02 18:04:27 -07:00
Sergio Benitez
5762208bba
Percent-encode characters: '[', ']', '\', '^', '|'.
...
Fixes #808 .
2018-11-02 00:10:01 -07:00
Sergio Benitez
4dbd87a36f
New version: 0.4.0-rc.1.
2018-10-31 14:35:30 -07:00
Sergio Benitez
41de1e62fb
Implement 'Responder' for 'Status'.
...
This commit obviates the following removed types:
* response::Failure
* response::status::NoContent
* response::status::Reset
Closes #489 .
2018-10-31 03:57:22 -07:00
Sergio Benitez
7b2b6aba81
Use published version of 'pear'.
2018-10-28 20:17:44 -07:00
Sergio Benitez
c1b39a016b
Improve 'Redirect' and 'rocket_codegen' documentation.
2018-10-28 20:17:44 -07:00
Sergio Benitez
556206e8b3
Version all URLs to 'rocket.rs'.
2018-10-26 21:20:12 -07:00
Sergio Benitez
26db5ecb4e
Fix normalization and Windows issues.
2018-10-24 00:01:56 -07:00
Sergio Benitez
f6325798b1
Normalize paths in 'route_guard' test.
2018-10-23 01:23:11 -07:00
Sergio Benitez
9ef0b731c8
Rename 'codegen_next' to 'codegen'.
2018-10-22 00:01:41 -07:00
Sergio Benitez
8b2ee5b99a
Point 'FromData' implementors to 'FromDataSimple'.
2018-10-21 23:43:24 -07:00