Module abi_stable::library [−][src]
Expand description
Traits and types related to loading an abi_stable dynamic library, as well as functions/modules within.
Re-exports
pub use self::c_abi_testing::CAbiTestingFns;
pub use self::c_abi_testing::C_ABI_TESTING_FNS;
Modules
This module runs tests on the C abi as defined by Rust, to detect whether Rust changed how it deals with zero-sized types.
Utilities for use while developing dynamic libraries.
Structs
Represents the abi_stable version used by a compiled dynamic library,
which if incompatible would produce a LibraryError::InvalidAbiHeader
All the constants of the RootModule
trait for some erased type.
Used to check the layout of modules returned by module-loading functions exported by dynamic libraries.
A handle to any dynamically loaded library, not necessarily ones that export abi_stable compatible modules.
All the constants of the RootModule
trait for M
,
used mostly to construct a LibHeader
with LibHeader::from_constructor
.
Enums
Whether the ABI of a root module is checked.
All the possible errors that could happen when loading a library, or a module.
The path a library is loaded from.
What naming convention to expect when loading a library from a directory.
The errors that a #[export_root_module]
function can return.
Traits
For converting the return value of a #[export_root_module]
function
to a Result<(), RootModuleError>
.
The root module of a dynamic library, which may contain other modules,function pointers,and static references.
Functions
Gets the AbiHeaderRef of the library at the path.
Gets the AbiHeaderRef of a library.
Gets the LibHeader of the library at the path.
Gets the LibHeader of a library.
Gets the name of the static that contains the LibHeader of an abi_stable library.
Type Definitions
The return type of the function that the
#[export_root_module]
attribute outputs.