Crate aranya_capi_core

Crate aranya_capi_core 

Source
Expand description

A no-std utility library for building C APIs.

Modules§

opaque
prelude
Common items.
safe
Types that make FFI a little bit safer.
types
FFI safe type checking.

Structs§

InvalidArg
An invalid agument.
Utf8Str
UTF-8 text slice.

Enums§

InvalidArgReason
The reason for an InvalidArg.
WriteCStrError
The error returned by write_c_str.

Traits§

Builder
The builder pattern, as a trait.
ErrorCode
An error code returned by the C API.
ExtendedError
Extended error information.
InitDefault
Like Default, but writes to MaybeUninit.

Functions§

write_c_str
Writes src as a null-terminated C string to dst.

Attribute Macros§

builds
Generates a “build” constructor for the named type.
opaque
Instructs cbindgen to ignore the Rust struct’s fields and instead generate a C struct with a specific size and alignment.

Derive Macros§

ErrorCode
Derives an implementation of ErrorCode.