Skip to main content

Crate ctest

Crate ctest 

Source
Expand description

§ctest - an FFI binding validator

This library is intended to be used as a build dependency in a separate project from the main repo to generate tests which can be used to validate FFI bindings in Rust against the headers from which they come from.

Structs§

Const
Represents a constant variable defined in Rust.
Field
Represents a field in a struct or union defined in Rust.
Fn
Represents a function signature defined in Rust.
Parameter
Represents a parameter in a function signature defined in Rust.
Static
Represents a static variable in Rust.
Struct
Represents a struct defined in Rust.
TestGenerator
A builder used to generate a test suite.
TranslationError
An error that occurs during translation, detailing cause and location.
Type
Represents a type alias defined in Rust.
Union
Represents a union defined in Rust.

Enums§

Abi
The ABI as defined by the extern block.
Language
The language used to generate the tests.
VolatileItemKind
A kind of item to which the C volatile qualifier could apply.

Functions§

expand
Use rustc to expand all macros and pretty print the crate into a single file.

Type Aliases§

Error
A possible error that can be encountered in our library.
Result
A type alias for std::result::Result that defaults to our error type.