Skip to content

Commit

Permalink
publish v1.3.0:grpc support
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertshelley committed May 16, 2024
1 parent 9d0d827 commit 4a433d2
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ homepage = "https://github.com/hubertshelley/silent"
license = "Apache-2.0"
readme = "./readme.md"
repository = "https://github.com/hubertshelley/silent"
version = "1.2.3"
version = "1.3.0"
4 changes: 2 additions & 2 deletions examples/candle_whisper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ clap = { version = "4.5.4", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
silent = { path = "../../silent", features = ["full"] }
symphonia = { version = "0.5.4", features = ["all"] }
anyhow = "1.0.82"
anyhow = "1.0.83"
tokio = { version = "1.37.0", features = ["full"] }

#candle-core = { version = "0.3.2" }
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.116"
serde_json = "1.0.117"
byteorder = "1.5.0"
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", features = ["full"] }
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", 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.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
4 changes: 2 additions & 2 deletions examples/grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ path = "src/client.rs"
tonic = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
tonic-reflection = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
prost = "0.12"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
silent = { path = "../../silent", features = ["grpc"] }
axum = "0.7"
async-trait = "0.1.80"
hyper = "1.3.1"
hyper-util = "0.1.3"
bytes = "1.6.0"
pin-project-lite = "0.2.13"
pin-project-lite = "0.2.14"
http-body = "1.0.0"
http = "1.1.0"
http-body-util = "0.1.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/grpc_h2c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ path = "src/client.rs"
tonic = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
tonic-reflection = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
prost = "0.12"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
silent = { path = "../../silent", features = ["grpc"] }
axum = "0.7"
async-trait = "0.1.80"
hyper = "1.3.1"
hyper-util = "0.1.3"
bytes = "1.6.0"
pin-project-lite = "0.2.13"
pin-project-lite = "0.2.14"
http-body = "1.0.0"
http = "1.1.0"
http-body-util = "0.1.1"
Expand Down
4 changes: 2 additions & 2 deletions examples/grpc_streaming/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ path = "src/client.rs"
tonic = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
tonic-reflection = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
prost = "0.12"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
silent = { path = "../../silent", features = ["grpc"] }
axum = "0.7"
async-trait = "0.1.80"
hyper = "1.3.1"
hyper-util = "0.1.3"
bytes = "1.6.0"
pin-project-lite = "0.2.13"
pin-project-lite = "0.2.14"
http-body = "1.0.0"
http = "1.1.0"
http-body-util = "0.1.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/llma_chat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ async-trait = "0.1.80"
llm = "0.1.1"
once_cell = "1.19.0"
rand = "0.8.5"
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
silent = { path = "../../silent", features = ["ws"] }
tokio = { version = "1.37.0", features = ["full"] }
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" }
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
2 changes: 1 addition & 1 deletion examples/silent-db-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ version = "0.1.0"

[dependencies]
silent-db = { path = "../../silent-db", features = ["mysql"] }
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
4 changes: 2 additions & 2 deletions examples/silent_db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ version = "0.1.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
silent-db = { path = "../../silent-db", features = ["mysql"] }
tokio = { version = "1.37", features = ["full"] }
anyhow = "1.0.82"
anyhow = "1.0.83"
async-trait = "0.1.80"

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.200", features = ["derive"] }
serde = { version = "1.0.202", 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.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
silent = { path = "../../silent", features = ["template"] }
2 changes: 1 addition & 1 deletion 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.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
uuid = { version = "1.8.0", features = ["serde", "v4"] }
async-trait = "0.1.80"
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Silent 是一个简单的基于Hyper的Web框架,它的目标是提供一个
- [x] 安全
- [ ] 测试
- [ ] 文档
- [x] GRPC

## security

Expand All @@ -58,7 +59,7 @@ re-export rsa

```rust
use silent::Configs;
let mut configs = Configs::default();
let mut configs = Configs::default ();
configs.insert(1i32);
```

Expand Down
6 changes: 3 additions & 3 deletions silent-db-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ proc-macro = true

[dependencies]
quote = "1.0.36"
syn = { version = "2.0.60", features = ["full"] }
syn = { version = "2.0.63", features = ["full"] }
log = "0.4.21"
proc-macro2 = "1.0.81"
darling = "0.20.8"
proc-macro2 = "1.0.82"
darling = "0.20.9"
8 changes: 4 additions & 4 deletions silent-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ postgres = ["sqlx/postgres"]
sqlite = ["sqlx/sqlite"]

[dependencies]
anyhow = { version = "1.0.82" }
anyhow = { version = "1.0.83" }
sqlparser = { version = "0.46.0", features = ["serde"] }
sqlx = { version = "0.7.4", features = ["runtime-tokio", "macros", "any"] }
serde_json = "1.0.116"
serde_json = "1.0.117"
chrono = { version = "0.4.38", features = ["serde"] }
console = "0.15.8"
quote = "1.0.36"
syn = "2.0.60"
syn = "2.0.63"
silent-db-macros = { path = "../silent-db-macros", version = "0.2.0" }
regex = "1.10.4"

[dev-dependencies]
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }
10 changes: 5 additions & 5 deletions silent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ scheduler = []
grpc = ["axum", "tower-service"]

[dependencies]
thiserror = "1.0.59"
thiserror = "1.0.60"
hyper = { version = "1.3.1", features = ["full"] }
hyper-util = { version = "0.1.3", features = ["full"] }
tokio = { version = "1.37.0", optional = true }
Expand All @@ -42,8 +42,8 @@ http-body-util = "0.1.1"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["local-time"] }
async-trait = "0.1.80"
serde = { version = "1.0.200", features = ["derive"] }
serde_json = "1.0.116"
serde = { version = "1.0.202", features = ["derive"] }
serde_json = "1.0.117"
uuid = "1.8.0"
url = "2.5.0"
serde_urlencoded = "0.7.1"
Expand Down Expand Up @@ -72,7 +72,7 @@ http = "1.1.0"
http-body = "1.0.0"
futures = "0.3.30"
tokio-util = "0.7.11"
anyhow = "1.0.82"
anyhow = "1.0.83"
cron = "0.12.1"
axum = { version = "0.7.5", optional = true }
tower-service = { version = "0.3.2", optional = true }
tower-service = { version = "0.3.2", optional = true }

0 comments on commit 4a433d2

Please sign in to comment.