foreign-types

A framework for Rust wrappers over C APIs

APACHE-2.0 License

Downloads
246.3M
Stars
50
Committers
8
foreign-types - foreign-types-macros v0.2.3 Latest Release

Published by sfackler over 1 year ago

  • Upgraded syn to 2.0.
foreign-types - foreign-types-macros v0.2.2

Published by sfackler over 2 years ago

  • Support closures for drop and clone functions.
foreign-types - foreign-types-shared v0.3.1

Published by sfackler over 2 years ago

  • Improve documentation
foreign-types - v0.5.0

Published by sfackler about 5 years ago

  • The ForeignType and ForeignTypeRef traits are now unsafe.
  • The syntax of the foreign_type! macro has changed slightly to require an unsafe keyword before the type name.
foreign-types - v0.4.0

Published by sfackler over 5 years ago

  • Opaque is now both !Send and !Sync.
  • from_ptr constructors have a debug assert that the pointer is non-null.
  • Generated ForeignType structs now use NonNull<T> rather than *mut T.
  • Generated ForeignType structs are now #[repr(transparent)].
  • The foreign_type! macro now uses a different syntax. It supports definition of multiple types per macro invocation, and automatically creates the reference type name. It also supports lifetime and type parameters on generated foreign types.
  • Generated code is now no-std compatible.
foreign-types - v0.3.2

Published by sfackler almost 7 years ago

  • Ensure licenses are present in releases.
foreign-types - v0.2.1

Published by sfackler almost 7 years ago

  • Split out types/traits to a separate crate so they can be versioned separately from the macro.
foreign-types - v0.3.1

Published by sfackler almost 7 years ago

  • Split out types/traits to a separate crate so they can be versioned separately from the macro.
foreign-types - v0.3.0

Published by sfackler about 7 years ago

  • Implement Borrow and AsRef.
  • Support Clone implementations.
  • Support attributes on impl blocks.
foreign-types - v0.2.0

Published by sfackler over 7 years ago

  • Add ForeignType::as_ptr.
foreign-types - v0.1.0

Published by sfackler over 7 years ago

Initial release