12 releases (7 breaking)
0.8.2 | Mar 27, 2024 |
---|---|
0.7.0 | Feb 20, 2024 |
0.6.0 | Dec 7, 2023 |
0.5.0 | Nov 8, 2023 |
0.1.0 | Nov 21, 2022 |
#9 in #rtps
671 downloads per month
Used in 2 crates
(via dust_dds)
71KB
1.5K
SLoC
Derive macro for DdsType
This package provides a derive macro for DdsType
to support dust-dds.
DdsType
can only be derived for struct
s, tuples and enum
s. For struct
s and tuples, the attribute #[dust_dds(key)]
can be specified either on the whole type or on a subset of fields.
Example
A typical user DDS type will look like this:
use dust_dds::topic_definition::type_support::{DdsType}
#[derive(DdsType)]
struct HelloWorldType {
#[dust_dds(key)]
id: u8,
msg: String,
}
Dependencies
~0.6–1MB
~23K SLoC