Generator of rust_qt crate.
Switch branches/tags
Nothing to show
Clone or download
Riateche Merge pull request #68 from vlovich/patch-1
Fix linker error on OSX
Latest commit 221feee Dec 24, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci disable appveyor rustup cachhe Oct 20, 2017
cpp_to_rust Cache template class regex Dec 19, 2017
qt_generator Fix linker error on OSX Dec 18, 2017
.gitignore merge Oct 7, 2017
.travis.yml new ci config 5 Apr 5, 2017 Fix typo Nov 25, 2017
appveyor.yml disable appveyor rustup cachhe Oct 20, 2017
rustfmt.toml new path overrides, qt_core works! Jan 13, 2017
rustfmt_all ui tools support started Apr 5, 2017


Linux + OS X Windows

cpp_to_rust allows to use C++ libraries from Rust. The main target of this project is Qt.

Using published Qt crates

This project maintains the following Qt crates (more will hopefully be added in the future):

Crate Version

If you just want to use these crates, add them as dependencies to your Cargo.toml, for example:

qt_widgets = "0.2"

And add corresponding extern crate directives to the crate root ( or

extern crate qt_widgets;

Each crate re-exports its dependencies, so, for example, you can access qt_core as qt_widgets::qt_core without adding an explicit dependency.

Online documentation of published Qt crates (you may also run cargo doc --open to generate documentation for your crate's dependencies).

Published crates required a certain Qt version (currently 5.8.0) and don't export platform-specific API.

Using the generator

If you want to use another Qt version, access platform-specific Qt APIs or tweak the generator configuration, refer to README of qt_generator for more information.

If you want to generate Rust crates for another C++ library or learn about implementation details, see README of cpp_to_rust_generator.

Repository structure

The project consists of the following Rust crates:

See in each crate for detailed description.


Contributions are always welcome! You can contribute in different ways:

  • Suggest a C++ library to adapt;
  • Submit a bug report, a feature request, or an improvement suggestion at the issue tracker;
  • Write a test for cpp_to_rust_generator crate;
  • 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 or any other issue you like.