From d14e18824627e21176721f461c5bf0c498f37202 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 27 Sep 2020 14:29:33 +0100 Subject: [PATCH] prepare CORS release 0.4.0 (#107) --- actix-cors/CHANGES.md | 6 +++++- actix-cors/Cargo.toml | 4 ++-- actix-cors/README.md | 21 ++++++++++----------- actix-cors/src/lib.rs | 2 +- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/actix-cors/CHANGES.md b/actix-cors/CHANGES.md index d7bfee364..02a95458e 100644 --- a/actix-cors/CHANGES.md +++ b/actix-cors/CHANGES.md @@ -1,9 +1,13 @@ # Changes ## Unreleased - 2020-xx-xx -* Implement `allowed_origin_fn` builder method. + + +## 0.4.0 - 2020-09-27 +* Implement `allowed_origin_fn` builder method. [#93] * Use `TryInto` instead of `TryFrom` where applicable. [#106] +[#93]: https://github.com/actix/actix-extras/pull/93 [#106]: https://github.com/actix/actix-extras/pull/106 diff --git a/actix-cors/Cargo.toml b/actix-cors/Cargo.toml index ee992696f..99b41865e 100644 --- a/actix-cors/Cargo.toml +++ b/actix-cors/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "actix-cors" -version = "0.3.0" +version = "0.4.0" authors = ["Nikolay Kim "] -description = "Cross-origin resource sharing (CORS) controls for Actix web" +description = "Cross-Origin Resource Sharing (CORS) controls for Actix web" readme = "README.md" keywords = ["actix", "cors", "web", "security", "crossorigin"] homepage = "https://actix.rs" diff --git a/actix-cors/README.md b/actix-cors/README.md index c295a64ec..8dec8ef22 100644 --- a/actix-cors/README.md +++ b/actix-cors/README.md @@ -1,17 +1,16 @@ # actix-cors -[![crates.io](https://img.shields.io/crates/v/actix-cors)](https://crates.io/crates/actix-cors) -[![Documentation](https://docs.rs/actix-cors/badge.svg)](https://docs.rs/actix-cors) -[![Dependency Status](https://deps.rs/crate/actix-cors/0.2.0/status.svg)](https://deps.rs/crate/actix-cors/0.2.0) -![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-cors) -[![Join the chat at https://gitter.im/actix/actix](https://badges.gitter.im/actix/actix.svg)](https://gitter.im/actix/actix?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - > Cross-origin resource sharing (CORS) for Actix applications. -## Documentation & community resources +[![crates.io](https://img.shields.io/crates/v/actix-cors)](https://crates.io/crates/actix-cors) +[![Documentation](https://docs.rs/actix-cors/badge.svg)](https://docs.rs/actix-cors) +[![Dependency Status](https://deps.rs/crate/actix-cors/0.4.0/status.svg)](https://deps.rs/crate/actix-cors/0.4.0) +![Apache 2.0 or MIT licensed](https://img.shields.io/crates/l/actix-cors) +[![Join the chat at https://gitter.im/actix/actix-web](https://badges.gitter.im/actix/actix-web.svg)](https://gitter.im/actix/actix-web?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +## Documentation & Resources -* [User Guide](https://actix.rs/docs/) * [API Documentation](https://docs.rs/actix-cors/) -* [Chat on gitter](https://gitter.im/actix/actix) -* Cargo package: [actix-cors](https://crates.io/crates/actix-cors) -* Minimum supported Rust version: 1.40.0 or later +* [Example Project](https://github.com/actix/examples/tree/master/web-cors) +* [Chat on Gitter](https://gitter.im/actix/actix-web) +* Minimum Supported Rust Version (MSRV): 1.42.0 diff --git a/actix-cors/src/lib.rs b/actix-cors/src/lib.rs index cb8ce833d..c592043af 100644 --- a/actix-cors/src/lib.rs +++ b/actix-cors/src/lib.rs @@ -1,4 +1,4 @@ -//! Cross-Origin Resource Sharing (CORS) middleware for actix-web. +//! Cross-Origin Resource Sharing (CORS) controls for Actix web. //! //! This middleware can be applied to both applications and resources. //! Once built, [`CorsFactory`](struct.CorsFactory.html) can be used as a