mirror of
https://github.com/ntex-rs/ntex-extras.git
synced 2025-04-04 13:27:41 +03:00
Migrate to 1.0
This commit is contained in:
parent
14c6930954
commit
570f633ba7
6 changed files with 18 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ntex-cors"
|
name = "ntex-cors"
|
||||||
version = "0.5.0-b.0"
|
version = "0.5.0"
|
||||||
authors = ["ntex contributors <team@ntex.rs>"]
|
authors = ["ntex contributors <team@ntex.rs>"]
|
||||||
description = "Cross-origin resource sharing (CORS) for ntex applications."
|
description = "Cross-origin resource sharing (CORS) for ntex applications."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -16,9 +16,9 @@ name = "ntex_cors"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ntex = "1.0.0-b.1"
|
ntex = "1.0"
|
||||||
derive_more = "0.99"
|
derive_more = "0.99"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
ntex = { version = "1.0", features=["tokio"] }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ntex-files"
|
name = "ntex-files"
|
||||||
version = "0.4.0-b.0"
|
version = "0.4.0"
|
||||||
authors = ["ntex contributors <team@ntex.rs>"]
|
authors = ["ntex contributors <team@ntex.rs>"]
|
||||||
description = "Static files support for ntex web."
|
description = "Static files support for ntex web."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -18,8 +18,8 @@ name = "ntex_files"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ntex = "1.0.0-b.1"
|
ntex = "1.0"
|
||||||
ntex-http = "0.1.11"
|
ntex-http = "0.1"
|
||||||
bitflags = "2.1"
|
bitflags = "2.1"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
derive_more = "0.99"
|
derive_more = "0.99"
|
||||||
|
@ -34,4 +34,4 @@ language-tags = "0.3.2"
|
||||||
httpdate = "1.0"
|
httpdate = "1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ntex = { version = "1.0.0-b.1", features = ["tokio", "openssl", "compress"] }
|
ntex = { version = "1.0", features = ["tokio", "openssl", "compress"] }
|
||||||
|
|
|
@ -11,7 +11,6 @@ use std::os::unix::fs::MetadataExt;
|
||||||
use bitflags::bitflags;
|
use bitflags::bitflags;
|
||||||
use mime_guess::from_path;
|
use mime_guess::from_path;
|
||||||
|
|
||||||
use futures::future::{ready, Ready};
|
|
||||||
use futures::stream::TryStreamExt;
|
use futures::stream::TryStreamExt;
|
||||||
use ntex::http::body::SizedStream;
|
use ntex::http::body::SizedStream;
|
||||||
use ntex::http::header::ContentEncoding;
|
use ntex::http::header::ContentEncoding;
|
||||||
|
@ -477,9 +476,7 @@ fn none_match(etag: Option<&file_header::EntityTag>, req: &HttpRequest) -> bool
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<Err: ErrorRenderer> Responder<Err> for NamedFile {
|
impl<Err: ErrorRenderer> Responder<Err> for NamedFile {
|
||||||
type Future = Ready<HttpResponse>;
|
async fn respond_to(self, req: &HttpRequest) -> HttpResponse {
|
||||||
|
self.into_response(req)
|
||||||
fn respond_to(self, req: &HttpRequest) -> Self::Future {
|
|
||||||
ready(self.into_response(req))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ntex-identity"
|
name = "ntex-identity"
|
||||||
version = "0.4.0-b.0"
|
version = "0.4.0"
|
||||||
authors = ["ntex contributors <team@ntex.rs>"]
|
authors = ["ntex contributors <team@ntex.rs>"]
|
||||||
description = "Identity service for ntex web framework."
|
description = "Identity service for ntex web framework."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -21,7 +21,7 @@ default = ["cookie-policy"]
|
||||||
cookie-policy = ["cookie/secure", "ntex/cookie"]
|
cookie-policy = ["cookie/secure", "ntex/cookie"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ntex = "1.0.0-b.1"
|
ntex = "1.0"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
@ -30,4 +30,4 @@ cookie = { version = "0.18", features = ["private"] }
|
||||||
time = { version = "0.3", default-features = false, features = ["std"] }
|
time = { version = "0.3", default-features = false, features = ["std"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
ntex = { version = "1.0", features=["tokio"] }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ntex-multipart"
|
name = "ntex-multipart"
|
||||||
version = "0.4.0-b.0"
|
version = "0.4.0"
|
||||||
authors = ["ntex contributors <team@ntex.rs>"]
|
authors = ["ntex contributors <team@ntex.rs>"]
|
||||||
description = "Multipart support for ntex web framework."
|
description = "Multipart support for ntex web framework."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -16,7 +16,7 @@ name = "ntex_multipart"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ntex = "1.0.0-b.1"
|
ntex = "1.0"
|
||||||
derive_more = "0.99"
|
derive_more = "0.99"
|
||||||
httparse = "1.3"
|
httparse = "1.3"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
@ -25,4 +25,4 @@ mime = "0.3"
|
||||||
twoway = "0.2"
|
twoway = "0.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
ntex = { version = "1.0", features=["tokio"] }
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ntex-session"
|
name = "ntex-session"
|
||||||
version = "0.4.0-b.0"
|
version = "0.4.0"
|
||||||
authors = ["ntex contributors <team@ntex.rs>"]
|
authors = ["ntex contributors <team@ntex.rs>"]
|
||||||
description = "Session for ntex web framework."
|
description = "Session for ntex web framework."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -22,7 +22,7 @@ default = ["cookie-session"]
|
||||||
cookie-session = ["cookie/secure", "ntex/cookie"]
|
cookie-session = ["cookie/secure", "ntex/cookie"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ntex = "1.0.0-b.1"
|
ntex = "1.0"
|
||||||
cookie = "0.18"
|
cookie = "0.18"
|
||||||
derive_more = "0.99"
|
derive_more = "0.99"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
@ -31,4 +31,4 @@ serde_json = "1.0"
|
||||||
time = { version = "0.3", default-features = false, features = ["std"] }
|
time = { version = "0.3", default-features = false, features = ["std"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
ntex = { version = "1.0", features=["tokio"] }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue