Commit Graph

1342 Commits

Author SHA1 Message Date
Sergio Benitez 7b1995c84a For install Rust nightly in CI script. 2020-09-12 03:21:49 -07:00
Jeb Rosen b109d151a6 Fix library versions in database contrib docs. 2020-09-12 03:11:51 -07:00
Sergio Benitez 6f5725b83d Update source code idiomacy, clearing warnings. 2020-09-12 03:10:27 -07:00
Sergio Benitez 894fe3c709 Fix benchmark features. 2020-09-12 02:49:51 -07:00
Sergio Benitez 559e64cc1f Migrate to 'trybuild' for UI tests. 2020-09-12 02:43:49 -07:00
Sergio Benitez 2162a72114 Set reasonable read/write timeouts. 2020-09-12 02:32:09 -07:00
Sergio Benitez 4683407f59 New version: 0.4.5. 2020-05-30 14:29:06 -07:00
Nia Watts 86e98b3ad8 Fix typo in 'Query' documentation: 'mplementation' -> 'implementation'. 2020-05-30 14:01:32 -07:00
Sergio Benitez 278233fe1a Require 'cookie' '0.11.3'. 2020-05-30 01:44:03 -07:00
Sergio Benitez e75e227afc Improve docs for 'Options::NormalizeDirs'. 2020-05-30 01:40:39 -07:00
Sergio Benitez 883388634e Add 'Options::NormalizeDirs' to 'StaticFiles'.
Closes #1198.

Co-authored-by: Keith Wansbrough <keithw@lochan.org>
2020-05-30 01:09:20 -07:00
Sergio Benitez 6cb0521ac9 Add 'handler::Outcome::from_or_forward()'. 2020-05-30 00:59:21 -07:00
Sergio Benitez c8ee13b220 Add 'Origin::map_path()' method. 2020-05-30 00:48:23 -07:00
Sergio Benitez d195944645 Update 'parking_lot' dependency. 2020-05-29 01:53:06 -07:00
Sergio Benitez 7739c0e977 Update 'base64' to '0.12'. 2020-05-29 01:53:06 -07:00
Sergio Benitez 89150f9b81 Fix 'LocalRequest::clone()' soundness issue.
The existing implementation of 'LocalRequest::clone()' mistakenly copied
the internal 'Request' pointer from the existing 'LocalRequest' to the
cloned 'LocalRequest'. This resulted in an aliased '*mut Request'
pointer, a clear soundness issue. The fix in this commit is to clone the
internal 'Request', replacing the internal pointer with the newly cloned
'Request' when producing the cloned 'LocalRequest'. A fix that removes
all 'unsafe' code should be explored.

Fixes #1312.
2020-05-29 01:53:06 -07:00
Jeb Rosen ccb5eb1d4f Update UI tests for latest nightly. 2020-05-29 01:53:06 -07:00
Sergio Benitez 376f741338 Properly delimit length and name in flash cookies.
Fixes #1263.
2020-05-29 01:53:06 -07:00
benjaminbecker af5ee6dd15 Fix typo in configuration guide: 'AssertsDir' -> 'AssetsDir'. 2020-05-29 01:53:06 -07:00
Thiago Veronezi 3d31dad760 Fix typo in 'State' documentation: missing backtick. 2020-05-29 01:53:06 -07:00
Sorin Davidoi d265ca70bf Improve accessibility of default error HTML. 2020-05-29 01:53:06 -07:00
Sergio Benitez 807e3b8d85 New version: 0.4.4. 2020-03-09 02:17:21 -07:00
Sergio Benitez d559f09abc Update UI tests for latest nightly. 2020-03-09 02:08:50 -07:00
Sergio Benitez 635a4bddba Fix more broken links. 2020-03-09 02:04:03 -07:00
Sergio Benitez cba00ec66a Fix an array of broken doc links. 2020-03-09 01:12:43 -07:00
Sergio Benitez 0ee3205a68 Remove double semicolons; silence test warnings. 2020-03-08 19:18:41 -07:00
Jeb Rosen 2b9c4197d8 Remove [target.'cfg(debug_assertions)'.dependencies] in contrib Cargo.toml.
This is not supported and is the same as putting the contents in
[dependencies] anyway. It became a warning in rust-lang/cargo#7660.

