Skip to content
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

Rust support? #145

Open
kkimdev opened this issue May 23, 2017 · 2 comments
Open

Rust support? #145

kkimdev opened this issue May 23, 2017 · 2 comments

Comments

@kkimdev
Copy link

kkimdev commented May 23, 2017

I'm trying to generate Oryol Rust binding and code in Rust. What would be the most proper way to integrate Rust compilation (Cargo)?

@fungos
Copy link
Contributor

fungos commented May 24, 2017

External build systems aren't really supported right now, you may be able to workaround with a custom verb that will prepare the rust library and trick fips to use the generated output or a fips-generator.

In any case, this is how one would integrate Rust in a CMake project: https://stackoverflow.com/questions/31162438/how-can-i-build-rust-code-with-a-c-qt-cmake-project

There are other issues related to external build systems #140 and #124. I believe that a simple support to CMake ExternalProject could be done in a simple way and integrating Rust can be easy without adding too much code (as rustup and cargo will do the heavy part).

@code-disaster
Copy link
Contributor

code-disaster commented Dec 15, 2018

I learned about CMake Rust Language Support recently, and tried to wrap a simple-to-use module fips-rust around it.

Right now, it only allows to add a Cargo project as a static library, so that it can be conveniently linked with fips_libs() and called from C/C++ code.

I did not try yet to link other fips libraries to a Rust project. That's probably the difficult part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants