#cpp #core #ritual #c #api


Utilities for interoperability with C++

6 releases (3 breaking)

0.6.0 Mar 21, 2020
0.6.0-alpha.1 Mar 17, 2020
0.5.1 Feb 17, 2020
0.5.0 Nov 2, 2019
0.3.0 Sep 23, 2019
Download history 58/week @ 2021-06-28 70/week @ 2021-07-05 54/week @ 2021-07-12 65/week @ 2021-07-19 135/week @ 2021-07-26 79/week @ 2021-08-02 53/week @ 2021-08-09 38/week @ 2021-08-16 75/week @ 2021-08-23 30/week @ 2021-08-30 68/week @ 2021-09-06 51/week @ 2021-09-13 90/week @ 2021-09-20 95/week @ 2021-09-27 123/week @ 2021-10-04 69/week @ 2021-10-11

269 downloads per month
Used in less than 13 crates


762 lines


Build Status

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:


This project is licensed under either of

at your option.

If you use Qt, you should also take into account Qt licensing.


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.