4 releases
0.1.1 | May 17, 2021 |
---|---|
0.1.0 | Mar 21, 2020 |
0.1.0-alpha.2 | Mar 17, 2020 |
0.1.0-alpha.1 | Mar 13, 2020 |
#1671 in Procedural macros
1,575 downloads per month
Used in 216 crates
(2 directly)
8KB
117 lines
ritual
ritual
allows to use C++ libraries from Rust. It analyzes the C++ API of a library and generates a fully-featured crate that provides convenient (but still unsafe) access to this API.
The main motivation for this project is to provide access to Qt from Rust. Ritual provides large amount of automation, supports incremental runs, and implements compatible API evolution. This is mostly dictated by the huge size of API provided by Qt and significant API differences between Qt versions. However, ritual is designed to be universal and can also be used to easily create bindings for other C++ libraries.
More information is available on rust-qt.github.io:
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
If you use Qt, you should also take into account Qt licensing.
Contributing
Contributions are always welcome! You can contribute in different ways:
- Submit a bug report, a feature request, or an improvement suggestion at the issue tracker;
- Write a test or an example for a Qt crate (porting examples from the official Qt documentation is a good option);
- Pick up an issue with help wanted tag.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
Macros for Qt.
This crate shouldn't be used directly. The macros are reexported by qt_core
and qt_ui_tools
crates.
This crate is part of the ritual project.
Dependencies
~1.5MB
~33K SLoC