https://bugs.kde.org/show_bug.cgi?id=401913

            Bug ID: 401913
           Summary: Add support for Rust 2018 edition projects.
           Product: rust-qt-binding-generator
           Version: unspecified
          Platform: Other
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: j...@vandenoever.info
          Reporter: onel...@gmail.com
  Target Milestone: ---

SUMMARY

Currently, use statements in the generated modules are not compatible with Rust
2018 edition.

I worked up a patch for this as a pull request (which was... closed
immediately).

The pull request I prepared earlier:
https://github.com/KDE/rust-qt-binding-generator/pull/1

and the associated patch:
https://patch-diff.githubusercontent.com/raw/KDE/rust-qt-binding-generator/pull/1.patch

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.

ADDITIONAL INFORMATION

Just as an aside, I'm wondering if there isn't another way to handle questions,
comments, feedback, or patches for this project. Feels a little heavy to report
in this fashion just to get some discussion going, but I understand if this is
just the way it has to be.

Cheers,
Owen

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to