New version: 0.4.2.

This commit is contained in:
Sergio Benitez 2019-06-28 17:50:57 -07:00
parent ab2c012c26
commit 2d4dc5ae58
24 changed files with 66 additions and 35 deletions

View File

@ -1,3 +1,34 @@
# Version 0.4.2 (Jun 28, 2019)
## Core
* Replaced use of `FnBox` with `Box<dyn FnOnce>`.
* Removed the stablized feature gates `try_from` and `transpose_result`.
* Derive macros are reexported alongside their respective traits.
* Minimum required `rustc` is `1.35.0-nightly (2019-04-05)`.
## Codegen
* `JsonValue` now implements `FromIterator`.
* `non_snake_case` errors are silenced in generated code.
* Minimum required `rustc` is `1.33.0-nightly (2019-01-03)`.
## Contrib
* Allow setting custom ranks on `StaticFiles` via [`StaticFiles::rank()`].
* `MsgPack` correctly sets a MessagePack Content-Type on responses.
## Docs
* Fixed typos across rustdocs and guide.
* Documented library versions in contrib database documentation.
## Infrastructure
* Updated internal dependencies to their latest versions.
[`StaticFiles::rank()`]: https://api.rocket.rs/v0.4/rocket_contrib/serve/struct.StaticFiles.html#method.rank
# Version 0.4.1 (May 11, 2019)
## Core

View File

@ -1,6 +1,6 @@
[package]
name = "rocket_contrib_codegen"
version = "0.4.1"
version = "0.4.2"
authors = ["Sergio Benitez <sb@sergio.bz>"]
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.1", path = "../../core/lib" }
rocket_contrib = { version = "0.4.1", path = "../lib", features = ["diesel_sqlite_pool"] }
rocket = { version = "0.4.2", path = "../../core/lib" }
rocket_contrib = { version = "0.4.2", path = "../lib", features = ["diesel_sqlite_pool"] }

View File

@ -1,6 +1,6 @@
[package]
name = "rocket_contrib"
version = "0.4.1"
version = "0.4.2"
authors = ["Sergio Benitez <sb@sergio.bz>"]
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.1", path = "../codegen", optional = true }
rocket = { version = "0.4.1", path = "../../core/lib/", default-features = false }
rocket_contrib_codegen = { version = "0.4.2", path = "../codegen", optional = true }
rocket = { version = "0.4.2", path = "../../core/lib/", default-features = false }
log = "0.4"
# Serialization and templating dependencies.

View File

@ -32,7 +32,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["diesel_sqlite_pool"]
//! ```

View File

@ -16,7 +16,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["helmet"]
//! ```

View File

@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["json"]
//! ```

View File

@ -33,7 +33,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["json"]
//! ```

View File

@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["msgpack"]
//! ```

View File

@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["serve"]
//! ```

View File

@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! 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.1"
/// version = "0.4.2"
/// default-features = false
/// features = ["handlebars_templates", "tera_templates"]
/// ```

View File

@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.1"
//! version = "0.4.2"
//! default-features = false
//! features = ["uuid"]
//! ```
@ -34,7 +34,7 @@ pub use self::uuid_crate::parser::ParseError;
///
/// ```toml
/// [dependencies.rocket_contrib]
/// version = "0.4.1"
/// version = "0.4.2"
/// default-features = false
/// features = ["uuid"]
/// ```

View File

@ -1,6 +1,6 @@
[package]
name = "rocket_codegen"
version = "0.4.1"
version = "0.4.2"
authors = ["Sergio Benitez <sb@sergio.bz>"]
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.1", path = "../http/" }
rocket_http = { version = "0.4.2", path = "../http/" }
devise = "0.2"
[build-dependencies]
@ -25,5 +25,5 @@ yansi = "0.5"
version_check = "0.9.1"
[dev-dependencies]
rocket = { version = "0.4.1", path = "../lib" }
rocket = { version = "0.4.2", path = "../lib" }
compiletest_rs = { version = "0.3", features = ["stable"] }

View File

@ -21,7 +21,7 @@
//!
//! ```toml
//! [dependencies]
//! rocket = "0.4.1"
//! rocket = "0.4.2"
//! ```
//!
//! And to import all macros, attributes, and derives via `#[macro_use]` in the

View File

@ -1,6 +1,6 @@
[package]
name = "rocket_http"
version = "0.4.1"
version = "0.4.2"
authors = ["Sergio Benitez <sb@sergio.bz>"]
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.1", path = "../lib" }
rocket = { version = "0.4.2", path = "../lib" }

View File

@ -1,6 +1,6 @@
[package]
name = "rocket"
version = "0.4.1"
version = "0.4.2"
authors = ["Sergio Benitez <sb@sergio.bz>"]
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.1", path = "../codegen" }
rocket_http = { version = "0.4.1", path = "../http" }
rocket_codegen = { version = "0.4.2", path = "../codegen" }
rocket_http = { version = "0.4.2", path = "../http" }
yansi = "0.5"
log = "0.4"
toml = "0.4.7"

View File

@ -45,7 +45,7 @@
//!
//! ```toml
//! [dependencies]
//! rocket = "0.4.1"
//! rocket = "0.4.2"
//! ```
//!
//! Then, add the following to the top of your `main.rs` file:

View File

@ -24,7 +24,7 @@ function relative() {
}
# Full and major version of Rocket
ROCKET_VERSION="0.4.1"
ROCKET_VERSION="0.4.2"
ROCKET_MAJOR_VERSION="0.4"
CURRENT_RELEASE=true

View File

@ -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.1
git checkout v0.4.2
cd examples/hello_world
cargo run
```

View File

@ -43,7 +43,7 @@ Then add the usual Rocket dependencies to the `Cargo.toml` file:
```toml
[dependencies]
rocket = "0.4.1"
rocket = "0.4.2"
```
And finally, create a skeleton Rocket application to work off of in

View File

@ -50,7 +50,7 @@ Now, add Rocket as a dependency in your `Cargo.toml`:
```
[dependencies]
rocket = "0.4.1"
rocket = "0.4.2"
```
Modify `src/main.rs` so that it contains the code for the Rocket `Hello, world!`

View File

@ -560,7 +560,7 @@ so that you depend on `rocket` as follows:
```toml
[dependencies]
rocket = { version = "0.4.1", default-features = false }
rocket = { version = "0.4.2", default-features = false }
```
[`ring`]: https://github.com/briansmith/ring

View File

@ -222,7 +222,7 @@ databases, you'd write in `Cargo.toml`:
```toml
[dependencies.rocket_contrib]
version = "0.4.1"
version = "0.4.2"
default-features = false
features = ["diesel_sqlite_pool"]
```

View File

@ -279,7 +279,7 @@ dependency in your `Cargo.toml` file:
```
[dependencies]
rocket = { version = "0.4.1", features = ["tls"] }
rocket = { version = "0.4.2", features = ["tls"] }
```
TLS is configured through the `tls` configuration parameter. The value of `tls`

View File

@ -3,8 +3,8 @@
###############################################################################
[release]
version = "0.4.1"
date = "May 11, 2019"
version = "0.4.2"
date = "Jun 28, 2019"
###############################################################################
# Top features: displayed in the header under the introductory text.