Charles-Axel Dein
e65f0ff494
Fix typo in configuration guide.
...
Replace 'demonstratation' with 'demonstration'.
2022-08-01 11:34:31 -07:00
Felix Suominen
ef5b7f89a5
Fix typo in production readiness FAQ.
...
Replace 'zero-downtown' with 'zero-downtime'.
2022-08-01 11:32:59 -07:00
Sergio Benitez
8e8dfc7d45
Clarify built-in request guard implementations.
2022-07-17 18:45:11 -07:00
Sergio Benitez
f64029f079
Fix links to upgrade guide.
...
Fixes #2267 .
2022-07-14 12:14:15 -07:00
Sergio Benitez
0126163ca5
Enable 'rust-src' component in CI.
...
This fixes UI tests on Linux nightly. Without the `rust-src` component,
an error message pointing to the core libraries is not emitted as
expected. Presumably by making the sources available, the compiler has
somewhere to point to.
This commit also re-enables CI failures for the Linux debug target.
2022-07-13 20:26:34 -07:00
Sergio Benitez
8d8367e32b
Update UI tests for latest nightly, stable.
2022-07-13 18:23:39 -07:00
Sergio Benitez
a933e7234d
Gracefully shutdown database pools in 'db_pools'.
2022-07-13 14:16:14 -07:00
pennae
7275df9fdf
Make data guards eligible to be sentinels.
...
Prior to this commit, data guards were not being considered as eligible
to be sentinels. This commit resolves that.
2022-06-23 16:15:11 -07:00
Sergio Benitez
ef2538f222
Temporarily ignore Linux nightly CI failures.
2022-06-21 15:36:50 -07:00
Sergio Benitez
dfea521eb6
Fix guide page names to match search slugs.
...
Resolves #2223 .
2022-06-21 13:40:46 -07:00
Sergio Benitez
6e5568a155
Update UI tests for latest nightly.
2022-06-21 00:13:14 -07:00
Sergio Benitez
30b8a77fc9
Avoid dropping 'Error' inside '#[launch]' future.
...
Due to tokio-rs/tokio#4780 , a panicking top-level future combined with
an uncooperative background task prevents runtime shutdown. To avoid
this in the case of `Rocket::launch()` returning an `Error`, which
panics on drop if it isn't inspected, we return the `Result` to the
caller (i.e., `main`) instead of the `block_on` future. This prevent the
panic from occuring inside of the `block_on` future and so the runtime
terminates even with uncooperative I/O.
2022-06-20 23:49:41 -07:00
Aaron Leopold
c8b8b2b022
Add several new known media types:
...
* CBZ: application/vnd.comicbook+zip, .cbz
* CBR: application/vnd.comicbook-rar, .cbr
* RAR: application/vnd.rar, .rar
* EPUB: application/epub+zip, .epub
* OPF: application/oebps-package+xml, .opf
* XHTML: application/xhtml+xml, .xhtml
2022-06-13 15:29:32 -07:00
James Tai
2fc4b156eb
Add MP3 (audio/mpeg) as a known media type.
2022-06-03 07:30:22 -07:00
Sergio Benitez
08ef285f37
Update 'sync_db_pools' UI tests for stable.
2022-05-24 21:36:32 -07:00
Sergio Benitez
04819d8cfd
Add pool retrieval to sync_db_pools.
...
Generates a new method on attributed types, `pool()`, which returns an
opaque reference to a type that can be used to get pooled connections.
Also adds a code-generated example to the crate docs which includes
real, proper function signatures and fully checked examples.
Resolves #1884 .
Closes #1972 .
2022-05-24 16:47:09 -07:00
Matthew Pomes
5cb70ec58c
Salvage everything viable from bad requests.
...
Co-authored-by: Sergio Benitez <sb@sergio.bz>
2022-05-23 23:47:53 -07:00
Matthew Pomes
47946cc55c
Add 'max_blocking' threads config value.
2022-05-23 21:55:16 -07:00
Konrad Borowski
6f223518e4
Fix 'clippy::needless_late_init' in form codegen.
...
Changes codegen for '#[field(default = e)]' to resolve the
'needless_late_init' Clippy warning.
2022-05-23 16:41:10 -07:00
Kenneth Allen
1587c501f3
Fix typo in 0.5 upgrade guide.
2022-05-23 16:37:18 -07:00
Sergio Benitez
907af10ea4
Tolerate more timing issues in SSE heartbeat test.
2022-05-23 16:36:06 -07:00
Sergio Benitez
9b3c83eb70
Add 'Metadata::render()': direct template render.
...
Resolves #1177 .
2022-05-20 16:18:17 -07:00
Sergio Benitez
4827948401
Use '-q' (quiet) when running tests in CI.
2022-05-19 18:23:55 -07:00
Matthew Pomes
f21da79f44
Make 'form::ErrorKind' 'From' impl const generic.
...
Converts an older style array impl to one that uses const generics,
allowing any array length, not just a few sizes.
2022-05-19 18:17:06 -07:00
Sergio Benitez
d92b7249cb
Update UI tests for latest stable rustc.
2022-05-19 14:16:05 -07:00
Sergio Benitez
26b58846a7
Mark fns returning 'Rocket<Build>' 'must_use'.
...
Remove 'must_use' on the generic 'Rocket<P>', which was overly
conservative. This change, in effect, marks only 'Rocket<Build>'
'must_use', which is a much more precise implementation of the intended
safety guard.
2022-05-19 10:45:24 -07:00
Sergio Benitez
b4e1cac7a2
Fix Rocket's dependency count in FAQ.
2022-05-18 17:34:18 -07:00
Konrad Borowski
e390423083
Enable 'cookie' 'secure' feature conditionally.
...
This was incorrectly enabled unconditionally in 442b668
.
2022-05-18 17:29:52 -07:00
Sergio Benitez
68185ce0e2
Update comment in 'Listener' sleep code.
2022-05-18 17:29:21 -07:00
Sergio Benitez
bf2bd0e9ed
Impl 'Responder' for 'Box<T: Responder + Sized>'.
...
In other words, allow boxing sized responders.
Resolves #1999 .
2022-05-10 15:48:40 -05:00
Sergio Benitez
8bd1e29677
Mention removal of content::Custom
in CHANGELOG.
...
Closes #2170 .
2022-05-10 15:12:01 -05:00
Sergio Benitez
8237ca22e1
Fix minor typos in rc.2 release docs.
2022-05-10 15:08:07 -05:00
Dimitri Sabadie
c17cc9d23f
Fix typo in 'Rocket' docs: iterior -> interior.
2022-05-10 15:08:03 -05:00
Sergio Benitez
05db80afbc
Don't set master as current release.
2022-05-09 06:32:53 -05:00
Sergio Benitez
4dcd92837f
New version: 0.5.0-rc.2.
...
New contrib versions: 0.1.0-rc.2.
2022-05-09 06:32:46 -05:00
Sergio Benitez
29fc7f54f5
Fix broken anchor link in config guide.
2022-05-09 06:32:46 -05:00
Sergio Benitez
0a8f917180
Update build benchmark in FAQ.
2022-05-09 06:32:46 -05:00
Sergio Benitez
1c9ac78f76
Add 'db_pools' to 'config.sh' crates.
2022-05-09 06:32:46 -05:00
Sergio Benitez
f568d43caa
Print more variables from 'config.sh -p'.
2022-05-09 04:58:28 -05:00
Sergio Benitez
e1a19054d0
Update state guide for 'rocket_db_pools'.
2022-05-09 04:56:07 -05:00
Sergio Benitez
58b96b8e94
Update CHANGELOG for rc.2, missing rc.1 changes.
...
Closes #1923 .
2022-05-09 01:30:57 -05:00
Sergio Benitez
78aad3aa95
Fix 'PasteId' 'use' in pastebin tutorial.
2022-05-08 18:30:13 -05:00
Sergio Benitez
fccb5759db
Revamp pastebin tutorial for Rocket v0.5.
...
Closes #1756 .
2022-05-08 01:57:49 -05:00
Sergio Benitez
4c8bd61c4f
Unhide 'http' exports that shouldn't be hidden.
2022-05-08 01:08:22 -05:00
Sergio Benitez
46c441ad8b
Add 'rocket::execute()'.
...
The function allows executing arbitrary futures, including Rocket's
`launch()` future, on Rocket's async runtime.
Resolves #1881 .
2022-05-07 15:54:21 -05:00
Sergio Benitez
7908dc43ca
Introduce shutdown fairings.
...
Also adds 'Client::terminate()' to run graceful shutdown in testing.
Resolves #1707 .
2022-05-07 06:12:32 -05:00
Sergio Benitez
1575f47753
Update FAQ.
2022-05-07 06:12:32 -05:00
Sergio Benitez
0ba56ccbb3
Revamp shutdown to recover shutdown 'Rocket'.
...
The core improvement is that `Rocket::launch()` now resolves to
`Ok(Rocket<Ignite>)` on nominal shutdown. Furthermore, shutdown never
terminates the running process.
Other changes directly related to shutdown:
* Runtime worker thread names are now irrelevant to graceful shutdown.
* `ErrorKind::Runtime` was removed; `ErrorKind::Shutdown` was added.
* The `force` config value is only read from the default provider.
* If `force`, Rocket's constructed async runtime is terminated.
Other related changes:
* The exported `hyper` module docs properly reflect public re-exports.
2022-05-07 06:12:24 -05:00
Sergio Benitez
761ffb009e
Add clarity around 'serde' re-exports.
...
Closes #2038 .
2022-05-06 04:38:27 -05:00
Marc-Stefan Cassola
a9452c6fa4
Fix 'FromRequest' docs typo: 'request' -> 'route'.
2022-05-05 08:02:32 -05:00