Skip to content

Using upkr as a library from C/C++ #9

@fgenesis

Description

@fgenesis

Hey, first up, I don't know much about the state of the rust ecosystem or rust in general so sorry if this is a dumb question.
I'd like to integrate upkr into a resource packer thingy i'm currently throwing together, which is written in C++.
Now rust is supposedly C ABI compatible but it seems not possible to transpile rust to C. After reading up on the subject, LLVM's C backend is dead, so compiling upkr to a LLVM bitcode file and translating that to C don't seem like a good option. I've tried compiling as wasm (with the intention to wasm2c later) but that didn't work either.

How would I go about integrating upkr as a library? Best would be a .c/.h file to simply compile in, alternatively a DLL with some callable exports.

(I've done that with exomizer a while back, which doesn't compile as C++, but at least it's C, so writing a wrapper was simple enough)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions