First of all, thank you everyone in here for your help. Very excited.
I have a working poc, still have some work to do at the abi level, particularly around disposing. I plan to make this a crate that others can enjoy.
https://github.com/coffeebe4code/type-lang/blob/main/cranelift/craneliftc/src/lib.rs
And the cbindgen header file with extra for types i wanted to be opaque.
https://github.com/coffeebe4code/type-lang/tree/main/cranelift/headers
It has been published to crates.io
https://crates.io/crates/craneliftc
Last updated: Dec 23 2024 at 12:05 UTC