Release v0.5.0
This commit is contained in:
parent
f438d5538e
commit
2827c8a02b
|
@ -1,6 +1,8 @@
|
|||
# CHANGELOG
|
||||
|
||||
## <a name="0.5.0"></a>0.5.0 (Unreleased)
|
||||
## <a name="0.5.0"></a>0.5.0 (2019-05-27)
|
||||
|
||||
There is no change since `0.5.0-beta1`.
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
|
|
|
@ -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 <me@yongwen.xyz>"]
|
||||
description = "Cross-origin resource sharing (CORS) for Rocket.rs applications"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue