2 unstable releases
0.2.0 | Nov 6, 2022 |
---|---|
0.1.8 | Apr 16, 2022 |
0.1.3 |
|
0.1.2 |
|
#345 in FFI
Used in 3 crates
215KB
5.5K
SLoC
A crate that provides abi-safe and stable wrappers of language and library constructs that don't have fixed abi This provides shims for otherwise unusable constructs that can validly be passed accross ABI bounderies. All publically exposed types in this api have a stable layout and abi, that may only change on semver major versions Thus, it is valid to use these types accross versions
Interface
This crate relies on a number of special symbols, provided by an interface library, which is typically a cdylib (so that there is one copy at runtime).
This interface is typically provided by the xlang_interface
crate (which is linked by using the xlang
crate), otherwise, it must be provided and linked separately.
The symbols that this crate expects the interface library to provide are considered unstable, but all start with either the xlang_
or XLANG_
prefix.
The symbols are publically available in the module that makes primary of them.
The current list is: