From ca63bc2f37bec29c2369113b33ebd3c0bf41d03c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 15 Dec 2022 15:30:33 +0100 Subject: Add yoke feature and explanation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- mqtt-format/Cargo.toml | 3 +++ mqtt-format/README.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/mqtt-format/Cargo.toml b/mqtt-format/Cargo.toml index ce417ce..e80ecbd 100644 --- a/mqtt-format/Cargo.toml +++ b/mqtt-format/Cargo.toml @@ -11,6 +11,9 @@ categories = ["embedded", "parsing"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[features] +yoke = ["dep:yoke"] + [dependencies] futures = "0.3.25" nom = "7.1.1" diff --git a/mqtt-format/README.md b/mqtt-format/README.md index 42d35a4..b2735ce 100644 --- a/mqtt-format/README.md +++ b/mqtt-format/README.md @@ -4,3 +4,6 @@ A pure Rust MQTT packet parsing/serializing library `mqtt_format` allows users to get zero-copy and fast parsing and serializing of MQTT packets. Both v3 and v5 is supported. + +This crate supports the [`yoke`](https://docs.rs/yoke/latest/yoke/) library, +which can be enabled with the `yoke` feature. -- cgit v1.2.3