diff --git a/CHANGELOG.md b/CHANGELOG.md index 468d7569c1..574802466c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,30 @@ +# Version 0.4.5 (May 30, 2020) + +## Core + + * [[#1312], [`89150f`]] Fixed a low-severity, minimal impact soundness issue in + `LocalRequest::clone()`. + * [[#1263], [`376f74`]] Fixed a cookie serialization issue that led to + incorrect cookie deserialization in certain cases. + * Removed dependency on `ring` for private cookies and thus Rocket, by + default. + * Added [`Origin::map_path()`] for manipulating `Origin` paths. + * Added [`handler::Outcome::from_or_forward()`]. + * Added [`Options::NormalizeDirs`] option to `StaticFiles`. + * Improved accessibility of default error HTML. + +## Docs + + * Fixed various typos. + +[#1312]: https://github.com/SergioBenitez/Rocket/issues/1312 +[`89150f`]: https://github.com/SergioBenitez/Rocket/commit/89150f +[#1263]: https://github.com/SergioBenitez/Rocket/issues/1263 +[`376f74`]: https://github.com/SergioBenitez/Rocket/commit/376f74 +[`Origin::map_path()`]: https://api.rocket.rs/v0.4/rocket/http/uri/struct.Origin.html#method.map_path +[`handler::Outcome::from_or_forward()`]: https://api.rocket.rs/v0.4/rocket/handler/type.Outcome.html#method.from_or_forward +[`Options::NormalizeDirs`]: https://api.rocket.rs/v0.4/rocket_contrib/serve/struct.Options.html#associatedconstant.NormalizeDirs + # Version 0.4.4 (Mar 09, 2020) ## Core diff --git a/contrib/codegen/Cargo.toml b/contrib/codegen/Cargo.toml index b67f5b5ab6..6742b01d0e 100644 --- a/contrib/codegen/Cargo.toml +++ b/contrib/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket_contrib_codegen" -version = "0.4.4" +version = "0.4.5" authors = ["Sergio Benitez "] description = "Procedural macros for the Rocket contrib libraries." documentation = "https://api.rocket.rs/v0.4/rocket_contrib/" @@ -27,5 +27,5 @@ version_check = "0.9.1" [dev-dependencies] compiletest_rs = { version = "0.3", features = ["stable"] } -rocket = { version = "0.4.4", path = "../../core/lib" } -rocket_contrib = { version = "0.4.4", path = "../lib", features = ["diesel_sqlite_pool"] } +rocket = { version = "0.4.5", path = "../../core/lib" } +rocket_contrib = { version = "0.4.5", path = "../lib", features = ["diesel_sqlite_pool"] } diff --git a/contrib/lib/Cargo.toml b/contrib/lib/Cargo.toml index 81c2bf0a18..cdfc6a018b 100644 --- a/contrib/lib/Cargo.toml +++ b/contrib/lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket_contrib" -version = "0.4.4" +version = "0.4.5" authors = ["Sergio Benitez "] description = "Community contributed libraries for the Rocket web framework." documentation = "https://api.rocket.rs/v0.4/rocket_contrib/" @@ -38,8 +38,8 @@ memcache_pool = ["databases", "memcache", "r2d2-memcache"] [dependencies] # Global dependencies. -rocket_contrib_codegen = { version = "0.4.4", path = "../codegen", optional = true } -rocket = { version = "0.4.4", path = "../../core/lib/", default-features = false } +rocket_contrib_codegen = { version = "0.4.5", path = "../codegen", optional = true } +rocket = { version = "0.4.5", path = "../../core/lib/", default-features = false } log = "0.4" # Serialization and templating dependencies. diff --git a/contrib/lib/src/databases.rs b/contrib/lib/src/databases.rs index b7cd0fe0bd..567255fb58 100644 --- a/contrib/lib/src/databases.rs +++ b/contrib/lib/src/databases.rs @@ -32,7 +32,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["diesel_sqlite_pool"] //! ``` diff --git a/contrib/lib/src/helmet/mod.rs b/contrib/lib/src/helmet/mod.rs index c3da8d8354..321dac880c 100644 --- a/contrib/lib/src/helmet/mod.rs +++ b/contrib/lib/src/helmet/mod.rs @@ -16,7 +16,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["helmet"] //! ``` diff --git a/contrib/lib/src/json.rs b/contrib/lib/src/json.rs index 1af4fdecac..e7983ec1f3 100644 --- a/contrib/lib/src/json.rs +++ b/contrib/lib/src/json.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["json"] //! ``` diff --git a/contrib/lib/src/lib.rs b/contrib/lib/src/lib.rs index d35ff1baf1..7ea0e0fea4 100644 --- a/contrib/lib/src/lib.rs +++ b/contrib/lib/src/lib.rs @@ -33,7 +33,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["json"] //! ``` diff --git a/contrib/lib/src/msgpack.rs b/contrib/lib/src/msgpack.rs index af3048c861..35961a1c6b 100644 --- a/contrib/lib/src/msgpack.rs +++ b/contrib/lib/src/msgpack.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["msgpack"] //! ``` diff --git a/contrib/lib/src/serve.rs b/contrib/lib/src/serve.rs index b6dc288481..7a6dd53372 100644 --- a/contrib/lib/src/serve.rs +++ b/contrib/lib/src/serve.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["serve"] //! ``` diff --git a/contrib/lib/src/templates/mod.rs b/contrib/lib/src/templates/mod.rs index 594c069635..60ec908196 100644 --- a/contrib/lib/src/templates/mod.rs +++ b/contrib/lib/src/templates/mod.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["handlebars_templates", "tera_templates"] //! ``` @@ -158,7 +158,7 @@ const DEFAULT_TEMPLATE_DIR: &str = "templates"; /// /// ```toml /// [dependencies.rocket_contrib] -/// version = "0.4.4" +/// version = "0.4.5" /// default-features = false /// features = ["handlebars_templates", "tera_templates"] /// ``` diff --git a/contrib/lib/src/uuid.rs b/contrib/lib/src/uuid.rs index 5b9362e1ee..7a4bcdcdc3 100644 --- a/contrib/lib/src/uuid.rs +++ b/contrib/lib/src/uuid.rs @@ -9,7 +9,7 @@ //! //! ```toml //! [dependencies.rocket_contrib] -//! version = "0.4.4" +//! version = "0.4.5" //! default-features = false //! features = ["uuid"] //! ``` @@ -34,7 +34,7 @@ pub use self::uuid_crate::parser::ParseError; /// /// ```toml /// [dependencies.rocket_contrib] -/// version = "0.4.4" +/// version = "0.4.5" /// default-features = false /// features = ["uuid"] /// ``` diff --git a/core/codegen/Cargo.toml b/core/codegen/Cargo.toml index 025f8caa3a..9c082713b9 100644 --- a/core/codegen/Cargo.toml +++ b/core/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket_codegen" -version = "0.4.4" +version = "0.4.5" authors = ["Sergio Benitez "] description = "Procedural macros for the Rocket web framework." documentation = "https://api.rocket.rs/v0.4/rocket_codegen/" @@ -17,7 +17,7 @@ proc-macro = true [dependencies] indexmap = "1.0" quote = "0.6.1" -rocket_http = { version = "0.4.4", path = "../http/" } +rocket_http = { version = "0.4.5", path = "../http/" } devise = "0.2" glob = "0.3" @@ -26,5 +26,5 @@ yansi = "0.5" version_check = "0.9.1" [dev-dependencies] -rocket = { version = "0.4.4", path = "../lib" } +rocket = { version = "0.4.5", path = "../lib" } compiletest_rs = { version = "0.3", features = ["stable"] } diff --git a/core/codegen/src/lib.rs b/core/codegen/src/lib.rs index 5984de47d0..e28246c413 100644 --- a/core/codegen/src/lib.rs +++ b/core/codegen/src/lib.rs @@ -21,7 +21,7 @@ //! //! ```toml //! [dependencies] -//! rocket = "0.4.4" +//! rocket = "0.4.5" //! ``` //! //! And to import all macros, attributes, and derives via `#[macro_use]` in the diff --git a/core/http/Cargo.toml b/core/http/Cargo.toml index e4b4b886e4..2da7664177 100644 --- a/core/http/Cargo.toml +++ b/core/http/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket_http" -version = "0.4.4" +version = "0.4.5" authors = ["Sergio Benitez "] description = """ Types, traits, and parsers for HTTP requests, responses, and headers. @@ -36,4 +36,4 @@ features = ["server"] optional = true [dev-dependencies] -rocket = { version = "0.4.4", path = "../lib" } +rocket = { version = "0.4.5", path = "../lib" } diff --git a/core/lib/Cargo.toml b/core/lib/Cargo.toml index 0942d71aff..6249468ec5 100644 --- a/core/lib/Cargo.toml +++ b/core/lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket" -version = "0.4.4" +version = "0.4.5" authors = ["Sergio Benitez "] description = """ Web framework for nightly with a focus on ease-of-use, expressibility, and speed. @@ -23,8 +23,8 @@ tls = ["rocket_http/tls"] private-cookies = ["rocket_http/private-cookies"] [dependencies] -rocket_codegen = { version = "0.4.4", path = "../codegen" } -rocket_http = { version = "0.4.4", path = "../http" } +rocket_codegen = { version = "0.4.5", path = "../codegen" } +rocket_http = { version = "0.4.5", path = "../http" } yansi = "0.5" log = "0.4" toml = "0.4.7" diff --git a/core/lib/src/lib.rs b/core/lib/src/lib.rs index fb21f25618..55716cba93 100644 --- a/core/lib/src/lib.rs +++ b/core/lib/src/lib.rs @@ -45,7 +45,7 @@ //! //! ```toml //! [dependencies] -//! rocket = "0.4.4" +//! rocket = "0.4.5" //! ``` //! //! Then, add the following to the top of your `main.rs` file: diff --git a/scripts/config.sh b/scripts/config.sh index 53c34c1ed4..5cd12c8436 100755 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -46,7 +46,7 @@ case $PRE_RELEASE in ROCKET_VERSION="${VERSION_CODENAME}-$(future_date)" ;; false) - ROCKET_VERSION="0.4.4" + ROCKET_VERSION="0.4.5" VERSION_CODENAME="$(echo "v${ROCKET_VERSION}" | cut -d'.' -f1-2)" ;; esac diff --git a/site/guide/1-quickstart.md b/site/guide/1-quickstart.md index 120f97b4d6..20c3aa1443 100644 --- a/site/guide/1-quickstart.md +++ b/site/guide/1-quickstart.md @@ -15,7 +15,7 @@ For instance, the following set of commands runs the `hello_world` example: ```sh git clone https://github.com/SergioBenitez/Rocket cd Rocket -git checkout v0.4.4 +git checkout v0.4.5 cd examples/hello_world cargo run ``` diff --git a/site/guide/10-pastebin.md b/site/guide/10-pastebin.md index 719b335373..bc86caeff9 100644 --- a/site/guide/10-pastebin.md +++ b/site/guide/10-pastebin.md @@ -43,7 +43,7 @@ Then add the usual Rocket dependencies to the `Cargo.toml` file: ```toml [dependencies] -rocket = "0.4.4" +rocket = "0.4.5" ``` And finally, create a skeleton Rocket application to work off of in diff --git a/site/guide/2-getting-started.md b/site/guide/2-getting-started.md index 7c254a8b40..eed4ece917 100644 --- a/site/guide/2-getting-started.md +++ b/site/guide/2-getting-started.md @@ -50,7 +50,7 @@ Now, add Rocket as a dependency in your `Cargo.toml`: ```toml [dependencies] -rocket = "0.4.4" +rocket = "0.4.5" ``` Modify `src/main.rs` so that it contains the code for the Rocket `Hello, world!` diff --git a/site/guide/4-requests.md b/site/guide/4-requests.md index 85f8552d92..924d2c8a85 100644 --- a/site/guide/4-requests.md +++ b/site/guide/4-requests.md @@ -659,7 +659,7 @@ so that you depend on `rocket` as follows: ```toml [dependencies] -rocket = { version = "0.4.4", default-features = false } +rocket = { version = "0.4.5", default-features = false } ``` [`ring`]: https://github.com/briansmith/ring diff --git a/site/guide/6-state.md b/site/guide/6-state.md index afb50d48f4..d269649b57 100644 --- a/site/guide/6-state.md +++ b/site/guide/6-state.md @@ -272,7 +272,7 @@ databases, you'd write in `Cargo.toml`: ```toml [dependencies.rocket_contrib] -version = "0.4.4" +version = "0.4.5" default-features = false features = ["diesel_sqlite_pool"] ``` diff --git a/site/guide/9-configuration.md b/site/guide/9-configuration.md index 54ca1ceee6..13107fd708 100644 --- a/site/guide/9-configuration.md +++ b/site/guide/9-configuration.md @@ -299,7 +299,7 @@ dependency in your `Cargo.toml` file: ```toml [dependencies] -rocket = { version = "0.4.4", features = ["tls"] } +rocket = { version = "0.4.5", features = ["tls"] } ``` TLS is configured through the `tls` configuration parameter. The value of `tls` diff --git a/site/index.toml b/site/index.toml index 24980c0eb7..1b2c0c6a62 100644 --- a/site/index.toml +++ b/site/index.toml @@ -3,8 +3,8 @@ ############################################################################### [release] -version = "0.4.4" -date = "Mar 09, 2020" +version = "0.4.5" +date = "May 30, 2020" ############################################################################### # Top features: displayed in the header under the introductory text.