Crates.io | dust_dds_derive |
lib.rs | dust_dds_derive |
version | 0.13.0 |
created_at | 2022-11-21 14:43:19.806151+00 |
updated_at | 2025-09-15 19:10:37.340251+00 |
description | Derive macro for `DdsType` and other traits from `dust-dds` |
homepage | https://s2e-systems.com/products/dust-dds |
repository | https://github.com/s2e-systems/dust-dds |
max_upload_size | |
id | 720161 |
size | 69,704 |
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.
A typical user DDS type will look like this:
use dust_dds::infrastructure::type_support::{DdsType}
#[derive(DdsType)]
struct HelloWorldType {
#[dust_dds(key)]
id: u8,
msg: String,
}