Skip to content

Commit 7e6bb51

Browse files
committed
publish: v1.4.0
1 parent cf17df6 commit 7e6bb51

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
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.3.4"
13+
version = "1.4.0"

examples/grpc_h2c/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ prost = "0.13"
1818
tokio = { version = "1.38", features = ["macros", "rt-multi-thread"] }
1919
silent = { path = "../../silent", features = ["grpc"] }
2020
async-trait = "0.1.81"
21+
http = "1.1.0"
22+
hyper-util = "0.1.6"
23+
hyper = "1.4.0"
24+
tower = "0.4.13"
2125

2226
[build-dependencies]
2327
tonic-build = { version = "0.12.0" }

silent/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ tokio = { version = "1.38.0", optional = true }
4141
bytes = "1.6.0"
4242
http-body-util = "0.1.2"
4343
tracing = "0.1.40"
44-
tracing-subscriber = { version = "0.3.18", features = ["local-time"] }
44+
tracing-subscriber = { version = "0.3.18", features = ["chrono"] }
4545
async-trait = "0.1.81"
4646
serde = { version = "1.0.204", features = ["derive"] }
4747
serde_json = "1.0.120"

silent/src/route/root.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,19 @@ use crate::{
1717
#[cfg(feature = "session")]
1818
use async_session::{Session, SessionStore};
1919
use chrono::Utc;
20+
#[cfg(feature = "grpc")]
2021
use http::Method;
2122
use std::fmt;
2223
use std::future::Future;
2324
use std::net::SocketAddr;
2425
use std::sync::Arc;
2526
#[cfg(feature = "scheduler")]
2627
use tokio::sync::Mutex;
28+
#[cfg(feature = "grpc")]
2729
use tonic::body::BoxBody;
30+
#[cfg(feature = "grpc")]
2831
use tonic::codegen::Service;
32+
#[cfg(feature = "grpc")]
2933
use tonic::server::NamedService;
3034

3135
#[derive(Clone, Default)]

0 commit comments

Comments
 (0)