getditto / safer_ffi

Write safer FFI code in Rust without polluting it with unsafe code
http://getditto.github.io/safer_ffi
MIT License
925 stars 40 forks source link

Support type aliases #98

Open TheButlah opened 2 years ago

TheButlah commented 2 years ago

It would be cool if we could tag things like this:

#[derive_ReprC]
#[ReprC::opaque]
pub type ContractDataHandle = arena::Index<ContractData>;

Any ideas how that would work? Would I still need to tag arena::Index with #[ReprC]?