rsiot-macros

Crates.iorsiot-macros
lib.rsrsiot-macros
version0.0.73
created_at2023-11-29 10:40:19.063831+00
updated_at2025-03-08 13:23:29.045673+00
descriptionМакросы
homepage
repositoryhttps://github.com/Konstantin-Dudersky/rsiot
max_upload_size
id1052903
size16,213
(Konstantin-Dudersky)

documentation

README

Проверка сгенерированного кода - cargo-expand

cargo expand message::example_message | save -f expand.rs

cargo expand -p rsiot-messages-core example_message

cargo expand -p rsiot-leptos --example create_signal_from_msg --target wasm32-unknown-unknown

cargo expand -p rsiot-messages-core --example message_new_macro

https://stackoverflow.com/questions/65182338/how-to-create-a-macro-that-matches-enum-variants-without-knowing-its-structure

Макрос для генерирования метода into_eav для типа сообщения. Сейчас не исользуется - слишком много различий между сообщениями

Commit count: 718

cargo fmt