Releases: pankcuf/ferment
Releases · pankcuf/ferment
Custom conversion support
What's Changed
- Feat/traits by @pankcuf in #2
- Feat/expose destructors by @pankcuf in #3
- fix: exposing _FFI destructors by @pankcuf in #4
- Constructor-bindings by @pankcuf in #5
- chore: update readme by @pankcuf in #6
- feat: Support async fn + Refactoring + Enum variant ctors bindings by @pankcuf in #7
- Feat/register custom conversion by @pankcuf in #9
- chore: TypeConversion for HashMap by @pankcuf in #10
Full Changelog: v0.1.1...v0.1.4
v0.1.1: Nested crates Support
v0.1.1:
fix: merge imports (when multiple items in one mod)
feat: multiple crates support
example: nested fermented crates expansion
extern crate cbindgen;
extern crate ferment;
use std::process::Command;
/// Now we can use `with_crates` to pass names of crates that use `[ferment::export]`
fn main() {
match ferment::Builder::new()
.with_crates(vec!["ferment_example".to_string()])
.generate() {
Ok(()) => match Command::new("cbindgen")
.args(&["--config", "cbindgen.toml", "-o", "target/example.h"])
.status() {
Ok(status) => println!("Bindings generated into target/example.h with status: {}", status),
Err(err) => panic!("Can't generate bindings: {}", err)
}
Err(err) => panic!("Can't create FFI expansion: {}", err)
}
}