Skip to content

Commit

Permalink
New version: 0.4.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Mar 1, 2020
1 parent e2213d0 commit b3d65b0
Show file tree
Hide file tree
Showing 24 changed files with 77 additions and 35 deletions.
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
# Version 0.4.3 (Feb 29, 2019)

## Core

* Added a new [`Debug`] `500` `Responder` that `Debug`-prints its contents on
response.
* Specialization on `Result` was deprecated. [`Debug`] can be used in place of
non-`Responder` errors.
* Fixed an issue that resulted in cookies not being set on error responses.
* Various `Debug` implementations on Rocket types now respect formatting
options.
* Added `Responder`s for various HTTP status codes: [`NoContent`],
[`Unauthorized`], [`Forbidden`], and [`Conflict`].
* `FromParam` is implemented for `NonZero` core types.

## Codegen

* Docs for Rocket-generated macros are now hidden.
* Generated code now works even when prelude imports like `Some`, `Ok`, and
`Err` are shadowed.
* Error messages referring to responder types in routes now point to the type
correctly.

## Docs

* All code examples in the guide are now tested and guaranteed to compile.
* All macros are documented in the `core` crate; `rocket_codegen` makes no
appearances.

## Infrastructure

* CI was moved from Travis to Azure Pipelines; Windows support is tested.
* Rocket's chat moved to [Matrix] and [Freenode].

[`Debug`]: https://api.rocket.rs/v0.4/rocket/response/struct.Debug.html
[`NoContent`]: https://api.rocket.rs/v0.4/rocket/response/status/struct.NoContent.html
[`Unauthorized`]: https://api.rocket.rs/v0.4/rocket/response/status/struct.Unauthorized.html
[`Forbidden`]: https://api.rocket.rs/v0.4/rocket/response/status/struct.Forbidden.html
[`Conflict`]: https://api.rocket.rs/v0.4/rocket/response/status/struct.Conflict.html
[Matrix]: https://chat.mozilla.org/#/room/#rocket:mozilla.org
[Freenode]: https://kiwiirc.com/client/chat.freenode.net/#rocket

# Version 0.4.2 (Jun 28, 2019)

## Core
Expand Down
6 changes: 3 additions & 3 deletions contrib/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_contrib_codegen"
version = "0.4.2"
version = "0.4.3"
authors = ["Sergio Benitez <[email protected]>"]
description = "Procedural macros for the Rocket contrib libraries."
documentation = "https://api.rocket.rs/v0.4/rocket_contrib/"
Expand All @@ -27,5 +27,5 @@ version_check = "0.9.1"

[dev-dependencies]
compiletest_rs = { version = "0.3", features = ["stable"] }
rocket = { version = "0.4.2", path = "../../core/lib" }
rocket_contrib = { version = "0.4.2", path = "../lib", features = ["diesel_sqlite_pool"] }
rocket = { version = "0.4.3", path = "../../core/lib" }
rocket_contrib = { version = "0.4.3", path = "../lib", features = ["diesel_sqlite_pool"] }
6 changes: 3 additions & 3 deletions contrib/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_contrib"
version = "0.4.2"
version = "0.4.3"
authors = ["Sergio Benitez <[email protected]>"]
description = "Community contributed libraries for the Rocket web framework."
documentation = "https://api.rocket.rs/v0.4/rocket_contrib/"
Expand Down Expand Up @@ -38,8 +38,8 @@ memcache_pool = ["databases", "memcache", "r2d2-memcache"]

[dependencies]
# Global dependencies.
rocket_contrib_codegen = { version = "0.4.2", path = "../codegen", optional = true }
rocket = { version = "0.4.2", path = "../../core/lib/", default-features = false }
rocket_contrib_codegen = { version = "0.4.3", path = "../codegen", optional = true }
rocket = { version = "0.4.3", path = "../../core/lib/", default-features = false }
log = "0.4"

# Serialization and templating dependencies.
Expand Down
2 changes: 1 addition & 1 deletion contrib/lib/src/databases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["diesel_sqlite_pool"]
//! ```
Expand Down
2 changes: 1 addition & 1 deletion contrib/lib/src/helmet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["helmet"]
//! ```
Expand Down
2 changes: 1 addition & 1 deletion contrib/lib/src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["json"]
//! ```
Expand Down
2 changes: 1 addition & 1 deletion contrib/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["json"]
//! ```
Expand Down
2 changes: 1 addition & 1 deletion contrib/lib/src/msgpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["msgpack"]
//! ```
Expand Down
2 changes: 1 addition & 1 deletion contrib/lib/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["serve"]
//! ```
Expand Down
4 changes: 2 additions & 2 deletions contrib/lib/src/templates/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["handlebars_templates", "tera_templates"]
//! ```
Expand Down Expand Up @@ -158,7 +158,7 @@ const DEFAULT_TEMPLATE_DIR: &str = "templates";
///
/// ```toml
/// [dependencies.rocket_contrib]
/// version = "0.4.2"
/// version = "0.4.3"
/// default-features = false
/// features = ["handlebars_templates", "tera_templates"]
/// ```
Expand Down
4 changes: 2 additions & 2 deletions contrib/lib/src/uuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//!
//! ```toml
//! [dependencies.rocket_contrib]
//! version = "0.4.2"
//! version = "0.4.3"
//! default-features = false
//! features = ["uuid"]
//! ```
Expand All @@ -34,7 +34,7 @@ pub use self::uuid_crate::parser::ParseError;
///
/// ```toml
/// [dependencies.rocket_contrib]
/// version = "0.4.2"
/// version = "0.4.3"
/// default-features = false
/// features = ["uuid"]
/// ```
Expand Down
6 changes: 3 additions & 3 deletions core/codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_codegen"
version = "0.4.2"
version = "0.4.3"
authors = ["Sergio Benitez <[email protected]>"]
description = "Procedural macros for the Rocket web framework."
documentation = "https://api.rocket.rs/v0.4/rocket_codegen/"
Expand All @@ -17,7 +17,7 @@ proc-macro = true
[dependencies]
indexmap = "1.0"
quote = "0.6.1"
rocket_http = { version = "0.4.2", path = "../http/" }
rocket_http = { version = "0.4.3", path = "../http/" }
devise = "0.2"
glob = "0.3"

