Skip to content

Commit 6abcdec

Browse files
committed
feat: bump rustls to 0.23 and mlua to 0.10
1 parent 49e2864 commit 6abcdec

File tree

15 files changed

+889
-155
lines changed

15 files changed

+889
-155
lines changed

capybara-core/Cargo.toml

+5-7
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,11 @@ ahash = "0.8"
4343
parking_lot = "0.12"
4444
strum = { version = "0.26", default-features = false, features = ["strum_macros", "derive"] }
4545
strum_macros = "0.26"
46-
tokio-rustls = "0.24"
47-
rustls = "0.21"
48-
rustls-pemfile = "1.0"
49-
webpki-roots = "0.25"
50-
webpki = { package = "rustls-webpki", version = "0.101", features = ["alloc", "std"] }
5146
nonzero_ext = "0.3"
5247
glob = "0.3"
5348
memchr = "2.7"
5449
small-map = "0.1"
55-
hashbrown = { version = "0.14", features = ["serde"] }
50+
hashbrown = { version = "0.15", features = ["serde"] }
5651
arc-swap = "1.7"
5752
duration-str = "0.11"
5853
deadpool = { version = "0.12", features = ["rt_tokio_1"] }
@@ -62,10 +57,13 @@ coarsetime = "0.1"
6257
hickory-resolver = "0.24"
6358
rustc-hash = { version = "2.0", default-features = false }
6459
moka = { version = "0.12", features = ["future", "sync"] }
65-
mlua = { version = "0.9", features = ["luajit", "vendored", "serialize", "async", "macros", "send", "parking_lot"] }
60+
mlua = { version = "0.10.1", features = ["luajit", "vendored", "serialize", "async", "macros", "send", "anyhow"] }
6661
garde = { version = "0.20", features = ["serde", "derive", "pattern", "regex"] }
6762
bytesize = { version = "1.2", features = ["serde"] }
6863
liquid = "0.26"
64+
rustls = "0.23"
65+
webpki-roots = "0.26"
66+
tokio-rustls = "0.26"
6967

7068
[[example]]
7169
name = "httpbin"

capybara-core/src/pipeline/http/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub use registry::{register, HttpPipelineFactory};
88

99
mod noop;
1010
mod pipeline;
11+
mod pipeline_access_log;
1112
mod pipeline_lua;
1213
mod pipeline_router;
1314
mod registry;

capybara-core/src/pipeline/http/pipeline.rs

+5
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ impl HttpContext {
252252
}
253253
}
254254

255+
#[cfg(test)]
256+
pub(crate) fn fake() -> HttpContext {
257+
HttpContext::builder("127.0.0.1:12345".parse().unwrap()).build()
258+
}
259+
255260
#[inline]
256261
pub fn id(&self) -> u64 {
257262
self.id

0 commit comments

Comments
 (0)