Skip to content

Commit

Permalink
hyper-1.0 client-server example (#639)
Browse files Browse the repository at this point in the history
- Implement hyper's runtime traits for glommio
- Update hyper server example for hyper 1.0
- Add hyper client example for hyper 1.0
  • Loading branch information
sattva9 committed Feb 28, 2024
1 parent a14a826 commit c8bd32e
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 148 deletions.
17 changes: 11 additions & 6 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ futures-lite = "1.11.1"
glommio = { path = "../glommio" }

# hyper and tokio for the hyper example. We just need the traits from Tokio
hyper = { version = "0.14", features = ["full"] }
hyper = { version = "1.2.0", features = ["full"] }
num_cpus = "1.13.0"
pretty-bytes = "~0.2.2"
sys-info = "~0.8.0"
tokio = { version = "1" }
http-body-util = "0.1.0"
serde_json = "1.0.114"

[[example]]
name = "echo"
Expand Down Expand Up @@ -52,10 +53,14 @@ path = "storage.rs"
name = "channel_mesh"
path = "sharding.rs"

[[example]]
name = "hyper"
path = "hyper.rs"

[[example]]
name = "gate"
path = "gate.rs"

[[example]]
name = "hyper_server"
path = "hyper_server.rs"

[[example]]
name = "hyper_client"
path = "hyper_client.rs"
142 changes: 0 additions & 142 deletions examples/hyper.rs

This file was deleted.

Loading

0 comments on commit c8bd32e

Please sign in to comment.