Skip to content

Commit

Permalink
Bump some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jan 25, 2024
1 parent bb53c6b commit ea5fc3e
Show file tree
Hide file tree
Showing 14 changed files with 318 additions and 292 deletions.
3 changes: 1 addition & 2 deletions crates/fluke-buffet/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![allow(incomplete_features)]
#![feature(thread_local)]

mod roll;
Expand Down Expand Up @@ -28,7 +27,7 @@ pub const NUM_BUF: u32 = 64;
static BUF_POOL: BufPool = BufPool::new_empty(BUF_SIZE, NUM_BUF);

thread_local! {
static BUF_POOL_DESTRUCTOR: RefCell<Option<MmapMut>> = RefCell::new(None);
static BUF_POOL_DESTRUCTOR: RefCell<Option<MmapMut>> = const { RefCell::new(None) };
}

type Result<T, E = Error> = std::result::Result<T, E>;
Expand Down
3 changes: 1 addition & 2 deletions crates/fluke-hpack/src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ mod tests {
{
let mut encoder: Encoder = Encoder::new();
// `:method` is in the static table, but only for GET and POST
let headers = vec![(b":authority".to_vec(), b"example.com".to_vec())];

let headers = [(b":authority".to_vec(), b"example.com".to_vec())];
let result = encoder.encode(headers.iter().map(|h| (&h.0[..], &h.1[..])));

assert_eq!(result[0], 1);
Expand Down
2 changes: 1 addition & 1 deletion crates/fluke/src/h2/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ impl<D: ServerDriver + 'static> H2ReadContext<D> {
b"method" => {
// TODO: error handling
let value: PieceStr = Piece::from(value.to_vec()).to_str().unwrap();
if method.replace(Method::try_from(value).unwrap()).is_some() {
if method.replace(Method::from(value)).is_some() {
unreachable!(); // No duplicate allowed.
}
}
Expand Down
24 changes: 12 additions & 12 deletions test-crates/fluke-curl-tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions test-crates/fluke-curl-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ edition = "2021"
[dev-dependencies]
fluke = { version = "0.1.0", path = "../../crates/fluke", features = ["maybe-uring-net"] }
curl = { version = "0.4.44", default-features = false, features = ["http2"] }
bytes = { version = "1.4.0", default-features = false }
pretty_assertions = { version = "1.3.0", default-features = false, features = ["std"] }
bytes = { version = "1.5.0", default-features = false }
pretty_assertions = { version = "1.4.0", default-features = false, features = ["std"] }
tokio-stream = { version = "0.1.14", default-features = false }
tracing-subscriber = { version = "0.3.17", default-features = false, features = ["std", "fmt", "ansi"] }
tracing-subscriber = { version = "0.3.18", default-features = false, features = ["std", "fmt", "ansi"] }
httparse = { version = "1.8.0", default-features = false, features = ["std"] }
tokio = { version = "1.28.2", default-features = false, features = ["io-util", "process", "time"] }
futures-util = { version = "0.3.28", default-features = false, features = ["std"] }
libc = "0.2.146"
eyre = { version = "0.6.8", default-features = false }
tracing = "0.1.39"
http = "0.2.9"
tokio = { version = "1.35.1", default-features = false, features = ["io-util", "process", "time"] }
futures-util = { version = "0.3.30", default-features = false, features = ["std"] }
libc = "0.2.152"
eyre = { version = "0.6.11", default-features = false }
tracing = "0.1.40"
http = "0.2.11"
pretty-hex = "0.3.0"
Loading

0 comments on commit ea5fc3e

Please sign in to comment.