rust-cpp
ritual
Our great sponsors
rust-cpp | ritual | |
---|---|---|
11 | 6 | |
770 | 1,192 | |
- | 0.7% | |
4.6 | 0.0 | |
8 months ago | 12 months ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-cpp
-
Improving Interoperability Between Rust and C++
I am the current passive maintainer of the cpp crate: https://github.com/mystor/rust-cpp
-
Best practices in creating a Rust API for a C++ library? Seeking advice from those who've done it before.
I would like to utilize OMPL's functionality in Rust code, so I want to call into OMPL C++ code somehow in Rust. I've seen two (non-mutually-exclusive) options so far: - rust-cpp, which allows you to write C++ code in Rust within the cpp!() macro. - cxx, which allows you to define both sides of the FFI boundary manually (as opposed to bindgen's automatic generation).
-
Microsoft is rewriting core Windows libraries in Rust
There's also the cpp and cxx crates for doing C++/Rust interop, but they probably aren't appropriate to use in all cases. The C ABI is definitely the safest way to go unless you're really trying to marry Rust and C++ code bases, not just writing library bindings.
-
US NGO Consumer Reports also reporting on C and C++ safety for product development.
Otherwise, C would never have achieved success in MS-DOS when all the stuff it was binding to at the time required blocks of inline assembly. (Crates like rust-cpp do exist, which allow "inline C++" in the same way that C++ allows inline assembly.)
-
Choosing language for a new project
Actually, you can make inline C++ macro in Rust. Similar unholy monstrosities exist for inline python, inline C, inline SQL, inline HTML,...
-
Tired of safe programming? Embed C directly in your Rust code
Here is a more serious project that allows to embed C++ code directly in your Rust code: https://github.com/mystor/rust-cpp
-
Hello, youki! Faster container runtime is written in Rust
Don't underestimate the power of procedural macros: https://github.com/mystor/rust-cpp
- Use a CPP library from Rust
-
Rust with C++?
Alright, thanks for all your ideas! I also found this mystor/rust-cpp, which apparently allows inline c++ as opposed to cxx. Having yet to try out any of these, I like the idea of inline code more. Thought now I feel I need to brush up my skills a bit more to try this stuff out.
-
CXX - Safe interop between Rust and C++
Another create which i've been contributing to and maintaining is the cpp crate, which can also be useful for interoperability with C++, as it allows to embed C++ code snippets directly within rust functions:
ritual
-
Question about including parent directory C++ files in Rust crate
For your inspiration to get c++ code in a crate: https://github.com/rust-qt/examples uses ritual build https://github.com/rust-qt/ritual which integrates qt c++ stuff into the above cargo qt rust examples. I would like to highlight the todo list example. Build and run it verbosely with "--verbose --verbose".
-
CXX-Qt: safe Rust bindings for Qt
It is great to see how many people want to bring Qt support to Rust and are trying to do so, and I hope that these folks succeed, but it’s wearisome to me how they each create a new project instead of working with others who are already in this problem space. Of the half-dozen or so[0] existing attempts so far to create Qt bindings to Rust, none of them have actually succeeded because they’ve either been abandoned midway or limit their support to QML. Ritual[1] is the only crate I’ve seen that attempts to actually expose the whole Qt API, but it’s pretty awful to use, incomplete, and dead.
Rust doesn’t need more Qt crates. It needs one Qt crate that is complete and works well. (Or, ideally, a native Rust cross-platform GUI crate that works as well as Qt, but that’s an even longer and harder task.)
-
Use a CPP library from Rust
Just wanted to add another vote for https://github.com/rust-qt/ritual that 0OOO00000OO00O0O0OOO/ mentioned below.
Ritual seems to be one https://github.com/rust-qt/ritual
-
GUI liblary for qt ?
There was a QT library, rust-qt (that was officially supported I believe), the bindings being made with Ritual. There is an open issue for supporting qt6, which I'm also awaiting; https://github.com/rust-qt/ritual/issues/109.
- Qt 6.2 LTS Released
What are some alternatives?
Rust Qt Binding Generator git - Generate bindings to use Rust code in Qt and QML
cxx - Safe interop between Rust and C++
derive_more - Some more derive(Trait) options
QMetaObject crate for Rust - Integrate Qml and Rust by building the QMetaObject at compile time.
qt.rs - Qt5 binding for rust language. (stalled)
imgui-rs - Rust bindings for Dear ImGui
conrod - An easy-to-use, 2D GUI library written entirely in Rust.
rust-ctor - Module initialization/global constructor functions for Rust
gyroflow - Video stabilization using gyroscope data
Neutrino - A GUI frontend in Rust based on web-view
Cursive - A Text User Interface library for the Rust programming language