ffi_reflect 1.0.2

Provides a derive macro that genreates a reflection method for C-comaptible types
Documentation
  • Coverage
  • 17.65%
    9 out of 51 items documented0 out of 9 items with examples
  • Size
  • Source code size: 3.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 523.16 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dngulin/ffi_reflect
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dngulin

ffi_reflect

The ffi_reflect is a compile time reflection library, that provides the FfiReflect derive macro. The macro itself generates a fucntion pub const fn ffi_reflect() -> FfiType<'static> that can be useful for bindings generation.

You can derive the FfiReflect only on structs that are marked with #[repr(C)] or #[repr(transparent)], on enums that are marked with #[repr($INTEGER_TYPE)] and unions that are marked with #[repr(C)].

You can use the ffi_reflect_csharp to generate C#-types with the exact same memory layout.