Sergio Benitez
22da02fa64
Remove double semicolons; silence test warnings.
2019-09-09 16:57:03 -07:00
Sergio Benitez
b7e688cefa
Remove use of deprecated 'IndexMap::remove()'.
...
Use 'IndexMap::swap_remove()' in its place.
2019-09-09 16:51:51 -07:00
Sergio Benitez
99a864008c
Remove use of specialization in http.
2019-09-09 16:45:03 -07:00
Sergio Benitez
6ed4c098f1
Stop exporting 'mime' and relevant conversions.
2019-09-09 16:42:44 -07:00
Sergio Benitez
c5973f01df
Remove use of specialization in 'status::Created'.
2019-09-09 16:37:46 -07:00
Sergio Benitez
0b059e06e5
Update 'devise' to 0.3.
...
This transitively updates 'syn', 'proc-macro2', and 'quote' to 1.0.
2019-09-05 15:44:25 -07:00
Sergio Benitez
dcea9563fc
Update UI tests for latest nightly.
2019-08-26 12:48:32 -07:00
Jacob Pratt
2dd09f90be
Remove unused 'doc_cfg' feature.
2019-08-06 14:01:35 -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
Jeb Rosen
2f458b5217
Remove dependence on 'decl_macro' in codegen.
...
The generated 'uri' helper macros are now re-exports of 'macro_rules'
macros, made possible by the stable 'uniform_paths' feature.
2019-07-19 11:38:35 -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
be784a7845
Migrate codegen to Rust 2018.
2019-06-25 13:45:27 -04:00
Jeb Rosen
34cb1c14b8
Migrate core to Rust 2018.
2019-06-25 13:45:23 -04:00
Jeb Rosen
90e37beb2f
Migrate http to Rust 2018.
2019-06-25 13:43:53 -04:00
Thomas Lent
42f8af411e
Fix type in 'Data' rustdocs: 'T' -> 'DataGuard'.
2019-06-11 15:04:54 -07:00
Jeb Rosen
2d924f0f51
Allow 'non_snake_case' for generated query params.
...
Also adds '#[deny(non_snake_case)]' to the complete route generation
test for regressions.
Fixes #1003 .
2019-05-29 19:18:46 -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
Brenden Matthews
ba6aa2f05e
Bump cookie, rustls, and hyper-sync-rustls dependencies.
2019-05-14 22:25:55 -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
Jeb Rosen
3c51a2f401
Update compiler tests for 2019-04-19 nightly.
2019-04-20 08:17:19 -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
Oliver Scherer
c86f4312fb
Always produce a valid, if conservative, subspan.
2019-02-08 18:03:53 -08:00
Sergio Benitez
f0c6c9b26f
Use explicit associated type in 'IntoOwned' impl.
2019-02-06 19:37:39 -08: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
jeb
afd08ffb20
Update compiler tests for 2018-12-28 nightly.
2018-12-29 09:31:14 -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
5056705884
Improve query string routing and typed URI docs.
2018-12-07 12:09:15 -08:00
Sergio Benitez
b88a2d7d05
Add notes about enabling features to contrib docs.
2018-12-07 09:07:27 -08:00
Sergio Benitez
a4dcb0cf4c
New version: 0.4.0.
2018-12-06 09:19:11 -08:00
Sergio Benitez
7fb6ba9be5
Generate 'FromUriParam' impls in 'UriDisplayPath'.
2018-12-06 09:00:01 -08:00
Sergio Benitez
d7933dd6fd
Implement ignorable 'uri!' expressions.
...
Closes #840 .
2018-12-06 08:43:24 -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
ac823861c8
Systematically name and span codegen variables.
...
Fixes #839 .
2018-11-30 08:43:31 -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
543b07a4ba
Use upstream 'Literal::subspan()'.
2018-11-23 19:15:13 -06:00
jeb
ed4055925d
Use 'dyn' in codegen to silence 'bare_trait_objects' lint.
2018-11-19 02:34:46 -08:00