Sergio Benitez
b6448fc016
Clarify 'Options::Missing' exception in 'FileServer'.
2021-08-19 19:43:34 -07:00
Jeb Rosen
786db9b832
Update UI tests for latest nightly.
2021-08-01 12:25:12 -07:00
Jeb Rosen
5cb243fc24
Update UI tests for latest stable.
2021-08-01 12:24:49 -07:00
Jeremy Kaplan
26ca47b03d
Fix typo in requests guide: 'Synax' -> 'Syntax'.
2021-08-01 11:47:09 -07:00
Silas Sewell
31d06ee714
Fix 'ROCKET_CLI_COLORS' example in getting started guide: 'off' -> 'false'.
2021-07-24 15:15:43 -07:00
JR Heard
3b9fd56d4c
Fix typo in fairings guide: missing 'of the'.
2021-07-24 14:55:50 -07:00
Gonçalo Ribeiro
df8cf4575a
Fix typo in 'XssFilter' API documentation: 'enorce' -> 'enforce'.
2021-07-24 14:55:49 -07:00
Joscha
85c0759f1d
Fix typos in 'DataField' API documentation.
2021-07-24 14:55:45 -07:00
Sergio Benitez
7761911847
Update UI tests for latest nightly.
2021-07-21 01:20:53 -07:00
Sergio Benitez
534f43c223
Point to 'mtls::Certificate' in mTLS config docs.
2021-07-20 14:56:30 -07:00
Sergio Benitez
cc0621626b
Prefix 'content' responder names with 'Raw'.
...
The primary aim of this commit is to reduce confusion between
'content::Json' and 'rocket::serde::json::Json' be renaming the former
to 'content::RawJson'. The complete changes in this PR are:
* All responders in the 'content' module are prefixed with 'Raw'.
* The 'content::Custom' responder was removed entirely.
* The 'Plain' responder is now 'RawText'.
* The 'content' API docs point to the 'serde' responders.
* The docs and examples were updated accordingly.
2021-07-20 02:09:11 -07:00
Sergio Benitez
179be25866
Add 'rocket_db_pools' UI tests.
2021-07-18 13:14:13 -07:00
Sergio Benitez
b6324433b4
Remove faulty 'glob' arg in codegen UI tests.
2021-07-18 13:13:50 -07:00
Sergio Benitez
5b1a04deab
Introduce async database pools: 'rocket_db_pools'.
...
This is the async analog of 'rocket_sync_db_pools', rewritten to be
cleaner, leaner, easier to maintain and extend, and better documented.
Resolves #1117 .
Resolves #1187 .
2021-07-18 12:17:17 -07:00
Jeb Rosen
f7f068be11
Initial implementation of async DB pooling.
2021-07-18 12:14:25 -07:00
Sergio Benitez
693f4f9ee5
Add README to databases example.
...
Closes #1760 .
2021-07-12 16:45:56 -07:00
Sergio Benitez
677790d639
Bring back generated TLS keys, used by tests.
2021-07-09 16:35:09 -07:00
Sergio Benitez
7ffe3a7360
Complete mTLS implementation.
...
Resolves #254 .
2021-07-09 00:05:44 -07:00
Sergio Benitez
bbc36ba27f
Initial implementation of mTLS.
...
Co-authored-by: Howard Su <howard0su@gmail.com>
Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru>
2021-07-09 00:05:20 -07:00
Sergio Benitez
71823915db
Don't store example keys and certs in repository.
2021-07-07 12:16:12 -07:00
Sergio Benitez
581b63da7e
Restore 'doc(cfg)' labels for config items.
2021-07-05 14:02:19 -07:00
Sergio Benitez
614f8ab46c
Condition TLS config types on 'tls' feature.
...
Previously, TLS, via 'Config::tls', was configurable even if the 'tls'
feature was disabled. This commit changes this so that the 'Config::tls'
field and TLS config structures are only available if 'tls' is enabled.
2021-07-05 13:46:37 -07:00
Sergio Benitez
76fab37e29
Rename 'remote_addr' to 'peer_address'.
2021-07-04 15:37:27 -07:00
Sergio Benitez
b5e3569554
Split TLS module into logical submodules.
2021-07-04 15:25:49 -07:00
Sergio Benitez
de4b3e3891
Make 'tls' its own module.
2021-07-04 15:01:55 -07:00
Sergio Benitez
efce2bc958
Make 'MediaType::with_params()' a builder method.
...
Instead of a constructor, 'MediaType::with_params()' and
'ContentType::with_params()' are now both builder methods. This allow
chaining the method to associated constants.
2021-07-04 13:50:19 -07:00
Sergio Benitez
bb920e6e09
Fix 'context!()' typo: "supports" -> "supported".
2021-07-02 11:44:53 -07:00
Sergio Benitez
6aecff39bc
Warn on launch if a custom runtime is detected.
...
The warning is only emitted in debug profiles.
2021-07-02 11:35:59 -07:00
Sergio Benitez
8058798a4c
Properly propagate profile to 'Config' on ignite.
2021-07-02 11:34:35 -07:00
Sergio Benitez
95e9b2e9ef
Remove latent 'dbg!()' in templating tests.
2021-07-02 11:33:32 -07:00
Sergio Benitez
0ffcfae47b
Warn on more deprecated config keys and profiles.
2021-07-02 11:31:50 -07:00
Sergio Benitez
8414d787d9
Impl 'FromUriParam' for 'Json'.
2021-07-02 10:36:57 -07:00
Sergio Benitez
75d851d011
Sync core 'UriDisplay' and 'FromUriParam' impls.
2021-07-02 08:17:22 -07:00
Sergio Benitez
2cee4b4594
Make '&Host' a request guard.
2021-07-02 06:57:43 -07:00
Sergio Benitez
c58b43700c
Add type-safe 'Host' type, 'Request::host()'.
...
Closes #1699 .
2021-07-02 06:48:40 -07:00
Sergio Benitez
f49ee7da00
Make 'FileName' danger more pronounced.
2021-07-02 06:48:09 -07:00
Sergio Benitez
9d20c57d91
Allow named field generics in 'UriDisplay' derive.
2021-07-01 06:02:40 -07:00
Sergio Benitez
416f42bca7
Fix header level of "Within Guards" in guide.
...
Resolves #1737 .
2021-06-30 21:02:28 -07:00
Sergio Benitez
2c9217ebd0
Run core feature testing on nightly.
2021-06-30 20:53:59 -07:00
Sergio Benitez
c2d8f11ffe
Doctest core feature matrix with '--no-run'.
...
Previously, we ran each doctest in core many times, once for each
individually enabled feature. This took a long time and consumed an
inordinate amount of resources for no gain: we already run each test
when we enable all features. Instead, emulate a 'cargo check' for
doctests by passing '--no-run' to rustdoc via an environment variable.
2021-06-30 20:44:58 -07:00
Mikail Bagishov
be933ce398
Apply clippy suggestions.
2021-06-30 14:13:19 -07:00
ThouCheese
5ebefa97c9
Impl 'std::Error' for 'serde::json::Error'.
2021-06-30 11:22:31 -07:00
multisn8
8f9d7e6374
Fix guide typo: "deserialzies" -> "deserializes".
2021-06-30 11:08:51 -07:00
Joakim Soderlund
7b9363f981
Fix typo in 'Sentinel' docs: 'INner' -> 'Inner'.
2021-06-30 11:08:20 -07:00
Ian Jackson
42f84f0621
Update IRC links to Libera (irc.libera.chat).
2021-06-30 11:04:54 -07:00
Martinez
2bd5cefedd
Check response status in guide form tests.
2021-06-30 11:01:32 -07:00
John-John Tedro
0ddad7a6c1
Impl 'Responder' for 'Arc<T>', 'Box<T>'.
2021-06-30 10:44:30 -07:00
PROgrm_JARvis
4339c2af48
Make '<String as FromParam>::Error' 'Infallible'.
...
Fixes #1679 .
2021-06-30 10:27:46 -07:00
Sergio Benitez
dc1b729f29
Don't ignore 'launch()' result in guide overview.
2021-06-30 10:19:36 -07:00
Sergio Benitez
f0b133023b
Fix git repository link to 'rocket_sync_db_pools'.
2021-06-30 10:15:46 -07:00