Crate rust_swig [] [src]

rust_swig is a Rust Simplified Wrapper and Interface Generator used to connect other programming languages to Rust. The idea of this softwared based on swig. For macros expansion it uses syntex. More details can be found at README

Structs

CppConfig
Generator

Generator is a main point of rust_swig. It expands rust macroses and generates not rust code. It designed to use inside build.rs.

JavaConfig

Configuration for Java

Enums

CppOptional

To which C++ type map std::option::Option

CppVariant

To which C++ type map std::result::Result

LanguageConfig

LanguageConfig contains configuration for specific programming language

Functions

target_pointer_width_from_env

Calculate target pointer width from environment variable that cargo inserts