Skip to content

Commit

Permalink
bump -lab-derive version
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Feb 19, 2023
1 parent deb75f7 commit d28451a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion actix-web-lab-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-web-lab-derive"
version = "0.18.0"
version = "0.19.0"
description = "Experimental macros for Actix Web"
authors = ["Rob Ede <robjtede@icloud.com>"]
keywords = ["actix", "http", "web", "framework", "async"]
Expand Down
6 changes: 3 additions & 3 deletions actix-web-lab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ msgpack = ["rmp-serde"]
spa = ["actix-files"]

[dependencies]
actix-web-lab-derive = { version = "=0.18.0", optional = true }
actix-web-lab-derive = { version = "=0.19.0", optional = true }

actix-web = { version = "4.1", default-features = false }
actix-web = { version = "4.3", default-features = false }
actix-http = "3"
actix-service = "2"
actix-router = "0.5"
Expand Down Expand Up @@ -69,7 +69,7 @@ rmp-serde = { version = "1", optional = true }
actix-files = { version = "0.6", optional = true }

[dev-dependencies]
actix-web-lab-derive = "=0.18.0"
actix-web-lab-derive = "=0.19.0"

actix-web = { version = "4", features = ["rustls"] }
async_zip = "0.0.9"
Expand Down
2 changes: 2 additions & 0 deletions actix-web-lab/src/acceptable.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(deprecated)]

use actix_web::{
guard::{Guard, GuardContext},
http::header::Accept,
Expand Down
1 change: 1 addition & 0 deletions actix-web-lab/src/guard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
//!
//! Analogous to the `guard` module in Actix Web.

#[allow(deprecated)]
pub use crate::acceptable::Acceptable;
3 changes: 2 additions & 1 deletion actix-web-lab/src/redirect_to_https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ use actix_web::{
body::EitherBody,
dev::{forward_ready, Service, ServiceRequest, ServiceResponse, Transform},
http::header::TryIntoHeaderPair,
web::Redirect,
HttpResponse, Responder as _,
};
use futures_core::future::LocalBoxFuture;

use crate::{header::StrictTransportSecurity, web::Redirect};
use crate::header::StrictTransportSecurity;

/// A middleware to redirect traffic to HTTPS if connection is insecure.
///
Expand Down
3 changes: 2 additions & 1 deletion actix-web-lab/src/redirect_to_www.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use actix_web::{
body::MessageBody,
dev::{ServiceRequest, ServiceResponse},
web::Redirect,
Error, Responder,
};

use crate::{middleware_from_fn::Next, web::Redirect};
use crate::middleware_from_fn::Next;

/// A function middleware to redirect traffic to `www.` if not already there.
///
Expand Down
3 changes: 3 additions & 0 deletions actix-web-lab/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use std::borrow::Cow;

#[allow(deprecated)]
pub use crate::redirect::Redirect;
#[cfg(feature = "spa")]
pub use crate::spa::Spa;
Expand All @@ -24,6 +25,8 @@ pub use crate::spa::Spa;
/// ```
///
/// [graduated]: https://docs.rs/actix-web/4/actix_web/web/struct.Redirect.html
#[allow(deprecated)]
#[deprecated(since = "0.19.0", note = "Type has graduated to Actix Web.")]
pub fn redirect(from: impl Into<Cow<'static, str>>, to: impl Into<Cow<'static, str>>) -> Redirect {
Redirect::new(from, to)
}
Expand Down

0 comments on commit d28451a

Please sign in to comment.