Skip to content

Commit 55f78f1

Browse files
committed
chore: replace unmaintained dependencies
1 parent f6698b7 commit 55f78f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

process/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Caraytid process - loads and runs modules
22
[package]
33
name = "caryatid_process"
4-
version = "0.12.1"
4+
version = "0.12.2"
55
edition = "2021"
66
authors = ["Paul Clark <[email protected]>"]
77
description = "Library for building a Caryatid process"
@@ -13,13 +13,13 @@ futures = "0.3"
1313
anyhow = "1.0"
1414
tokio = { version = "1", features = ["full"] }
1515
config = "0.15.11"
16+
minicbor-serde = { version = "0.6", features = ["alloc"] }
1617
tracing = "0.1.40"
1718
serde = "1.0.210"
1819
serde_json = "1.0"
19-
serde_cbor = "0.11.2"
2020
tracing-subscriber = "0.3.18"
21-
lapin = "2.5.3"
22-
tokio-executor-trait = "2.1.3"
21+
lapin = "3.7.1"
22+
tokio-executor-trait = "3.1.0"
2323
async-trait = "0.1.88"
2424

2525
[lib]

process/src/rabbit_mq_bus.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl<M: MessageBounds> Subscription<M> for RabbitMQSubscription<M> {
4343
.with_context(|| "Failed to acknowledge message")?;
4444

4545
// Decode it
46-
match serde_cbor::de::from_slice::<M>(&delivery.data) {
46+
match minicbor_serde::from_slice(&delivery.data) {
4747
Ok(message) => {
4848
// Call the subscriber function with the message
4949
return Ok((delivery.routing_key.to_string(), Arc::new(message)));
@@ -130,7 +130,7 @@ impl<M: MessageBounds + serde::Serialize + serde::de::DeserializeOwned> MessageB
130130
let channel = self.channel.lock().await;
131131

132132
// Serialise the message
133-
let payload = serde_cbor::ser::to_vec(&*message)?;
133+
let payload = minicbor_serde::to_vec(&*message)?;
134134

135135
// Publish the message to the queue
136136
channel

0 commit comments

Comments
 (0)