Crate flapigen

Source
Expand description

flapigen is a Rust Simplified Wrapper and Interface Generator used to connect other programming languages to Rust. It is designed to be used from cargo build scripts. The idea of this softwared based on swig. More details can be found at README

Modules§

file_cache

Structs§

CppConfig
Configuration for C++ binding generation
CppOptionalIter
An iterator over the variants of CppOptional
CppStrViewIter
An iterator over the variants of CppStrView
CppVariantIter
An iterator over the variants of CppVariant
Generator
Generator is a main point of flapigen. It expands rust macroses and generates not rust code. It designed to use inside build.rs.
JavaConfig
Configuration for Java binding generation
MethodInfo
PythonConfig
Configuration for Python binding generation

Enums§

CppOptional
To which C++ type map std::option::Option
CppStrView
To whcih C++ type map &str
CppVariant
To which C++ type map std::result::Result
JavaReachabilityFence
What reachability fence to use
LanguageConfig
LanguageConfig contains configuration for specific programming language
MethodVariant

Functions§

target_pointer_width_from_env
Calculate target pointer width from environment variable that cargo inserts