Skip to content

Releases: sfackler/foreign-types

foreign-types-macros v0.2.3

Choose a tag to compare

@sfackler sfackler released this 26 Mar 17:43
foreign-types-macros-v0.2.3
393f6ab
  • Upgraded syn to 2.0.

foreign-types-shared v0.3.1

Choose a tag to compare

@sfackler sfackler released this 21 Mar 22:07
foreign-types-shared-v0.3.1
bdce800
  • Improve documentation

foreign-types-macros v0.2.2

Choose a tag to compare

@sfackler sfackler released this 21 Mar 22:10
foreign-types-macros-v0.2.2
e6c479b
  • Support closures for drop and clone functions.

v0.5.0

Choose a tag to compare

@sfackler sfackler released this 13 Oct 19:25
  • 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

Choose a tag to compare

@sfackler sfackler released this 04 Mar 17:53
  • 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

Choose a tag to compare

@sfackler sfackler released this 28 Nov 23:17
  • Ensure licenses are present in releases.

v0.2.1

Choose a tag to compare

@sfackler sfackler released this 27 Nov 00:02
  • Split out types/traits to a separate crate so they can be versioned separately from the macro.

v0.3.1

Choose a tag to compare

@sfackler sfackler released this 26 Nov 23:58
  • Split out types/traits to a separate crate so they can be versioned separately from the macro.

v0.3.0

Choose a tag to compare

@sfackler sfackler released this 05 Sep 00:45
  • Implement Borrow and AsRef.
  • Support Clone implementations.
  • Support attributes on impl blocks.

v0.2.0

Choose a tag to compare

@sfackler sfackler released this 11 Feb 18:19
  • Add ForeignType::as_ptr.