Sergio Benitez
fbcb99669e
Update deprecated 'trim_right()' to 'trim_end()'.
2019-02-06 19:39:44 -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
jeb
90296dde80
Change `rocket_contrib` to not depend on default features from `rocket`.
2019-01-31 20:25:44 -08:00
Chris Foster
4921af459f
Fix typo in 'LenientForm' docstring: 'gaurd' -> 'guard'.
2019-01-31 20:15:10 -08:00
Noah Rosenzweig
fb1f7482ee
Fix typo in fairings guide: 'to the launch' -> 'to launch'.
2019-01-31 20:13:25 -08:00
An Long
5ce43ed4e9
Add support for memcache connection pooling in 'rocket_contrib'.
2019-01-13 11:16:11 -08:00
Austin Hartzheim
a88bc95201
Specify 'rocket_contrib' version correctly in doc examples.
2019-01-12 14:54:22 -08:00
jeb
afd08ffb20
Update compiler tests for 2018-12-28 nightly.
2018-12-29 09:31:14 -08:00
Riley Watkins
4f81292830
Fix typo in responses guide: '#[responder]' -> '#[response]'.
2018-12-26 10:53:15 -08:00
Eric Dattore
aba3ad327b
Add database pool integration tests.
2018-12-23 21:12:44 -08:00
Sergio Benitez
3f58ea692f
Add compile tests to contrib codegen.
2018-12-23 21:08:07 -08:00
Eric Dattore
7dd0c8fd02
Implement 'DerefMut' for database pools.
...
This commit also fixes database pool codegen amidst of generics.
Fixes #854 .
Resolves #862 .
2018-12-23 21:06:45 -08:00
John Downey
9750ae67dd
Update pastebin guide for 0.4.
2018-12-14 13:21:30 -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
104429f398
Add 'Debug' to 'Responder' derive in announcement.
2018-12-12 00:04:55 -08:00
Andrew
4a0fee4129
Fix typo in requests guide: 'of' -> 'or'.
2018-12-10 22:26:02 -08:00
Sergio Benitez
746023fe1f
Use '&*' in database docs for reliable deref coercions.
...
Resolves #855 .
2018-12-10 22:20:34 -08:00
Sergio Benitez
ba96de314c
Fix news announcement title in index.
2018-12-10 11:59:13 -08:00
Jelte Fennema
cb520f4067
Fix status code typo in release announcement.
2018-12-08 14:48:03 -08:00
Sergio Benitez
f64d9bc1a1
Fix more typos in release announcement.
2018-12-08 10:29:43 -08:00
Sergio Benitez
1d82225fc9
Fix release announcement typo.
2018-12-08 10:19:00 -08:00
Sergio Benitez
2ec865dea2
Add v0.4 release announcement.
2018-12-08 08:45:06 -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
Desmond
d3c161e7d6
Fix typo in responses guide: 'T he' -> 'The'.
2018-12-06 21:29:51 -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
Eric Dattore
50a635ed8e
Add support for MongoDB connection pooling in 'rocket_contrib'.
2018-12-06 08:17:12 -08:00
Sergio Benitez
90a6749313
New version: 0.4.0-rc.2.
2018-11-30 21:00:18 -08:00
Sergio Benitez
b405b181a3
Test 'rocket_contrib' before publishing.
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
jeb
d14c3393a0
Fix notify dependency version.
2018-11-19 02:29:41 -08: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
jeb
af84f60bb8
Fix forced HSTS logic in 'SpaceHelmet'.
2018-11-17 23:51:54 -08:00
Zack Chandler
59e27820e9
Fix typo in guide intro: 'offerring' -> 'offering'.
2018-11-14 03:42:02 -08:00
Vishal Sodani
d813883fa5
Remove extraneous 'to' in state guide.
2018-11-14 03:40:58 -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
4dea9eed36
Mention that u128, i128 implement UriDisplay.
2018-11-11 21:51:42 -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