-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can v2 be used in c++? #91
Comments
Theoretically, yes: https://doc.rust-lang.org/nomicon/ffi.html#calling-rust-code-from-c Rust can make C-compatible static libraries and export C ABI structs and functions, which you can then pick up on the C++ side. There's even tooling like https://lib.rs/cxx that automates a lot of this. However, I haven't prepared an interface for it, so it needs a bit of DIY. If you'd like to do it, then:
|
Thank you for the quick and detailed response! Please consider adding such interface to the library as I think there'll be more demand to use this lib with C/C++. |
Done in b5c4195 |
Wow, that's really quick, these code comments are so detailed too, thanks a lot! |
I have no experience with Rust so it would be great if there's some guidance on how to intergrate dssim v2 with c++ codebase.
The text was updated successfully, but these errors were encountered: