foreign-types
A framework for Rust wrappers over C APIs
0.5.0
403M downloads/mo
#286 most downloaded on crates.io
sfackler/foreign-types
What this package is like to depend on
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.3 years
Most releases are documented
notes for 6 of 8 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
8 releases · first in 2017
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Jan 2017 to Oct 2019
2018
2019
2020
2021
2022
2023
2024
2025
2026
Releases
latest 8-
0.5.013 Oct 2019Release notes
Open source →- The
ForeignTypeandForeignTypeReftraits are nowunsafe. - The syntax of the
foreign_type!macro has changed slightly to require anunsafekeyword before the type name.
- The
-
0.4.004 Mar 2019Release notes
Open source →Opaqueis now both!Sendand!Sync.from_ptrconstructors have a debug assert that the pointer is non-null.- Generated
ForeignTypestructs now useNonNull<T>rather than*mut T. - Generated
ForeignTypestructs 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.
-
0.3.228 Nov 2017 -
0.3.126 Nov 2017Release notes
Open source →- Split out types/traits to a separate crate so they can be versioned separately from the macro.
-
0.3.005 Sep 2017Release notes
Open source →- Implement
BorrowandAsRef. - Support
Cloneimplementations. - Support attributes on impl blocks.
- Implement
-
0.2.127 Nov 2017Release notes
Open source →- Split out types/traits to a separate crate so they can be versioned separately from the macro.
-
0.2.011 Feb 2017Nothing published for this version
-
0.1.031 Jan 2017Nothing published for this version