Skip to content

Commit 4a433d2

Browse files
committed
publish v1.3.0:grpc support
1 parent 9d0d827 commit 4a433d2

File tree

18 files changed

+33
-32
lines changed

18 files changed

+33
-32
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ homepage = "https://github.com/hubertshelley/silent"
1010
license = "Apache-2.0"
1111
readme = "./readme.md"
1212
repository = "https://github.com/hubertshelley/silent"
13-
version = "1.2.3"
13+
version = "1.3.0"

examples/candle_whisper/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ clap = { version = "4.5.4", features = ["derive"] }
2525
serde = { version = "1.0", features = ["derive"] }
2626
silent = { path = "../../silent", features = ["full"] }
2727
symphonia = { version = "0.5.4", features = ["all"] }
28-
anyhow = "1.0.82"
28+
anyhow = "1.0.83"
2929
tokio = { version = "1.37.0", features = ["full"] }
3030

3131
#candle-core = { version = "0.3.2" }
@@ -38,5 +38,5 @@ candle-transformers = { git = "https://github.com/huggingface/candle" }
3838

3939
tokenizers = { version = "0.19.1", features = ["onig"] }
4040
rand = "0.8.5"
41-
serde_json = "1.0.116"
41+
serde_json = "1.0.117"
4242
byteorder = "1.5.0"

examples/exception_handler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ edition = "2021"
77

88
[dependencies]
99
silent = { path = "../../silent", features = ["full"] }
10-
serde = { version = "1.0.200", features = ["derive"] }
10+
serde = { version = "1.0.202", features = ["derive"] }

examples/form/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ edition = "2021"
77

88
[dependencies]
99
silent = { path = "../../silent" }
10-
serde = { version = "1.0.200", features = ["derive"] }
10+
serde = { version = "1.0.202", features = ["derive"] }

examples/grpc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ path = "src/client.rs"
1616
tonic = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
1717
tonic-reflection = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
1818
prost = "0.12"
19-
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
19+
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
2020
silent = { path = "../../silent", features = ["grpc"] }
2121
axum = "0.7"
2222
async-trait = "0.1.80"
2323
hyper = "1.3.1"
2424
hyper-util = "0.1.3"
2525
bytes = "1.6.0"
26-
pin-project-lite = "0.2.13"
26+
pin-project-lite = "0.2.14"
2727
http-body = "1.0.0"
2828
http = "1.1.0"
2929
http-body-util = "0.1.1"

examples/grpc_h2c/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ path = "src/client.rs"
1616
tonic = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
1717
tonic-reflection = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
1818
prost = "0.12"
19-
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
19+
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
2020
silent = { path = "../../silent", features = ["grpc"] }
2121
axum = "0.7"
2222
async-trait = "0.1.80"
2323
hyper = "1.3.1"
2424
hyper-util = "0.1.3"
2525
bytes = "1.6.0"
26-
pin-project-lite = "0.2.13"
26+
pin-project-lite = "0.2.14"
2727
http-body = "1.0.0"
2828
http = "1.1.0"
2929
http-body-util = "0.1.1"

examples/grpc_streaming/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ path = "src/client.rs"
1616
tonic = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
1717
tonic-reflection = { git = "https://github.com/alexrudy/tonic", branch = "hyper-1.0" }
1818
prost = "0.12"
19-
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
19+
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }
2020
silent = { path = "../../silent", features = ["grpc"] }
2121
axum = "0.7"
2222
async-trait = "0.1.80"
2323
hyper = "1.3.1"
2424
hyper-util = "0.1.3"
2525
bytes = "1.6.0"
26-
pin-project-lite = "0.2.13"
26+
pin-project-lite = "0.2.14"
2727
http-body = "1.0.0"
2828
http = "1.1.0"
2929
http-body-util = "0.1.1"

examples/llma_chat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ async-trait = "0.1.80"
1010
llm = "0.1.1"
1111
once_cell = "1.19.0"
1212
rand = "0.8.5"
13-
serde = { version = "1.0.200", features = ["derive"] }
13+
serde = { version = "1.0.202", features = ["derive"] }
1414
silent = { path = "../../silent", features = ["ws"] }
1515
tokio = { version = "1.37.0", features = ["full"] }

examples/multipart-form/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ edition = "2021"
77

88
[dependencies]
99
silent = { path = "../../silent" }
10-
serde = { version = "1.0.200", features = ["derive"] }
10+
serde = { version = "1.0.202", features = ["derive"] }

examples/silent-db-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ version = "0.1.0"
1212

1313
[dependencies]
1414
silent-db = { path = "../../silent-db", features = ["mysql"] }
15-
serde = { version = "1.0.200", features = ["derive"] }
15+
serde = { version = "1.0.202", features = ["derive"] }

