Registry / other / autocxx

autocxx

JSON →
library0.30.0rscratesunverified

Provides safe autogenerated interop between Rust and C++ by generating Rust bindings from C++ headers.

# Cargo.toml [dependencies] autocxx = "0.30.0"
INSTALL
IMPORT
SIG · AUTOCXX
A
autocxx
otherrustv0.30.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

include_cpp
use autocxx::include_cpp;

Shows basic usage of autocxx to generate bindings for a C++ class and instantiate it.

use autocxx::include_cpp; include_cpp!( #include "my_header.h" safety!(unsafe_ffi) generate!("MyClass") ); fn main() { let obj = ffi::MyClass::new().within_unique_ptr(); println!("Created C++ object"); }
Debug
Known issues
gotchaRequires a C++ compiler and build system integration (e.g., via build.rs).
fix
Ensure you have a C++ toolchain installed and configure your build.rs to run autocxx.
affects: >=0.30.0
Upgrade
Version history
0.30.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Meta
2
OpenAI (training)
1
Resources
autocxx — cargo add autocxx · libregistry