Sergio Benitez
ae0ccf43f1
Fix parsing docs for 'Lenient'.
...
Resolves #2039 .
2022-03-09 14:09:22 -08:00
Sergio Benitez
4fcb57b704
Log HTTP/2 availability at start-up.
2022-03-08 15:24:14 -08:00
Edgar Onghena
ff7cf68461
Make HTTP/2 optional via 'http2' feature.
...
Closes #2030 .
2022-03-08 15:13:24 -08:00
arlecchino
cc98f98aa7
Implement and log with panic-free 'write_out!'.
...
Resolves #2019 .
2022-03-08 14:41:01 -08:00
Sergio Benitez
2cbaf05153
Update UI tests for latest stable.
2022-03-07 12:16:21 -08:00
Juraj Fiala
71e96d0d0d
Fix typo: 'Tera' -> 'Handlebars'.
2022-03-03 15:48:00 -08:00
Sergio Benitez
b5b842f0bf
Use fully working examples in dyn_templates.
...
Closes #1992 .
2022-03-03 15:41:29 -08:00
Alex Sears
91e3b4397a
Fix 'observe' and 'retrieve' typos in cookie docs.
2022-02-23 14:40:01 -08:00
Aurora
3bd65e7e18
Use docstring '///' comment in 'Responder' docs.
2022-02-23 14:36:03 -08:00
Aditya
72e1bce2f2
Fix link to OWASP path traversal docs in guide.
2022-02-23 14:25:31 -08:00
J. Cohen
42df0f3679
Fix spacing in 'overview' code examples.
2022-02-23 14:23:35 -08:00
Joshua Nitschke
eba469b558
Fix 'form' data limit name in configuration guide.
2022-02-23 14:21:37 -08:00
David Venhoek
83e7fe1157
Log launch messages at info level.
...
Fixes #1828 .
Closes #1871 .
2022-02-23 14:16:18 -08:00
=?UTF-8?q?R=C3=A9mi=20Lauzier?=
f82d760b52
Use 'matches!' macro where possible.
2022-02-23 14:11:44 -08:00
=?UTF-8?q?R=C3=A9mi=20Lauzier?=
928d51ca6e
Fix typo in suggestion issue template.
2022-02-23 14:11:20 -08:00
xelivous
13d8e74655
Fix flash message display in todo example.
2022-02-23 13:55:02 -08:00
Sergio Benitez
5593685455
Add sqlite aux files to gitignore.
2022-02-23 13:53:26 -08:00
Matthew Pomes
a05b3e138c
Explicitly doc enabling 'json' feature in guide.
...
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2022-02-23 13:38:50 -08:00
Sergio Benitez
8825f936ef
Add 'includeSubdomains' in HSTS preload header.
...
Resolves #2049 .
Closes #2050 .
Co-authored-by: Soham Roy <sohamroy@sohamroy.me>
2022-02-22 18:19:09 -08:00
Sergio Benitez
fda05bddd2
Update 'rustls' to 0.20.
...
Also updates 'tokio-rustls' to a compatible version.
Additionally depends on 'rustls-pemfile' which includes functionality
that was previously part of 'rustls' itself.
2022-02-22 17:30:42 -08:00
Sergio Benitez
502b11c177
Update 'x509-parser' to 0.13.
2022-02-22 13:01:05 -08:00
Sergio Benitez
2f59515752
Update 'x509-parser' to 0.12.
...
Closes #2100 .
2022-02-22 12:51:59 -08:00
Gabriel Fontes
66d18bf665
Explicitly import 'Result' in 'context!'.
2022-02-17 16:33:36 -08:00
arlecchino
1ba41b3990
Remove 'CookieJar::get_private_pending()'.
...
This commit removes the 'CookieJar::get_private_pending()' method in
favor of the already existing and correct 'CookieJar::get_pending()'
method. Previously, the 'CookieJar::get_private_pending()' method
attempted to decrypt the value of a pending cookie, which in reality is
plaintext, thus failing. Because the pending value is plaintext, the
'CookieJar::get_pending()' method suffices.
Documentation has been updated to refer to 'CookieJar::get_pending()'.
Fixes #2063 .
2022-02-17 11:04:30 -08:00
arlecchino
442b668a7a
Update 'cookie' to '0.16'.
2022-02-17 10:57:37 -08:00
Sergio Benitez
d25a8308e5
Update 'mongodb' to '2' in 'db_pools'.
2022-02-16 11:07:05 -08:00
Sergio Benitez
543560a1f2
Update 'deadpool' dependencies in 'db_pools'.
2022-02-16 11:07:00 -08:00
Sergio Benitez
6345d2b888
Update dependencies in core to latest versions.
...
This updates:
* rmp-serde to 1
* pretty_assertions to 1
* parking_lot to 0.12
* tokio-util to 0.7
2022-02-16 10:26:24 -08:00
Sergio Benitez
0ba5aac53e
Update codebase for latest nightly and stable.
2022-02-16 10:08:55 -08:00
Johannes Liebermann
815e8a242f
Fix typo in guide overview.
2021-09-07 12:02:56 -07:00
Sergio Benitez
8cae077ba1
Add 'Connection::into_inner()' in 'db_pools'.
...
Resolves #1790 .
2021-08-30 04:02:13 -07:00
Sergio Benitez
9bc6c25d2d
Fix docs for handlebars update.
2021-08-30 03:44:08 -07:00
Ning Sun
831ffc6c09
Update 'handlebars' to 4.0.
2021-08-30 03:42:57 -07:00
Sergio Benitez
f38cbea898
Clean up upgrade guide, FAQ. Mention FAQ more.
2021-08-29 16:55:07 -07:00
Sergio Benitez
010e762125
Fix markdown word wrap.
2021-08-24 20:13:13 -07:00
hiyoko3m
5c928488ee
Add missing ']' in forms guide.
2021-08-24 20:13:13 -07:00
Jakub Dąbek
9177b20ff1
Workaround 'rustc' bug, compiling more async code.
...
This commit implements a workaround for an [issue within rustc]. The
problem showed itself when using e.g. a `Vec<&str>` argument in an async
route handler (but not `&str`), which resulted in a "implementation of
`FromForm` is not general enough" error. The workaround itself works by
gathering all invocations of `FromForm`'s methods inside a block without
any `.await` points [ref].
[issue within rustc]: https://github.com/rust-lang/rust/issues/69663
[ref]: https://github.com/rust-lang/rust/issues/57478#issuecomment-501186084
2021-08-24 19:46:47 -07:00
Rodolphe Bréard
7a54a1293e
Display launch address using 'SocketAddr' fmt.
...
This fixes IPv6 address display and future-proofs any such display.
2021-08-24 19:40:42 -07:00
Sergio Benitez
dd43d68d28
Use cardinality-agnostic wording in error format.
...
Closes #1746 .
2021-08-24 19:39:42 -07:00
Sergio Benitez
42a0fb8afe
Increase diesel DB example timeout for CI.
2021-08-19 23:36:30 -07:00
Sergio Benitez
15e74fe184
Update UI tests for latest nightly.
2021-08-19 20:07:10 -07:00
Sergio Benitez
a361bbd899
Add 0.5 migration guide, FAQ to site docs.
2021-08-19 19:49:23 -07:00
Sergio Benitez
3616f25c0b
Update 'time' to 0.3, 'cookie' to 0.16.
...
Also reexport 'time' from the crate root.
2021-08-19 19:49:23 -07:00
Sergio Benitez
4b272f19ba
Update 'devise', fix 'Responder' derive generics.
2021-08-19 19:49:23 -07:00
Sergio Benitez
80cd30086a
Don't enable unused 'futures' features.
2021-08-19 19:49:23 -07:00
Sergio Benitez
74be9c68b1
Add missing newline for better doc rendering.
2021-08-19 19:49:23 -07:00
Sergio Benitez
be3ceef4e3
Use 'hyper' instead of 'http' where possible.
2021-08-19 19:49:23 -07:00
Sergio Benitez
6d2059f9eb
Remove unused 'mime' dependency.
2021-08-19 19:49:23 -07:00
Sergio Benitez
a16c66eae9
Propagate 'log_level' to SQLx logs.
...
Closes #1798 .
2021-08-19 19:49:20 -07:00
Sergio Benitez
1a8574e491
Remove unused 'parking_lot' 'http' dependency.
2021-08-19 19:43:34 -07:00