diff --git a/frameworks/Rust/ntex/Cargo.toml b/frameworks/Rust/ntex/Cargo.toml index 1daab48152b..f8235905d35 100644 --- a/frameworks/Rust/ntex/Cargo.toml +++ b/frameworks/Rust/ntex/Cargo.toml @@ -67,7 +67,9 @@ neon = ["ntex/neon-polling"] neon-uring = ["ntex/neon-uring"] [dependencies] -ntex = "3.0.0" +ntex = "3.4.0" +ntex-io = "3.9" +ntex-service = "4.5" ntex-bytes = { version = "1.5", features=["simd"] } mimalloc = { version = "0.1.25", default-features = false } snmalloc-rs = { version = "0.3.3", features = ["native-cpu"] } diff --git a/frameworks/Rust/ntex/benchmark_config.json b/frameworks/Rust/ntex/benchmark_config.json index 96dcf9ff73e..6be357246af 100644 --- a/frameworks/Rust/ntex/benchmark_config.json +++ b/frameworks/Rust/ntex/benchmark_config.json @@ -1,5 +1,6 @@ { "framework": "ntex", + "maintainers": ["fafhrd91"], "tests": [{ "default": { "json_url": "/json", diff --git a/frameworks/Rust/ntex/src/main_plt.rs b/frameworks/Rust/ntex/src/main_plt.rs index 3141d62f56b..69185f031e4 100644 --- a/frameworks/Rust/ntex/src/main_plt.rs +++ b/frameworks/Rust/ntex/src/main_plt.rs @@ -84,7 +84,7 @@ async fn main() -> io::Result<()> { .bind("tfb", "0.0.0.0:8080", async |_| { fn_service(|io| App { io, - codec: h1::Codec::new(0, true, utils::config().get::().into_static()), + codec: h1::Codec::new(0, true, utils::config().get::()), }) })? .config("tfb", utils::config()) diff --git a/frameworks/Rust/ntex/src/utils.rs b/frameworks/Rust/ntex/src/utils.rs index 49115d41384..7c071dee8e3 100644 --- a/frameworks/Rust/ntex/src/utils.rs +++ b/frameworks/Rust/ntex/src/utils.rs @@ -33,7 +33,7 @@ pub fn config() -> SharedCfg { .set_payload_read_rate(Seconds::ZERO, Seconds::ZERO, 0), ).into(); } - CFG.with(|cfg| *cfg) + CFG.with(Clone::clone) } pub fn db_config() -> SharedCfg { @@ -45,7 +45,7 @@ pub fn db_config() -> SharedCfg { .set_write_buf(65535, 2048, 128), ).into() } - CFG.with(|cfg| *cfg) + CFG.with(Clone::clone) } pub fn get_query_param(query: Option<&str>) -> usize {