Expand All @@ -26,5 +26,5 @@ yansi = "0.5"
version_check = "0.9.1"

[dev-dependencies]
rocket = { version = "0.4.2", path = "../lib" }
rocket = { version = "0.4.3", path = "../lib" }
compiletest_rs = { version = "0.3", features = ["stable"] }
2 changes: 1 addition & 1 deletion core/codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//!
//! ```toml
//! [dependencies]
//! rocket = "0.4.2"
//! rocket = "0.4.3"
//! ```
//!
//! And to import all macros, attributes, and derives via `#[macro_use]` in the
Expand Down
4 changes: 2 additions & 2 deletions core/http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket_http"
version = "0.4.2"
version = "0.4.3"
authors = ["Sergio Benitez <[email protected]>"]
description = """
Types, traits, and parsers for HTTP requests, responses, and headers.
Expand Down Expand Up @@ -36,4 +36,4 @@ features = ["server"]
optional = true

[dev-dependencies]
rocket = { version = "0.4.2", path = "../lib" }
rocket = { version = "0.4.3", path = "../lib" }
6 changes: 3 additions & 3 deletions core/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rocket"
version = "0.4.2"
version = "0.4.3"
authors = ["Sergio Benitez <[email protected]>"]
description = """
Web framework for nightly with a focus on ease-of-use, expressibility, and speed.
Expand All @@ -23,8 +23,8 @@ tls = ["rocket_http/tls"]
private-cookies = ["rocket_http/private-cookies"]

[dependencies]
rocket_codegen = { version = "0.4.2", path = "../codegen" }
rocket_http = { version = "0.4.2", path = "../http" }
rocket_codegen = { version = "0.4.3", path = "../codegen" }
rocket_http = { version = "0.4.3", path = "../http" }
yansi = "0.5"
log = "0.4"
toml = "0.4.7"
Expand Down
2 changes: 1 addition & 1 deletion core/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
//!
//! ```toml
//! [dependencies]
//! rocket = "0.4.2"
//! rocket = "0.4.3"
//! ```
//!
//! Then, add the following to the top of your `main.rs` file:
Expand Down
2 changes: 1 addition & 1 deletion scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ case $PRE_RELEASE in
ROCKET_VERSION="${VERSION_CODENAME}-$(future_date)"
;;
false)
ROCKET_VERSION="0.4.2"
ROCKET_VERSION="0.4.3"
VERSION_CODENAME="$(echo "v${ROCKET_VERSION}" | cut -d'.' -f1-2)"
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion site/guide/1-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.2
git checkout v0.4.3
cd examples/hello_world
cargo run
```
Expand Down
2 changes: 1 addition & 1 deletion site/guide/10-pastebin.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Then add the usual Rocket dependencies to the `Cargo.toml` file:

```toml
[dependencies]
rocket = "0.4.2"
rocket = "0.4.3"
```

And finally, create a skeleton Rocket application to work off of in
Expand Down
2 changes: 1 addition & 1 deletion site/guide/2-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Now, add Rocket as a dependency in your `Cargo.toml`:

```toml
[dependencies]
rocket = "0.4.2"
rocket = "0.4.3"
```

Modify `src/main.rs` so that it contains the code for the Rocket `Hello, world!`
Expand Down
2 changes: 1 addition & 1 deletion site/guide/4-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ so that you depend on `rocket` as follows:

```toml
[dependencies]
rocket = { version = "0.4.2", default-features = false }
rocket = { version = "0.4.3", default-features = false }
```

[`ring`]: https://github.com/briansmith/ring
Expand Down
2 changes: 1 addition & 1 deletion site/guide/6-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ databases, you'd write in `Cargo.toml`:

```toml
[dependencies.rocket_contrib]
version = "0.4.2"
version = "0.4.3"
default-features = false
features = ["diesel_sqlite_pool"]
```
Expand Down
2 changes: 1 addition & 1 deletion site/guide/9-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ dependency in your `Cargo.toml` file:

```toml
[dependencies]
rocket = { version = "0.4.2", features = ["tls"] }
rocket = { version = "0.4.3", features = ["tls"] }
```

TLS is configured through the `tls` configuration parameter. The value of `tls`
Expand Down
4 changes: 2 additions & 2 deletions site/index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
###############################################################################

[release]
version = "0.4.2"
date = "Jun 28, 2019"
version = "0.4.3"
date = "Feb 29, 2020"

###############################################################################
# Top features: displayed in the header under the introductory text.
Expand Down

0 comments on commit b3d65b0

Please sign in to comment.