chore: 🧹 update dependencies in Cargo.toml
This commit is contained in:
parent
9d0a066a80
commit
c8d254e6c4
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -19,7 +19,7 @@
|
||||
"target": true,
|
||||
|
||||
// 📝 readmes
|
||||
"**/**/README.md": true,
|
||||
// "**/**/README.md": true,
|
||||
|
||||
// 🗑️
|
||||
"check_size.py": true,
|
||||
|
||||
922
Cargo.lock
generated
922
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
34
Cargo.toml
34
Cargo.toml
@ -15,36 +15,36 @@ path = "lib/lib.rs"
|
||||
# utils
|
||||
eyre = { version = "0.6.12", default-features = false }
|
||||
dotenvy = "0.15.7"
|
||||
chrono = "0.4.38"
|
||||
getset = "0.1.2"
|
||||
chrono = "0.4.40"
|
||||
getset = "0.1.5"
|
||||
|
||||
# async
|
||||
tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] }
|
||||
async-trait = "0.1.80"
|
||||
tokio = { version = "1.44.1", features = ["macros", "rt-multi-thread"] }
|
||||
async-trait = "0.1.88"
|
||||
|
||||
# grpc & websocket
|
||||
tokio-tungstenite = { version = "0.22.0" }
|
||||
tonic = "0.11.0"
|
||||
prost = "0.12.6" # protocol buffers
|
||||
futures = "0.3.30"
|
||||
tokio-util = "0.7.11"
|
||||
tokio-tungstenite = { version = "0.26.2" }
|
||||
tonic = "0.13.0"
|
||||
prost = "0.13.5" # protocol buffers
|
||||
futures = "0.3.31"
|
||||
tokio-util = "0.7.14"
|
||||
|
||||
# database
|
||||
sea-orm = { version = "0.12.15", features = [
|
||||
sea-orm = { version = "1.1.7", features = [
|
||||
"runtime-tokio-native-tls",
|
||||
"sqlx-sqlite",
|
||||
"macros",
|
||||
] }
|
||||
sea-orm-migration = { version = "0.12.15", features = [
|
||||
sea-orm-migration = { version = "1.1.7", features = [
|
||||
"runtime-tokio-native-tls",
|
||||
"sqlx-sqlite",
|
||||
] }
|
||||
redis = { version = "0.25.4", features = ["tokio-comp"] }
|
||||
redis = { version = "0.29.2", features = ["tokio-comp"] }
|
||||
|
||||
# other
|
||||
serde = { version = "1.0.203", features = ["derive"] }
|
||||
serde_json = "1.0.117"
|
||||
uuid = { version = "1.8.0", features = ["v4", "fast-rng"] }
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_json = "1.0.140"
|
||||
uuid = { version = "1.16.0", features = ["v4", "fast-rng"] }
|
||||
lool = { version = "^0.3.2", registry = "lugit", features = [
|
||||
"cli.stylize",
|
||||
"logger",
|
||||
@ -52,7 +52,7 @@ lool = { version = "^0.3.2", registry = "lugit", features = [
|
||||
"sched.rule-recurrence",
|
||||
"macros",
|
||||
] }
|
||||
async-stream = "0.3.5"
|
||||
async-stream = "0.3.6"
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = "0.11.0"
|
||||
tonic-build = "0.13.0"
|
||||
|
||||
@ -14,7 +14,7 @@ fn main() {
|
||||
fn compile_proto(proto_file: &str) {
|
||||
tonic_build::configure()
|
||||
.build_server(true)
|
||||
.compile(&[proto_file], &["."])
|
||||
.compile_protos(&[proto_file], &["."])
|
||||
.unwrap_or_else(|e| panic!("protobuf compile error: {}", e));
|
||||
|
||||
println!("cargo:rerun-if-changed={}", proto_file);
|
||||
|
||||
@ -50,10 +50,10 @@ impl<RM: BusMessage> PublisherTrait<RM> for RedisPublisher<RM> {
|
||||
async fn publish(&mut self, value: RM) -> Result<()> {
|
||||
let obj_key = key(self.get_prefix(), value.to_bus_key());
|
||||
// set hash key
|
||||
self.conn.hset_multiple(&obj_key, value.to_bus_val().as_slice()).await?;
|
||||
() = self.conn.hset_multiple(&obj_key, value.to_bus_val().as_slice()).await?;
|
||||
|
||||
// publish to the appropriate channel
|
||||
self.conn.publish(&obj_key, value.as_message()).await?;
|
||||
() = self.conn.publish(&obj_key, value.as_message()).await?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user