Skip to content

Commit

Permalink
Merge pull request #187 from alexrudy/feature/executor/server
Browse files Browse the repository at this point in the history
feat(rt): Support executor generic servers
  • Loading branch information
alexrudy authored Oct 21, 2024
2 parents c8e00bb + d3a4769 commit b4650cb
Show file tree
Hide file tree
Showing 17 changed files with 927 additions and 147 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ name = "h2-server"
path = "examples/server/h2.rs"
required-features = ["server", "tls", "tls-ring"]

[[example]]
name = "single-threaded"
path = "examples/single_threaded.rs"
required-features = ["server", "client"]


[[test]]
name = "stream-duplex"
path = "tests/stream/duplex.rs"
Expand Down
3 changes: 2 additions & 1 deletion examples/server/h2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ async fn main() {
.with_shared_service(svc)
.with_connection_info()
.with_tls_connection_info()
.with_http2();
.with_http2()
.with_tokio();

let (tx, rx) = tokio::sync::oneshot::channel();

Expand Down
Loading

0 comments on commit b4650cb

Please sign in to comment.