From 238bd1f811e8e1285b12fb11554a5ab7890452d4 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 9 Jul 2025 21:08:09 +0100 Subject: Use moro local to reduce allocations This means that we can also use Rc instead of Arc (which should have been used instead of re-allocating in the first place). --- Cargo.lock | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 27c692b..55f5214 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,6 +23,17 @@ version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" +[[package]] +name = "async-trait" +version = "0.1.88" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "autocfg" version = "1.4.0" @@ -104,6 +115,15 @@ dependencies = [ "spin", ] +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", +] + [[package]] name = "futures-core" version = "0.3.31" @@ -216,11 +236,24 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "moro-local" +version = "0.4.0" +source = "git+https://github.com/EliteTK/moro-local.git?branch=dependency-reduction#2a01279a8a6e3fdd30c2b980551c623c8670e550" +dependencies = [ + "async-trait", + "futures-channel", + "futures-core", + "futures-util", + "pin-project-lite", +] + [[package]] name = "mqttr" version = "0.2.0" dependencies = [ "anyhow", + "moro-local", "rumqttc", "serde", "tokio", -- cgit v1.2.3-70-g09d2