[][src]Module abi_stable::docs

Documentation for macros,and guides.

Modules

get_static_equivalent

The GetStaticEquivalent macro derives the GetStaticEquivalent_ trait.

library_evolution

This document describes what changes are valid/invalid for a library using abi_stable,

prefix_types

Prefix-types are types that derive StableAbi along with the #[sabi(kind(Prefix(....)))] helper 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(...)))] helper attribute 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 :

troubleshooting

Here are some problems and their solutions

unsafe_code_guidelines

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