A framework for Rust wrappers over C APIs
APACHE-2.0 License
syn
to 2.0.Published by sfackler over 2 years ago
drop
and clone
functions.Published by sfackler over 2 years ago
Published by sfackler about 5 years ago
ForeignType
and ForeignTypeRef
traits are now unsafe
.foreign_type!
macro has changed slightly to require an unsafe
keyword before the type name.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.ForeignType
structs now use NonNull<T>
rather than *mut T
.ForeignType
structs are now #[repr(transparent)]
.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.Published by sfackler almost 7 years ago
Published by sfackler almost 7 years ago
Published by sfackler almost 7 years ago
Published by sfackler about 7 years ago
Borrow
and AsRef
.Clone
implementations.Published by sfackler over 7 years ago
ForeignType::as_ptr
.Published by sfackler over 7 years ago
Initial release