Commit Graph

12 Commits (2a8664e9bfed74150c6a2df28c78f2d6b3f1a674)

Author SHA1 Message Date
an 2a8664e9bf add more trivial types 2019-07-10 06:05:58 -04:00
an 67d0eaec84 add QWidget base type 2019-07-10 04:46:02 -04:00
an 598336e657 add before header include option 2019-07-03 22:50:28 -04:00
an fddfbd59c5 add base class property for objects 2019-07-03 22:33:40 -04:00
Jos van den Oever bba4964e31 Fix error where Cargo.toml could not be found
And improve the error message
2019-02-08 22:00:20 +01:00
Jos van den Oever ad94fb1036 cargo fmt 2019-01-22 00:03:50 +01:00
Jos van den Oever ecd135f311 Fix build with rust <= 1.30
A required lifetime was missing.
2018-12-10 00:32:20 +01:00
Owen Nelson 325ffc2a2c Add support for Rust 2018 edition projects.
Summary:
After enabling 2018 edition on my cargo project, the use statements
generated in the interface module no longer resolve.

Prefixing module paths with `crate::` brings things back into alignment.

Unsure if this is how you'd like to approach the issue, but I'm happy to revise the patch based on your feedback.

Test Plan:
STEPS TO REPRODUCE
1. create a new cargo project based on the template
2. update your toolchain to >= 1.31
3. add `edition = "2018"` to the package section of your Cargo.toml
4. run `cargo build`

OBSERVED RESULT

Build fails since generated code tries to import crate-local modules as if they are top level crates.

EXPECTED RESULT

Build completes successfully.

Reviewers: vandenoever

Differential Revision: https://phabricator.kde.org/D17447
2018-12-09 23:34:40 +01:00
Carl Schwan ec81047ac1
Use pattern matching instead of if and else that return true and false
Differential Revision: https://phabricator.kde.org/D16576
2018-11-01 10:30:05 +01:00
Jos van den Oever 6ee8ca626d Add function to create bindings from runtime Config object 2018-09-28 23:38:44 +02:00
Jos van den Oever b3e43ae1d2 Handle result of write! and writeln!
This is probably the patch with the largest amount of question marks added to code ever.
2018-09-28 18:05:10 +02:00
Jos van den Oever d7e4f1362d Port rust_qt_binding_generator from C++ to Rust 2018-09-28 12:11:57 +02:00