Skip to content

Releases: sfackler/foreign-types

foreign-types-macros v0.2.3

26 Mar 17:43
foreign-types-macros-v0.2.3
393f6ab
Compare
Choose a tag to compare

foreign-types-shared v0.3.1

21 Mar 22:07
foreign-types-shared-v0.3.1
bdce800
Compare
Choose a tag to compare
  • Improve documentation

foreign-types-macros v0.2.2

21 Mar 22:10
foreign-types-macros-v0.2.2
e6c479b
Compare
Choose a tag to compare
  • Support closures for drop and clone functions.

v0.5.0

13 Oct 19:25
Compare
Choose a tag to compare
  • 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.

v0.4.0

04 Mar 17:53
Compare
Choose a tag to compare
  • 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.

v0.3.2

28 Nov 23:17
Compare
Choose a tag to compare
  • Ensure licenses are present in releases.

v0.2.1

27 Nov 00:02
Compare
Choose a tag to compare
  • Split out types/traits to a separate crate so they can be versioned separately from the macro.

v0.3.1

26 Nov 23:58
Compare
Choose a tag to compare
  • Split out types/traits to a separate crate so they can be versioned separately from the macro.

v0.3.0

05 Sep 00:45
Compare
Choose a tag to compare
  • Implement Borrow and AsRef.
  • Support Clone implementations.
  • Support attributes on impl blocks.

v0.2.0

11 Feb 18:19
Compare
Choose a tag to compare
  • Add ForeignType::as_ptr.