chore: upgrade to ntex 2.0 (#14)

* chore: upgrade to ntex 2.0

* bump version to 2.0
This commit is contained in:
leone 2024-05-28 17:38:47 +02:00 committed by GitHub
parent 7034dcc851
commit b89f611c12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 27 additions and 32 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "ntex-cors"
version = "1.0.0"
version = "2.0.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.1"
ntex = "2"
derive_more = "0.99"
futures = "0.3"
[dev-dependencies]
ntex = { version = "1.1", features=["tokio"] }
ntex = { version = "2", features=["tokio"] }

View file

@ -742,8 +742,8 @@ where
type Response = WebResponse;
type Error = S::Error;
ntex::forward_poll_ready!(service);
ntex::forward_poll_shutdown!(service);
ntex::forward_ready!(service);
ntex::forward_shutdown!(service);
async fn call(
&self,