Skip to content

0.5.0

Choose a tag to compare

@mversic mversic released this 30 Sep 08:43
· 84 commits to main since this release
6ce5bdc

Added

  • Add raw! to generate visible C-ABI {name}_raw companions for existing functions

Fixed

  • Lower one-part #[unpack(A)] imports using <A as ReprC>::CType as the foreign parameter type.
  • Emit CFnArg and CFnReturn assertions for each statically selected ordinary import declaration.
  • Require move when passing CBox or CBoxedSlice through imported function arguments.
  • Check exported associated types and consts definitions against the existing Rust impl.

Changed

  • Rename the ABI traits from ExternC to ReprC and ReprC to CType.
  • Reject explicit <dyn T>::TAG arguments in ffi! export declarations.
  • Disallow defining statics in export blocks; they can still be declared.
  • Rename the derive helper attribute from reprC to repr_c.