Sergio Benitez
0ada4b048f
Fix various typos in v0.5 news and guide.
2023-11-18 10:44:17 +01:00
Sergio Benitez
64cf1ee79e
Polish news for v0.5. Add RWF2 announcement.
2023-11-17 17:50:06 +01:00
Sergio Benitez
ba9f77643f
Update FAQ for 0.5.0.
2023-11-17 16:38:14 +01:00
Sergio Benitez
38ae8d6317
Update version numbers for 0.5.0.
2023-11-17 16:38:14 +01:00
Sergio Benitez
3c4571850c
Initial news article for v0.5 release.
2023-11-17 16:38:14 +01:00
Sergio Benitez
daa4e3476c
Add WebSocket section to upgrading guide.
2023-11-17 16:38:14 +01:00
Sergio Benitez
c06a51bd37
Fix typos.
...
Co-authored-by: cui fliter <imcusg@gmail.com>
2023-11-17 16:38:14 +01:00
Sergio Benitez
a6a1a9e957
Fix broken site links.
2023-11-17 16:38:14 +01:00
Sergio Benitez
3ee6e5c758
New version: 0.5.0-rc.4.
...
New contrib versions: 0.1.0-rc.4.
2023-11-17 16:38:14 +01:00
Benjamin B
8ed64d0b31
Fix typo in pastebin tutorial: 'route' -> 'wrote'.
2023-11-01 18:56:48 -05:00
Sergio Benitez
b6430e9970
Rename 'Outcome::Failure' to 'Outcome::Error'.
...
The primary motivation is to deconflate the leading `F`s in `Failure` and
`Forward`. In particular, when using a generics, we used `F` for forward, which
could easily be confused for `F` for `Failure`. This resolves the conflation.
2023-11-01 18:50:55 -05:00
Sergio Benitez
ed56056d0e
Update 'cookie' to 0.18.
2023-10-26 20:01:06 -05:00
Manuel Transfeld
e581e3f98e
Update 'sqlx' to '0.7'.
2023-10-26 19:55:46 -05:00
Sergio Benitez
5024dbf694
Fix link to 'context!' in guide.
2023-10-26 19:23:05 -05:00
Sergio Benitez
e447d7c95b
Note required 'json' crate feature in guide.
...
Co-authored-by: Manuel <2084639+tennox@users.noreply.github.com>
2023-10-26 19:22:59 -05:00
Sergio Benitez
403604c402
Tidy custom forward status changes, update docs.
2023-05-05 18:21:17 -07:00
Benedikt Weber
1f06bb0b73
Allow status customization in 'Forward' outcomes.
...
Prior to this commit, all forward outcomes resulted in a 404. This
commit changes request and data guards so that they are able to provide
a `Status` on `Forward` outcomes. The router uses this status, if the
final outcome is to forward, to identify the catcher to invoke.
The net effect is that guards can now customize the status code of a
forward and thus the error catcher invoked if the final outcome of a
request is to forward.
Resolves #1560 .
2023-05-05 18:21:17 -07:00
Sergio Benitez
c48ce64a77
Standardize 'response::status' responders.
...
This commit modifies all of the non-empty responders in the
`response::status` module so that they look like `Status<R>(pub R)`.
Prior to this commit, some responders looked like this, while others
contained an `Option<R>`.
Resolves #2351 .
2023-04-05 10:51:05 -07:00
Sergio Benitez
1a66e50be0
Add Revolt to list of known projects in FAQ.
2023-03-31 11:40:31 -07:00
Sergio Benitez
9584edcf59
Document fallible guards in requests guide.
...
Co-authored-by: Dimitri Sabadie <dimitri.sabadie@gmail.com>
2023-03-28 13:49:37 -07:00
Sergio Benitez
d22e093d92
Fix responder derive usage docs in response guide.
...
The guide previously erroneously stated that `Status` could be used as a
header field. This commit clarifies how to use `Status` in a custom
responder. It also expands the section with notes on how to make use of
the `Responder` derive with `enum`s.
Resolves #2484 .
2023-03-26 17:41:24 -07:00
Sergio Benitez
91f6288ea4
New version: 0.5.0-rc.3.
...
New contrib versions: 0.1.0-rc.3.
2023-03-23 16:56:17 -07:00
Sergio Benitez
f800d528d3
Update CHANGELOG, add news article for 0.5.0-rc.3.
2023-03-23 16:56:15 -07:00
IFcoltransG
e86d503ff0
Fix typo in updating guide: 'phase' -> 'faze'.
2023-03-23 16:27:08 -07:00
Sergio Benitez
380e75c4e4
Fix minor typo.
2023-03-23 16:27:08 -07:00
philipp
6742041468
Remove unnecessary word in state docs.
2023-03-23 16:27:08 -07:00
Sergio Benitez
219a8a5468
Fix a bunch of typos.
2023-03-23 16:27:08 -07:00
Beep LIN
78e6e55aa2
Fix typo: 'FromFrom' -> 'FromForm'.
2023-03-23 14:57:54 -07:00
Sergio Benitez
0a0f540988
Support TLS keys in SEC1 format.
2023-03-23 14:57:54 -07:00
Kian-Meng Ang
06d255b52b
Fix a whole bunch of typos.
...
Found via `codespell -L crate,ser,fo,noo,nd,cappable,pard,te,ans`.
2023-03-23 14:57:54 -07:00
Sergio Benitez
0ed6d82d10
Defend against configured known secret keys.
...
This is a two-prong effort. First, we warn on launch if a known key is
used. Second, we document using invalid keys where possible.
Co-authored-by: Jonas Møller <jonas@moesys.no>
2023-03-23 14:57:54 -07:00
Indosaram
a62cc654be
Fix typo in pastebin tutorial.
2023-03-23 14:57:54 -07:00
Sergio Benitez
9377af5978
Make real IP header configurable via 'ip_header'.
...
Adds an `ip_header` configuration parameter that allows modifying the
header Rocket attempts to use to retrieve the "real IP" address of the
client via `Request` methods like `client_ip()`. Additionally allows
disabling the use of any such header.
2023-03-20 12:57:21 -07:00
Sergio Benitez
682c2d9acf
Update database driver version numbers in docs.
2022-09-18 01:27:36 -07:00
Doni Rubiagatra
b7c03ce2b5
Fix typo in getting started guide.
...
Replace 'installled' with 'installed'.
2022-08-01 11:35:42 -07:00
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
f64029f079
Fix links to upgrade guide.
...
Fixes #2267 .
2022-07-14 12:14:15 -07:00
Sergio Benitez
dfea521eb6
Fix guide page names to match search slugs.
...
Resolves #2223 .
2022-06-21 13:40:46 -07:00
Matthew Pomes
47946cc55c
Add 'max_blocking' threads config value.
2022-05-23 21:55:16 -07:00
Kenneth Allen
1587c501f3
Fix typo in 0.5 upgrade guide.
2022-05-23 16:37:18 -07:00
Sergio Benitez
b4e1cac7a2
Fix Rocket's dependency count in FAQ.
2022-05-18 17:34:18 -07:00
Sergio Benitez
8237ca22e1
Fix minor typos in rc.2 release docs.
2022-05-10 15:08:07 -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
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