#qt #ritual #generate #bindings-generator #build #version #cpp

build qt_ritual_common

Common utilities for generating and building Rust-Qt crates

6 releases (breaking)

0.4.0 Feb 17, 2020
0.3.0 Nov 2, 2019
0.2.0 Oct 27, 2019
0.1.1 Sep 10, 2019
0.0.0 Jan 7, 2019

#1046 in GUI

Download history 431/week @ 2023-12-14 368/week @ 2023-12-21 192/week @ 2023-12-28 244/week @ 2024-01-04 277/week @ 2024-01-11 325/week @ 2024-01-18 173/week @ 2024-01-25 94/week @ 2024-02-01 268/week @ 2024-02-08 264/week @ 2024-02-15 262/week @ 2024-02-22 262/week @ 2024-02-29 329/week @ 2024-03-07 231/week @ 2024-03-14 447/week @ 2024-03-21 666/week @ 2024-03-28

1,694 downloads per month
Used in 218 crates (2 directly)

MIT/Apache

73KB
1.5K SLoC

ritual

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:

License

This project is licensed under either of

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:

Common utilities for the generator and the build script for Qt crates.

See README of the repository root for more information.

Dependencies

~4–6MB
~117K SLoC