Skip to content

Commit

Permalink
feat(http2): Move to h2 crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Volham22 committed Jun 28, 2024
1 parent 61f15c9 commit 9e2eb23
Show file tree
Hide file tree
Showing 21 changed files with 193 additions and 1,923 deletions.
65 changes: 57 additions & 8 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ resolver = "2"
[workspace.dependencies]
bytes = "1.4.0"
clap = { version = "4.5.4", features = ["derive"] }
http = "1.1.0"
thiserror = "1.0.44"
tokio = { version = "1.37.0", features = ["rt", "net", "macros", "fs", "rt-multi-thread"] }
tokio-rustls = "=0.26.0"
tokio = { version = "1.37.0", features = ["rt", "net", "macros", "io-util", "fs", "rt-multi-thread", "sync"] }
tracing = "0.1"
tracing-subscriber = "0.3"
tracing-appender = "0.2.3"
tracing-subscriber = "0.3"
8 changes: 6 additions & 2 deletions http2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bytes = { workspace = true }
thiserror = { workspace = true }
tokio-rustls = { workspace = true }
tokio = { workspace = true }
tokio-rustls = { workspace = true }
tracing = { workspace = true }
fluke-hpack = "0.3.0"

raptor_core = { path = "../raptor-core" }

h2 = "0.4.5"
http = { workspace = true }

[dev-dependencies]
rstest = "0.18.2"
9 changes: 9 additions & 0 deletions http2/src/error.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use thiserror::Error;

pub type Http2Result<T> = Result<T, Http2Error>;

#[derive(Debug, Error)]
pub enum Http2Error {
#[error("HTTP2 error: {0:?}")]
Http2(h2::Error),
}
36 changes: 0 additions & 36 deletions http2/src/frames/continuation.rs

This file was deleted.

31 changes: 0 additions & 31 deletions http2/src/frames/data.rs

This file was deleted.

37 changes: 0 additions & 37 deletions http2/src/frames/errors.rs

This file was deleted.

Loading

0 comments on commit 9e2eb23

Please sign in to comment.