4 ms·
Dunno about rust, but since both Nim and Zig compile to C as interim, it should be fairly easy to get them working together, no?
by Xeamek 3y ago
Dunno about rust, but since both Nim and Zig compile to C as interim, it should be fairly easy to get them working together, no?
- pzo 3y agoThings might changed but last time I checked you could easily call C function but you had to kind of export each single C function, structs etc. You couldn't just import single header file and be ready to call any function in the library. There is some pending project [0] futhark but not sure how mature it is and that still only for C libraries (instead of C++ or Rust) but maybe easy adopt for Zig - would be great nonetheless. [0] https://github.com/PMunch/futhark https://github.com/PMunch/futhark