Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce volo-http crate #264

Merged
merged 12 commits into from
Nov 28, 2023
7 changes: 7 additions & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ We've copied and modified some code of [`tonic`](https://github.com/hyperium/ton
We really appreciate the work that the `tonic` team have done.

`Tonic` is licensed under the MIT license, and a copy can be found under the `licenses/tonic` directory.

# axum

We've copied and modified some code of [`axum`](https://github.com/tokio-rs/axum).
We really appreciate the work that the `axum` team have done.

`axum` is licensed under the MIT license, and a copy can be found under the `licenses/axum` directory.
154 changes: 136 additions & 18 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ linkedbytes = "0.1"
linked-hash-map = "0.5"
log = "0.4"
matchit = "0.7"
mime = "0.3"
mur3 = "0.1"
nix = "0.27"
nom = "7"
Expand All @@ -86,6 +87,7 @@ regex = "1"
run_script = "0.10"
same-file = "1"
serde = "1"
serde_json = "1"
serde_yaml = "0.9"
socket2 = "0.5"
syn = "1"
Expand Down
13 changes: 12 additions & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,22 @@ path = "src/unknown/thrift_server.rs"
name = "unknown-thrift-client"
path = "src/unknown/thrift_client.rs"

# http
[[bin]]
name = "http-simple"
path = "src/http/simple.rs"

[dependencies]
anyhow.workspace = true
async-stream.workspace = true
bytes.workspace = true
http = "1"
http-body-util = "0.1"
hyper = { version = "1", features = ["server", "http1", "http2"] }
lazy_static.workspace = true
metainfo.workspace = true
motore.workspace = true
serde.workspace = true
tokio = { workspace = true, features = ["full"] }
tokio-stream.workspace = true
tracing.workspace = true
Expand All @@ -87,6 +97,7 @@ pilota.workspace = true
volo = { path = "../volo" }
volo-grpc = { path = "../volo-grpc" }
volo-thrift = { path = "../volo-thrift" }
volo-http = { path = "../volo-http" }

volo-gen = { path = "./volo-gen" }

Expand All @@ -96,4 +107,4 @@ rustls-pemfile = { workspace = true, optional = true }
tokio-rustls = { workspace = true, optional = true }

[features]
tls = ["librustls", "rustls-pemfile", "tokio-rustls", "volo/rustls", "volo-grpc/rustls"]
tls = ["librustls", "rustls-pemfile", "tokio-rustls", "volo/rustls", "volo-grpc/rustls"]
Loading
Loading