Module ext_php_rs::describe::abi

source ·
Expand description

ABI-stable standard library types.

The description module is used by the cargo-php sub-command to retrieve information about the extension. As Rust does not have a stable ABI, it is not as simple as working in the Rust domain, as if the CLI and extension Rust versions do not match, it cannot be assumed that the types have the same memory layout.

This module contains thin wrappers around standard library types used by the describe function to provide some sort of ABI-stability.

As a general rule of thumb, no Rust type is ABI-stable. Strictly speaking, usize should not be in use, but rather size_t or a similar type, however these are currently unstable.

Structs§

Enums§