examples/silent_db/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ version = "0.1.0"
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313
[dependencies]
14-
serde = { version = "1.0.200", features = ["derive"] }
14+
serde = { version = "1.0.202", features = ["derive"] }
1515
silent-db = { path = "../../silent-db", features = ["mysql"] }
1616
tokio = { version = "1.37", features = ["full"] }
17-
anyhow = "1.0.82"
17+
anyhow = "1.0.83"
1818
async-trait = "0.1.80"
1919

examples/sse-chat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ once_cell = "1"
1111
parking_lot = "0.12"
1212
tokio = { version = "1", features = ["macros"] }
1313
tokio-stream = { version = "0.1", features = ["net"] }
14-
serde = { version = "1.0.200", features = ["derive"] }
14+
serde = { version = "1.0.202", features = ["derive"] }

examples/templates/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
serde = { version = "1.0.200", features = ["derive"] }
9+
serde = { version = "1.0.202", features = ["derive"] }
1010
silent = { path = "../../silent", features = ["template"] }

examples/todo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ edition = "2021"
77

88
[dependencies]
99
silent = { path = "../../silent" }
10-
serde = { version = "1.0.200", features = ["derive"] }
10+
serde = { version = "1.0.202", features = ["derive"] }
1111
uuid = { version = "1.8.0", features = ["serde", "v4"] }
1212
async-trait = "0.1.80"

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Silent 是一个简单的基于Hyper的Web框架,它的目标是提供一个
3333
- [x] 安全
3434
- [ ] 测试
3535
- [ ] 文档
36+
- [x] GRPC
3637

3738
## security
3839

@@ -58,7 +59,7 @@ re-export rsa
5859

5960
```rust
6061
use silent::Configs;
61-
let mut configs = Configs::default();
62+
let mut configs = Configs::default ();
6263
configs.insert(1i32);
6364
```
6465

silent-db-macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ proc-macro = true
1818

1919
[dependencies]
2020
quote = "1.0.36"
21-
syn = { version = "2.0.60", features = ["full"] }
21+
syn = { version = "2.0.63", features = ["full"] }
2222
log = "0.4.21"
23-
proc-macro2 = "1.0.81"
24-
darling = "0.20.8"
23+
proc-macro2 = "1.0.82"
24+
darling = "0.20.9"

silent-db/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ postgres = ["sqlx/postgres"]
2020
sqlite = ["sqlx/sqlite"]
2121

2222
[dependencies]
23-
anyhow = { version = "1.0.82" }
23+
anyhow = { version = "1.0.83" }
2424
sqlparser = { version = "0.46.0", features = ["serde"] }
2525
sqlx = { version = "0.7.4", features = ["runtime-tokio", "macros", "any"] }
26-
serde_json = "1.0.116"
26+
serde_json = "1.0.117"
2727
chrono = { version = "0.4.38", features = ["serde"] }
2828
console = "0.15.8"
2929
quote = "1.0.36"
30-
syn = "2.0.60"
30+
syn = "2.0.63"
3131
silent-db-macros = { path = "../silent-db-macros", version = "0.2.0" }
3232
regex = "1.10.4"
3333

3434
[dev-dependencies]
35-
serde = { version = "1.0.200", features = ["derive"] }
35+
serde = { version = "1.0.202", features = ["derive"] }

silent/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ scheduler = []
3333
grpc = ["axum", "tower-service"]
3434

3535
[dependencies]
36-
thiserror = "1.0.59"
36+
thiserror = "1.0.60"
3737
hyper = { version = "1.3.1", features = ["full"] }
3838
hyper-util = { version = "0.1.3", features = ["full"] }
3939
tokio = { version = "1.37.0", optional = true }
@@ -42,8 +42,8 @@ http-body-util = "0.1.1"
4242
tracing = "0.1.40"
4343
tracing-subscriber = { version = "0.3.18", features = ["local-time"] }
4444
async-trait = "0.1.80"
45-
serde = { version = "1.0.200", features = ["derive"] }
46-
serde_json = "1.0.116"
45+
serde = { version = "1.0.202", features = ["derive"] }
46+
serde_json = "1.0.117"
4747
uuid = "1.8.0"
4848
url = "2.5.0"
4949
serde_urlencoded = "0.7.1"
@@ -72,7 +72,7 @@ http = "1.1.0"
7272
http-body = "1.0.0"
7373
futures = "0.3.30"
7474
tokio-util = "0.7.11"
75-
anyhow = "1.0.82"
75+
anyhow = "1.0.83"
7676
cron = "0.12.1"
7777
axum = { version = "0.7.5", optional = true }
78-
tower-service = { version = "0.3.2", optional = true }
78+
tower-service = { version = "0.3.2", optional = true }

0 commit comments

Comments
 (0)