diff --git a/Cargo.toml b/Cargo.toml index 3df953d..36d00c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/examples/candle_whisper/Cargo.toml b/examples/candle_whisper/Cargo.toml index cc7e42e..19fd6f8 100644 --- a/examples/candle_whisper/Cargo.toml +++ b/examples/candle_whisper/Cargo.toml @@ -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" } @@ -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" diff --git a/examples/exception_handler/Cargo.toml b/examples/exception_handler/Cargo.toml index 688c3c2..a9cc898 100644 --- a/examples/exception_handler/Cargo.toml +++ b/examples/exception_handler/Cargo.toml @@ -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"] } diff --git a/examples/form/Cargo.toml b/examples/form/Cargo.toml index 0498975..8d78a04 100644 --- a/examples/form/Cargo.toml +++ b/examples/form/Cargo.toml @@ -7,4 +7,4 @@ edition = "2021" [dependencies] silent = { path = "../../silent" } -serde = { version = "1.0.200", features = ["derive"] } +serde = { version = "1.0.202", features = ["derive"] } diff --git a/examples/grpc/Cargo.toml b/examples/grpc/Cargo.toml index 40b2942..c283f6d 100644 --- a/examples/grpc/Cargo.toml +++ b/examples/grpc/Cargo.toml @@ -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" diff --git a/examples/grpc_h2c/Cargo.toml b/examples/grpc_h2c/Cargo.toml index bd121de..ee0afb3 100644 --- a/examples/grpc_h2c/Cargo.toml +++ b/examples/grpc_h2c/Cargo.toml @@ -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" diff --git a/examples/grpc_streaming/Cargo.toml b/examples/grpc_streaming/Cargo.toml index 3056b7d..e074711 100644 --- a/examples/grpc_streaming/Cargo.toml +++ b/examples/grpc_streaming/Cargo.toml @@ -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" diff --git a/examples/llma_chat/Cargo.toml b/examples/llma_chat/Cargo.toml index 032d51b..e400a27 100644 --- a/examples/llma_chat/Cargo.toml +++ b/examples/llma_chat/Cargo.toml @@ -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"] } diff --git a/examples/multipart-form/Cargo.toml b/examples/multipart-form/Cargo.toml index bb2807d..3610cb9 100644 --- a/examples/multipart-form/Cargo.toml +++ b/examples/multipart-form/Cargo.toml @@ -7,4 +7,4 @@ edition = "2021" [dependencies] silent = { path = "../../silent" } -serde = { version = "1.0.200", features = ["derive"] } +serde = { version = "1.0.202", features = ["derive"] } diff --git a/examples/silent-db-macros/Cargo.toml b/examples/silent-db-macros/Cargo.toml index 4f317fb..9ff7706 100644 --- a/examples/silent-db-macros/Cargo.toml +++ b/examples/silent-db-macros/Cargo.toml @@ -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"] } diff --git a/examples/silent_db/Cargo.toml b/examples/silent_db/Cargo.toml index bfffcf5..eab9f0b 100644 --- a/examples/silent_db/Cargo.toml +++ b/examples/silent_db/Cargo.toml @@ -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" diff --git a/examples/sse-chat/Cargo.toml b/examples/sse-chat/Cargo.toml index 8e941a0..3ae28d9 100644 --- a/examples/sse-chat/Cargo.toml +++ b/examples/sse-chat/Cargo.toml @@ -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"] } diff --git a/examples/templates/Cargo.toml b/examples/templates/Cargo.toml index c6014fc..8889daa 100644 --- a/examples/templates/Cargo.toml +++ b/examples/templates/Cargo.toml @@ -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"] } diff --git a/examples/todo/Cargo.toml b/examples/todo/Cargo.toml index 4d15a6d..864ebed 100644 --- a/examples/todo/Cargo.toml +++ b/examples/todo/Cargo.toml @@ -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" diff --git a/readme.md b/readme.md index 4ba9a0b..d3e6627 100644 --- a/readme.md +++ b/readme.md @@ -33,6 +33,7 @@ Silent 是一个简单的基于Hyper的Web框架,它的目标是提供一个 - [x] 安全 - [ ] 测试 - [ ] 文档 +- [x] GRPC ## security @@ -58,7 +59,7 @@ re-export rsa ```rust use silent::Configs; -let mut configs = Configs::default(); +let mut configs = Configs::default (); configs.insert(1i32); ``` diff --git a/silent-db-macros/Cargo.toml b/silent-db-macros/Cargo.toml index fdda906..3283bc9 100644 --- a/silent-db-macros/Cargo.toml +++ b/silent-db-macros/Cargo.toml @@ -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" diff --git a/silent-db/Cargo.toml b/silent-db/Cargo.toml index a7c1763..537786b 100644 --- a/silent-db/Cargo.toml +++ b/silent-db/Cargo.toml @@ -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"] } diff --git a/silent/Cargo.toml b/silent/Cargo.toml index bad937a..eb02027 100644 --- a/silent/Cargo.toml +++ b/silent/Cargo.toml @@ -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 } @@ -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" @@ -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 } \ No newline at end of file +tower-service = { version = "0.3.2", optional = true }