#reflection #api #ffi #padding #struct

macro ffi_struct_derive

This crate is a supporting library for the ffi_struct crate. It provides the proc macro FFIStruct which is used in conjunction with the ffi_struct_trait crate to provide an easy way to make a struct iterable in Rust and better than struct_iterable since you could have more detailed manipulation to the paddings.

5 unstable releases

Uses new Rust 2024

0.3.1 Oct 28, 2025
0.3.0 Oct 28, 2025
0.2.0 Oct 28, 2025
0.1.1 Oct 27, 2025
0.1.0 Oct 27, 2025

#32 in #padding

Download history 73/week @ 2025-10-21 157/week @ 2025-10-28

230 downloads per month
Used in 2 crates (via ffi_struct)

Custom license

16KB
360 lines

FFI Struct Derive

This crate is a supporting library for the ffi_struct crate. It provides the proc macro FFIStruct which is used in conjunction with the ffi_struct_trait crate to provide an easy way to make a struct iterable in Rust.

Please note: This crate is not intended to be used directly. If you want to make your structs iterable and adjust paddings or alignments, please use the ffi_struct crate instead.

Please visit the ffi_struct crate on crates.io for more information and usage examples.

Dependencies

~140–530KB
~13K SLoC