Releases: sfackler/foreign-types
Releases · sfackler/foreign-types
foreign-types-macros v0.2.3
- Upgraded
syn
to 2.0.
foreign-types-shared v0.3.1
- Improve documentation
foreign-types-macros v0.2.2
- Support closures for
drop
andclone
functions.
v0.5.0
v0.4.0
Opaque
is now both!Send
and!Sync
.from_ptr
constructors have a debug assert that the pointer is non-null.- Generated
ForeignType
structs now useNonNull<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.