From 2827c8a02bfb0f3532b955f8fd7f017d18bfb3e0 Mon Sep 17 00:00:00 2001 From: Yong Wen Chua Date: Mon, 27 May 2019 08:54:49 +0800 Subject: [PATCH] Release v0.5.0 --- CHANGELOG.md | 4 +++- Cargo.toml | 2 +- README.md | 2 +- src/lib.rs | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d53ca8..a572a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # CHANGELOG -## 0.5.0 (Unreleased) +## 0.5.0 (2019-05-27) + +There is no change since `0.5.0-beta1`. ### Breaking Changes diff --git a/Cargo.toml b/Cargo.toml index f60c1de..f45ac48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rocket_cors" -version = "0.5.0-beta-2" +version = "0.5.0" license = "MIT/Apache-2.0" authors = ["Yong Wen Chua "] description = "Cross-origin resource sharing (CORS) for Rocket.rs applications" diff --git a/README.md b/README.md index ee7fa13..5d2c2d0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ work, but they are subject to the minimum that Rocket sets. Add the following to Cargo.toml: ```toml -rocket_cors = "0.5.0-beta-2" +rocket_cors = "0.5.0" ``` To use the latest `master` branch, for example: diff --git a/src/lib.rs b/src/lib.rs index 4bec1d9..0206ee4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,7 +45,7 @@ the [`CorsOptions`] struct that is described below. If you would like to disable change your `Cargo.toml` to: ```toml -rocket_cors = { version = "0.5.0-beta-2", default-features = false } +rocket_cors = { version = "0.5.0", default-features = false } ``` ## Usage @@ -1576,6 +1576,7 @@ where /// /// The variants hold enough information to build a response to the validation result #[derive(Debug, Eq, PartialEq)] +#[allow(variant_size_differences)] enum ValidationResult { /// Not a CORS request None,