File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11# Caraytid process - loads and runs modules
22[package ]
33name = " caryatid_process"
4- version = " 0.12.1 "
4+ version = " 0.12.2 "
55edition = " 2021"
66authors = [
" Paul Clark <[email protected] >" ]
77description = " Library for building a Caryatid process"
@@ -13,13 +13,13 @@ futures = "0.3"
1313anyhow = " 1.0"
1414tokio = { version = " 1" , features = [" full" ] }
1515config = " 0.15.11"
16+ minicbor-serde = { version = " 0.6" , features = [" alloc" ] }
1617tracing = " 0.1.40"
1718serde = " 1.0.210"
1819serde_json = " 1.0"
19- serde_cbor = " 0.11.2"
2020tracing-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 "
2323async-trait = " 0.1.88"
2424
2525[lib ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments