mirror of
https://github.com/ntex-rs/ntex-extras.git
synced 2025-04-03 21:07:40 +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]
|
||||
name = "ntex-cors"
|
||||
version = "0.5.0-b.0"
|
||||
version = "0.5.0"
|
||||
authors = ["ntex contributors <team@ntex.rs>"]
|
||||
description = "Cross-origin resource sharing (CORS) for ntex applications."
|
||||
readme = "README.md"
|
||||
|
@ -16,9 +16,9 @@ name = "ntex_cors"
|
|||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
ntex = "1.0.0-b.1"
|
||||
ntex = "1.0"
|
||||
derive_more = "0.99"
|
||||
futures = "0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
||||
ntex = { version = "1.0", features=["tokio"] }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ntex-files"
|
||||
version = "0.4.0-b.0"
|
||||
version = "0.4.0"
|
||||
authors = ["ntex contributors <team@ntex.rs>"]
|
||||
description = "Static files support for ntex web."
|
||||
readme = "README.md"
|
||||
|
@ -18,8 +18,8 @@ name = "ntex_files"
|
|||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
ntex = "1.0.0-b.1"
|
||||
ntex-http = "0.1.11"
|
||||
ntex = "1.0"
|
||||
ntex-http = "0.1"
|
||||
bitflags = "2.1"
|
||||
futures = "0.3"
|
||||
derive_more = "0.99"
|
||||
|
@ -34,4 +34,4 @@ language-tags = "0.3.2"
|
|||
httpdate = "1.0"
|
||||
|
||||
[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 mime_guess::from_path;
|
||||
|
||||
use futures::future::{ready, Ready};
|
||||
use futures::stream::TryStreamExt;
|
||||
use ntex::http::body::SizedStream;
|
||||
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 {
|
||||
type Future = Ready<HttpResponse>;
|
||||
|
||||
fn respond_to(self, req: &HttpRequest) -> Self::Future {
|
||||
ready(self.into_response(req))
|
||||
async fn respond_to(self, req: &HttpRequest) -> HttpResponse {
|
||||
self.into_response(req)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ntex-identity"
|
||||
version = "0.4.0-b.0"
|
||||
version = "0.4.0"
|
||||
authors = ["ntex contributors <team@ntex.rs>"]
|
||||
description = "Identity service for ntex web framework."
|
||||
readme = "README.md"
|
||||
|
@ -21,7 +21,7 @@ default = ["cookie-policy"]
|
|||
cookie-policy = ["cookie/secure", "ntex/cookie"]
|
||||
|
||||
[dependencies]
|
||||
ntex = "1.0.0-b.1"
|
||||
ntex = "1.0"
|
||||
futures = "0.3"
|
||||
serde = "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"] }
|
||||
|
||||
[dev-dependencies]
|
||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
||||
ntex = { version = "1.0", features=["tokio"] }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ntex-multipart"
|
||||
version = "0.4.0-b.0"
|
||||
version = "0.4.0"
|
||||
authors = ["ntex contributors <team@ntex.rs>"]
|
||||
description = "Multipart support for ntex web framework."
|
||||
readme = "README.md"
|
||||
|
@ -16,7 +16,7 @@ name = "ntex_multipart"
|
|||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
ntex = "1.0.0-b.1"
|
||||
ntex = "1.0"
|
||||
derive_more = "0.99"
|
||||
httparse = "1.3"
|
||||
futures = "0.3"
|
||||
|
@ -25,4 +25,4 @@ mime = "0.3"
|
|||
twoway = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
ntex = { version = "1.0.0-b.1", features=["tokio"] }
|
||||
ntex = { version = "1.0", features=["tokio"] }
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "ntex-session"
|
||||
version = "0.4.0-b.0"
|
||||
version = "0.4.0"
|
||||
authors = ["ntex contributors <team@ntex.rs>"]
|
||||
description = "Session for ntex web framework."
|
||||
readme = "README.md"
|
||||
|
@ -22,7 +22,7 @@ default = ["cookie-session"]
|
|||
cookie-session = ["cookie/secure", "ntex/cookie"]
|
||||
|
||||
[dependencies]
|
||||
ntex = "1.0.0-b.1"
|
||||
ntex = "1.0"
|
||||
cookie = "0.18"
|
||||
derive_more = "0.99"
|
||||
futures = "0.3"
|
||||
|
@ -31,4 +31,4 @@ serde_json = "1.0"
|
|||
time = { version = "0.3", default-features = false, features = ["std"] }
|
||||
|
||||
[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