5 releases

new 0.1.4 Feb 20, 2024
0.1.3 Apr 3, 2023
0.1.2 Nov 24, 2021
0.1.1 Aug 16, 2021
0.1.0 Aug 26, 2020

#4 in #build-native

Download history 1036/week @ 2023-11-04 1493/week @ 2023-11-11 1820/week @ 2023-11-18 1516/week @ 2023-11-25 1776/week @ 2023-12-02 1486/week @ 2023-12-09 1853/week @ 2023-12-16 1229/week @ 2023-12-23 1365/week @ 2023-12-30 2487/week @ 2024-01-06 2461/week @ 2024-01-13 2026/week @ 2024-01-20 2231/week @ 2024-01-27 1674/week @ 2024-02-03 2315/week @ 2024-02-10 3676/week @ 2024-02-17

10,182 downloads per month
Used in 37 crates (11 directly)

MIT/Apache

11KB
185 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.4–0.8MB
~19K SLoC