ffi_reflect

Crates.ioffi_reflect
lib.rsffi_reflect
version1.0.2
sourcesrc
created_at2023-05-06 15:35:46.130776
updated_at2023-05-16 20:23:49.353071
descriptionProvides a derive macro that genreates a reflection method for C-comaptible types
homepage
repositoryhttps://github.com/dngulin/ffi_reflect
max_upload_size
id858545
size3,901
Danil Gulin (dngulin)

documentation

README

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.

Commit count: 15

cargo fmt