Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Commit 4607de8

Browse files
authored
[ntex] Update ntex framework (#10767)
* Update ntex framework * Add maintainers
1 parent 5a1d936 commit 4607de8

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

frameworks/Rust/ntex/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ neon = ["ntex/neon-polling"]
6767
neon-uring = ["ntex/neon-uring"]
6868

6969
[dependencies]
70-
ntex = "3.0.0"
70+
ntex = "3.4.0"
71+
ntex-io = "3.9"
72+
ntex-service = "4.5"
7173
ntex-bytes = { version = "1.5", features=["simd"] }
7274
mimalloc = { version = "0.1.25", default-features = false }
7375
snmalloc-rs = { version = "0.3.3", features = ["native-cpu"] }

frameworks/Rust/ntex/benchmark_config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"framework": "ntex",
3+
"maintainers": ["fafhrd91"],
34
"tests": [{
45
"default": {
56
"json_url": "/json",

frameworks/Rust/ntex/src/main_plt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async fn main() -> io::Result<()> {
8484
.bind("tfb", "0.0.0.0:8080", async |_| {
8585
fn_service(|io| App {
8686
io,
87-
codec: h1::Codec::new(0, true, utils::config().get::<IoConfig>().into_static()),
87+
codec: h1::Codec::new(0, true, utils::config().get::<IoConfig>()),
8888
})
8989
})?
9090
.config("tfb", utils::config())

frameworks/Rust/ntex/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn config() -> SharedCfg {
3333
.set_payload_read_rate(Seconds::ZERO, Seconds::ZERO, 0),
3434
).into();
3535
}
36-
CFG.with(|cfg| *cfg)
36+
CFG.with(Clone::clone)
3737
}
3838

3939
pub fn db_config() -> SharedCfg {
@@ -45,7 +45,7 @@ pub fn db_config() -> SharedCfg {
4545
.set_write_buf(65535, 2048, 128),
4646
).into()
4747
}
48-
CFG.with(|cfg| *cfg)
48+
CFG.with(Clone::clone)
4949
}
5050

5151
pub fn get_query_param(query: Option<&str>) -> usize {

0 commit comments

Comments
 (0)