17 releases (11 breaking)

new 0.12.0 Jan 9, 2025
0.11.0 Aug 27, 2024
0.10.1 Jul 4, 2024
0.8.2 Mar 27, 2024
0.1.0 Nov 21, 2022

#9 in #rtps

Download history 43/week @ 2024-09-22 23/week @ 2024-09-29 25/week @ 2024-10-06 9/week @ 2024-10-13 1/week @ 2024-10-20 15/week @ 2024-10-27 39/week @ 2024-11-03 1/week @ 2024-11-10 17/week @ 2024-11-17 22/week @ 2024-11-24 18/week @ 2024-12-01 30/week @ 2024-12-08 13/week @ 2024-12-15 1/week @ 2024-12-22 115/week @ 2025-01-05

129 downloads per month
Used in 2 crates (via dust_dds)

Apache-2.0

69KB
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 structs, tuples and enums. For structs 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.4–0.9MB
~20K SLoC