[][src]Module abi_stable::docs

Documentation for macros,and guides.

Modules

prefix_types

Prefix-types are types that derive StableAbi along with the #[sabi(kind(Prefix(prefix_struct="PrefixEquivalent")))] attribute. This is mostly intended for vtables and modules.

sabi_extern_fn

The sabi_extern_fn attribute macro is syntactic sugar to transform this:

sabi_nonexhaustive

Using the #[sabi(kind(WithNonExhaustive(...)))] subattribute for #[derive(StableAbi)] allows you to store the enum in NonExhaustive<>, using it as a non-exhaustive enum across ffi.

sabi_trait_attribute

This attribute generates an ffi-safe trait object on the trait it's applied to.

stable_abi_derive

The StableAbi derive macro allows one to implement the StableAbi trait to :

unsafe_code_guidelines

This document describes all the things that are unsafe to do with abi_stable.