Expand description
Generates Haxe (hxcpp) bindings for Interoptopus.
This backend generates Haxe extern classes that can be used with hxcpp to call native Rust code through C FFI.
为 Interoptopus 生成 Haxe (hxcpp) 绑定。 此后端生成可用于 hxcpp 调用原生 Rust 代码的 Haxe extern 类。
§Usage
ⓘ
use interoptopus_backend_haxe::{Config, Interop};
let inventory = my_library::my_inventory();
Interop::builder()
.inventory(inventory)
.config(Config {
lib_name: "souprune".to_string(),
package_name: "souprune.ffi".to_string(),
..Default::default()
})
.build()?
.write_file("bindings/haxe/SoupruneApi.hx")?;Structs§
- Config
- Configuration for Haxe code generation.
- Interop
- Generates Haxe extern class bindings, get this with
InteropBuilder. - Interop
Builder - Builder for
Interop.