16 releases (10 breaking)

0.11.0 Aug 27, 2024
0.10.1 Jul 4, 2024
0.9.0 Jun 7, 2024
0.8.2 Mar 27, 2024
0.1.0 Nov 21, 2022

#8 in #rtps

Download history 230/week @ 2024-08-21 97/week @ 2024-08-28 2/week @ 2024-09-04 15/week @ 2024-09-11 31/week @ 2024-09-18 30/week @ 2024-09-25 24/week @ 2024-10-02 20/week @ 2024-10-09 4/week @ 2024-10-16 5/week @ 2024-10-23 33/week @ 2024-10-30 17/week @ 2024-11-06 5/week @ 2024-11-13 26/week @ 2024-11-20 16/week @ 2024-11-27 13/week @ 2024-12-04

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

Apache-2.0

75KB
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.5–1MB
~21K SLoC