Skip to content

Commit

Permalink
perf: grpc可用调整,去除tower, axum依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertshelley committed Jul 9, 2024
1 parent e92cbe2 commit 9029147
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions examples/candle_whisper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bindgen_cuda = { version = "0.1.5", optional = true }


[dependencies]
clap = { version = "4.5.7", features = ["derive"] }
clap = { version = "4.5.8", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
silent = { path = "../../silent", features = ["multipart"] }
symphonia = { version = "0.5.4", features = ["all"] }
Expand All @@ -38,5 +38,5 @@ candle-transformers = { git = "https://github.com/huggingface/candle" }

tokenizers = { version = "0.19.1", features = ["onig"] }
rand = "0.8.5"
serde_json = "1.0.117"
serde_json = "1.0.120"
byteorder = "1.5.0"
2 changes: 1 addition & 1 deletion examples/configs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
async-trait = "0.1.80"
async-trait = "0.1.81"
2 changes: 1 addition & 1 deletion examples/custom_handler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
async-trait = "0.1.80"
async-trait = "0.1.81"
2 changes: 1 addition & 1 deletion examples/custom_tokio_listener/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
async-trait = "0.1.80"
async-trait = "0.1.81"
tokio = { version = "1.38.0", features = ["full"] }
2 changes: 1 addition & 1 deletion examples/custom_tokio_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
async-trait = "0.1.80"
async-trait = "0.1.81"
tokio = { version = "1.38.0", features = ["full"] }
2 changes: 1 addition & 1 deletion examples/exception_handler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
serde = { version = "1.0.203", features = ["derive"] }
serde = { version = "1.0.204", features = ["derive"] }
2 changes: 1 addition & 1 deletion examples/form/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
serde = { version = "1.0.203", features = ["derive"] }
serde = { version = "1.0.204", features = ["derive"] }
8 changes: 4 additions & 4 deletions examples/grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ name = "example-grpc-client"
path = "src/client.rs"

[dependencies]
tonic = { git = "https://github.com/hyperium/tonic" }
prost = "0.12"
tonic = { version = "0.12.0" }
prost = "0.13"
tokio = { version = "1.38", features = ["macros", "rt-multi-thread"] }
silent = { path = "../../silent", features = ["grpc"] }
async-trait = "0.1.80"
async-trait = "0.1.81"

[build-dependencies]
tonic-build = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
tonic-build = { version = "0.12.0" }
8 changes: 4 additions & 4 deletions examples/grpc_h2c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ name = "example-grpc-client"
path = "src/client.rs"

[dependencies]
tonic = { git = "https://github.com/hyperium/tonic" }
prost = "0.12"
tonic = { version = "0.12.0" }
prost = "0.13"
tokio = { version = "1.38", features = ["macros", "rt-multi-thread"] }
silent = { path = "../../silent", features = ["grpc"] }
async-trait = "0.1.80"
async-trait = "0.1.81"

[build-dependencies]
tonic-build = { git = "https://github.com/hyperium/tonic" }
tonic-build = { version = "0.12.0" }
8 changes: 4 additions & 4 deletions examples/grpc_streaming/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ name = "example-grpc-client"
path = "src/client.rs"

[dependencies]
tonic = { git = "https://github.com/hyperium/tonic" }
prost = "0.12"
tonic = { version = "0.12.0" }
prost = "0.13"
tokio = { version = "1.38", features = ["macros", "rt-multi-thread"] }
silent = { path = "../../silent", features = ["grpc"] }
async-trait = "0.1.80"
async-trait = "0.1.81"
tokio-stream = "0.1.15"
h2 = "0.4.5"

[build-dependencies]
tonic-build = { git = "https://github.com/hyperium/tonic" }
tonic-build = { version = "0.12.0" }
2 changes: 1 addition & 1 deletion examples/middleware/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = "0.1.80"
async-trait = "0.1.81"
silent = { path = "../../silent" }
2 changes: 1 addition & 1 deletion examples/multipart-form/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent", features = ["multipart"] }
serde = { version = "1.0.203", features = ["derive"] }
serde = { version = "1.0.204", features = ["derive"] }
2 changes: 1 addition & 1 deletion examples/sse-chat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ once_cell = "1"
parking_lot = "0.12"
tokio = { version = "1", features = ["macros"] }
tokio-stream = { version = "0.1", features = ["net"] }
serde = { version = "1.0.203", features = ["derive"] }
serde = { version = "1.0.204", features = ["derive"] }
2 changes: 1 addition & 1 deletion examples/templates/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1.0.203", features = ["derive"] }
serde = { version = "1.0.204", features = ["derive"] }
silent = { path = "../../silent", features = ["template"] }
6 changes: 3 additions & 3 deletions examples/todo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ edition = "2021"

[dependencies]
silent = { path = "../../silent" }
serde = { version = "1.0.203", features = ["derive"] }
uuid = { version = "1.8.0", features = ["serde", "v4"] }
async-trait = "0.1.80"
serde = { version = "1.0.204", features = ["derive"] }
uuid = { version = "1.9.1", features = ["serde", "v4"] }
async-trait = "0.1.81"
4 changes: 2 additions & 2 deletions examples/websocket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
async-trait = "0.1.80"
async-trait = "0.1.81"
silent = { path = "../../silent", features = ["upgrade"] }
tokio = { version = "1.38.0", features = ["full"] }
tokio-tungstenite = "0.23.0"
tokio-tungstenite = "0.23.1"
futures-util = "0.3.30"
backtrace = "0.3.73"
headers = "0.4.0"
20 changes: 10 additions & 10 deletions silent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ grpc = ["upgrade", "dep:tonic", "dep:pin-project-lite", "dep:pin-project", "dep:
[dependencies]
# Basic dependencies
thiserror = "1.0.61"
hyper = { version = "1.3.1", features = ["full"] }
hyper-util = { version = "0.1.5", features = ["server-auto", "tokio"] }
hyper = { version = "1.4.0", features = ["full"] }
hyper-util = { version = "0.1.6", features = ["server-auto", "tokio"] }
tokio = { version = "1.38.0", optional = true }
bytes = "1.6.0"
http-body-util = "0.1.2"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["local-time"] }
async-trait = "0.1.80"
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
uuid = "1.8.0"
url = "2.5.1"
async-trait = "0.1.81"
serde = { version = "1.0.204", features = ["derive"] }
serde_json = "1.0.120"
uuid = "1.9.1"
url = "2.5.2"
serde_urlencoded = "0.7.1"
mime = "0.3.17"
futures-util = "0.3.30"
chrono = { version = "0.4.38", default-features = false, features = ["clock"] }
tokio-tungstenite = { version = "0.23.0", optional = true }
tokio-tungstenite = { version = "0.23.1", optional = true }
headers = "0.4.0"
tokio-stream = { version = "0.1.15", features = ["net"], optional = true }
pin-project = { version = "1.1", optional = true }
Expand Down Expand Up @@ -80,12 +80,12 @@ async-session = { version = "3.0.0", optional = true }
cookie = { version = "0.18.1", features = ["secure", "percent-encode"], optional = true }

# Grpc
tonic = { git = "https://github.com/hyperium/tonic", optional = true }
tonic = { version = "0.12.0", optional = true }

# Security
argon2 = { version = "0.5.3", optional = true }
pbkdf2 = { version = "0.12", features = ["simple"], optional = true }
aes-gcm = { version = "0.10.3", optional = true }
aes = { version = "0.8", optional = true }
rsa = { version = "0.9.6", optional = true }
mime_guess = "2.0.4"
mime_guess = "2.0.5"

0 comments on commit 9029147

Please sign in to comment.