mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +01:00
bump msrv to 1.51
This commit is contained in:
parent
44c7b07ce2
commit
c6f579790f
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
target:
|
target:
|
||||||
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
|
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
|
||||||
version:
|
version:
|
||||||
- 1.46.0 # MSRV
|
- 1.51.0 # MSRV
|
||||||
- stable
|
- stable
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ jobs:
|
|||||||
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
|
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
|
||||||
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
|
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
|
||||||
version:
|
version:
|
||||||
- 1.46.0 # MSRV
|
- 1.51.0 # MSRV
|
||||||
- stable
|
- stable
|
||||||
- nightly
|
- nightly
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2021-xx-xx
|
## Unreleased - 2021-xx-xx
|
||||||
|
* Minimum supported Rust version (MSRV) is now 1.51.
|
||||||
|
|
||||||
|
|
||||||
## 0.6.0-beta.2 - 2021-06-27
|
## 0.6.0-beta.2 - 2021-06-27
|
||||||
|
@ -11,4 +11,4 @@
|
|||||||
|
|
||||||
- [API Documentation](https://docs.rs/actix-cors)
|
- [API Documentation](https://docs.rs/actix-cors)
|
||||||
- [Example Project](https://github.com/actix/examples/tree/master/security/web-cors)
|
- [Example Project](https://github.com/actix/examples/tree/master/security/web-cors)
|
||||||
- Minimum Supported Rust Version (MSRV): 1.46.0
|
- Minimum Supported Rust Version (MSRV): 1.51
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
* Minimum supported Rust version (MSRV) is now 1.51.
|
||||||
|
|
||||||
|
|
||||||
## 0.4.0-beta.2 - 2020-06-27
|
## 0.4.0-beta.2 - 2020-06-27
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
## Documentation & community resources
|
## Documentation & community resources
|
||||||
|
|
||||||
* [API Documentation](https://docs.rs/actix-identity)
|
* [API Documentation](https://docs.rs/actix-identity)
|
||||||
* Minimum Supported Rust Version (MSRV): 1.46
|
* Minimum Supported Rust Version (MSRV): 1.51
|
||||||
|
@ -109,10 +109,10 @@ impl CookieIdentityInner {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if add_cookie {
|
if add_cookie {
|
||||||
jar.private_mut(&key).add(cookie);
|
jar.private_mut(key).add(cookie);
|
||||||
} else {
|
} else {
|
||||||
jar.add_original(cookie.clone());
|
jar.add_original(cookie.clone());
|
||||||
jar.private_mut(&key).remove(cookie);
|
jar.private_mut(key).remove(cookie);
|
||||||
}
|
}
|
||||||
|
|
||||||
for cookie in jar.delta() {
|
for cookie in jar.delta() {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
* Minimum supported Rust version (MSRV) is now 1.51.
|
||||||
|
|
||||||
|
|
||||||
## 0.7.0-beta.1 - 2020-06-27
|
## 0.7.0-beta.1 - 2020-06-27
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
- [API Documentation](https://docs.rs/actix-protobuf)
|
- [API Documentation](https://docs.rs/actix-protobuf)
|
||||||
- [Example Project](https://github.com/actix/examples/tree/master/other/protobuf)
|
- [Example Project](https://github.com/actix/examples/tree/master/other/protobuf)
|
||||||
- Minimum Supported Rust Version (MSRV): 1.46.0
|
- Minimum Supported Rust Version (MSRV): 1.51
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
* Minimum supported Rust version (MSRV) is now 1.51.
|
||||||
|
|
||||||
|
|
||||||
## 0.10.0-beta.2 - 2020-06-27
|
## 0.10.0-beta.2 - 2020-06-27
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
- [API Documentation](https://docs.rs/actix-redis)
|
- [API Documentation](https://docs.rs/actix-redis)
|
||||||
- [Example Project](https://github.com/actix/examples/tree/HEAD/session/redis-session)
|
- [Example Project](https://github.com/actix/examples/tree/HEAD/session/redis-session)
|
||||||
- Minimum Supported Rust Version (MSRV): 1.46
|
- Minimum Supported Rust Version (MSRV): 1.51
|
||||||
|
|
||||||
## Redis Session Backend
|
## Redis Session Backend
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ impl Inner {
|
|||||||
|
|
||||||
if let Some(cookie) = jar.signed(&self.key).get(&self.name) {
|
if let Some(cookie) = jar.signed(&self.key).get(&self.name) {
|
||||||
let value = cookie.value().to_owned();
|
let value = cookie.value().to_owned();
|
||||||
let cache_key = (self.cache_keygen)(&cookie.value());
|
let cache_key = (self.cache_keygen)(cookie.value());
|
||||||
(value, cache_key)
|
(value, cache_key)
|
||||||
} else {
|
} else {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
* Minimum supported Rust version (MSRV) is now 1.51.
|
||||||
|
|
||||||
|
|
||||||
## 0.5.0-beta.2 - 2020-06-27
|
## 0.5.0-beta.2 - 2020-06-27
|
||||||
|
@ -12,4 +12,4 @@
|
|||||||
|
|
||||||
- [API Documentation](https://docs.rs/actix-session)
|
- [API Documentation](https://docs.rs/actix-session)
|
||||||
- [Example Projects](https://github.com/actix/examples/tree/HEAD/session)
|
- [Example Projects](https://github.com/actix/examples/tree/HEAD/session)
|
||||||
- Minimum Supported Rust Version (MSRV): 1.46
|
- Minimum Supported Rust Version (MSRV): 1.51
|
||||||
|
@ -286,7 +286,7 @@ impl Session {
|
|||||||
|
|
||||||
fn get_session(extensions: &mut Extensions) -> Session {
|
fn get_session(extensions: &mut Extensions) -> Session {
|
||||||
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
|
if let Some(s_impl) = extensions.get::<Rc<RefCell<SessionInner>>>() {
|
||||||
return Session(Rc::clone(&s_impl));
|
return Session(Rc::clone(s_impl));
|
||||||
}
|
}
|
||||||
let inner = Rc::new(RefCell::new(SessionInner::default()));
|
let inner = Rc::new(RefCell::new(SessionInner::default()));
|
||||||
extensions.insert(inner.clone());
|
extensions.insert(inner.clone());
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
|
* Minimum supported Rust version (MSRV) is now 1.51.
|
||||||
|
|
||||||
|
|
||||||
## 0.6.0-beta.2 - 2020-06-27
|
## 0.6.0-beta.2 - 2020-06-27
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
## Documentation & Resources
|
## Documentation & Resources
|
||||||
|
|
||||||
- [API Documentation](*https://docs.rs/actix-web-httpauth/)
|
- [API Documentation](*https://docs.rs/actix-web-httpauth/)
|
||||||
- Minimum Supported Rust Version (MSRV): 1.46
|
- Minimum Supported Rust Version (MSRV): 1.51
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
- Typed [Authorization] and [WWW-Authenticate] headers
|
- Typed [Authorization] and [WWW-Authenticate] headers
|
||||||
|
@ -94,7 +94,7 @@ pub struct BasicAuth(Basic);
|
|||||||
impl BasicAuth {
|
impl BasicAuth {
|
||||||
/// Returns client's user-ID.
|
/// Returns client's user-ID.
|
||||||
pub fn user_id(&self) -> &Cow<'static, str> {
|
pub fn user_id(&self) -> &Cow<'static, str> {
|
||||||
&self.0.user_id()
|
self.0.user_id()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns client's password.
|
/// Returns client's password.
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
//! [Extractors]: https://actix.rs/docs/extractors/
|
//! [Extractors]: https://actix.rs/docs/extractors/
|
||||||
//! [Middleware]: ./middleware
|
//! [Middleware]: ./middleware
|
||||||
|
|
||||||
|
#![forbid(unsafe_code)]
|
||||||
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
|
#![deny(missing_docs, nonstandard_style, rust_2018_idioms)]
|
||||||
#![deny(clippy::all)]
|
|
||||||
|
|
||||||
pub mod extractors;
|
pub mod extractors;
|
||||||
pub mod headers;
|
pub mod headers;
|
||||||
|
1
clippy.toml
Normal file
1
clippy.toml
Normal file
@ -0,0 +1 @@
|
|||||||
|
msrv = "1.51"
|
@ -1,2 +1 @@
|
|||||||
max_width = 89
|
|
||||||
reorder_imports = true
|
reorder_imports = true
|
||||||
|
Loading…
Reference in New Issue
Block a user