Backport of 4151cd46db.
2020-03-08 12:49:23 +01:00
ollipa 7446707659 Fix 0.4.3 release year in CHANGELOG. 2020-03-01 14:36:45 -08:00
Sergio Benitez 60623e8544 Fix UI tests for macOS CI. 2020-02-29 18:44:46 -08:00
Sergio Benitez b3d65b0ad2 New version: 0.4.3. 2020-02-29 18:19:02 -08:00
Sergio Benitez e2213d0f06 Prefix release codenames with 'v'. 2020-02-29 18:18:50 -08:00
Sergio Benitez 90eaad852c Deprecate 'Result' specialization. Add 'Debug' responder. 2020-02-29 17:47:57 -08:00
Sergio Benitez 436a5aad57 Deprecate 'Result<T, E>, E: !Responder' responder. 2020-02-29 17:47:45 -08:00
Sergio Benitez ff535c2ff9 Inline macro docs into core crate. 2020-02-27 18:42:28 -08:00
Sergio Benitez 0ecb50c3b5 Add prerelease flag to 'config.sh'. 2020-02-27 18:42:03 -08:00
Jeb Rosen e564d83050 Point out that the database attribute must be imported.
Fixes #1074.
2020-02-27 18:24:29 -08:00
Matt Brubeck 43439f4004 Update 'smallvec' to '1.0'. 2020-02-27 18:21:27 -08:00
Christian Bourjau fb9f34e38f Fix typo in README: missing 'a'. 2020-02-27 18:20:57 -08:00
Dmitry Murzin 40f267c580 Implement 'FromParam' for 'NonZero*' types. 2020-02-27 18:20:01 -08:00
Jeb Rosen cd92532909 Fix CI on MacOS.
Homebrew/homebrew-core#46566 merged 'mysql-connector-c' into
'mysql-client', which does not install into the same paths.
2020-02-27 16:15:14 -08:00
Jeb Rosen 8408b9ba6f Fix Windows CI by forcing 64-bit rustup installation. 2020-02-27 16:14:51 -08:00
A. L 25c2f62850 Add additional Responder wrappers for some common HTTP status codes:
* 204 NoContent
* 401 Unauthorized
* 403 Forbidden
* 409 Conflict
2020-02-27 16:14:27 -08:00
Sergio Benitez 7a7cd83783 Use proper span in responder codegen output. 2020-02-27 16:14:23 -08:00
Jacob Pratt a1cca97587 Abide by formatting in 'Debug' implementations. 2020-02-27 16:04:36 -08:00
Jeb Rosen b29b2db35e Adjust '#[catch]' codegen output to fix a UI test regression in latest nightly. 2020-02-27 16:03:54 -08:00
adrian5 c40276e8d2 Fix typo in databases documentation: extraneous word 'database'. 2020-02-27 16:02:36 -08:00
Sergio Benitez 3a8e23f7f2 Make references to core types absolute in codegen.
Prior to this commit, codegen emitted tokens containing bare types like
'Result' and 'Box' as well as presumed imported variants such as 'None'
and 'Ok'.  However, users are free to shadow these, and if they do, the
generated code will fail to compile, or worse, be incorrect. To avoid
this, this commit makes all references to these core types and imports
absolute.
2020-02-27 16:00:57 -08:00
Sergio Benitez cb5c02064b Remove use of deprecated 'into_iter()'. 2020-02-27 15:52:40 -08:00
Sergio Benitez 070c5cbcfa Update UI tests for latest nightly. 2020-02-27 15:48:50 -08:00
Sergio Benitez 60cba26f65 Fix guide examples for 0.4. 2020-02-27 15:35:56 -08:00