3 releases

0.1.2 Nov 24, 2021
0.1.1 Aug 16, 2021
0.1.0 Aug 26, 2020

#16 in #embedded-devices

Download history 124/week @ 2021-10-01 308/week @ 2021-10-08 299/week @ 2021-10-15 212/week @ 2021-10-22 65/week @ 2021-10-29 113/week @ 2021-11-05 106/week @ 2021-11-12 129/week @ 2021-11-19 119/week @ 2021-11-26 213/week @ 2021-12-03 131/week @ 2021-12-10 112/week @ 2021-12-17 206/week @ 2021-12-24 282/week @ 2021-12-31 166/week @ 2022-01-07 138/week @ 2022-01-14

823 downloads per month
Used in 12 crates (5 directly)

MIT/Apache and GPL-3.0-only

10KB
186 lines

const-field-offset crate

Crates.io Docs.rs

This crate expose the FieldOffsets derive macro and the types it uses

Check the crate documentation for more details.


lib.rs:

This crate expose the [FieldOffsets] derive macro and the types it uses.

The macro allows to get const FieldOffset for member of a #[repr(C)] struct.

The [FieldOffset] type is re-exported from the field-offset crate.

Dependencies

~0.3–0.8MB
~20K SLoC

^ a