Bug 404127

Summary: Crashes if Cargo.toml isn't in the same dir as bindings.json
Product: [Unmaintained] rust-qt-binding-generator Reporter: Sashanoraa <bugs.kde.acc>
Component: generalAssignee: Jos van den Oever <jos>
Status: RESOLVED UNMAINTAINED    
Severity: major    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sashanoraa 2019-02-09 06:47:49 UTC
SUMMARY

rqbg seems to be expecting Cargo.toml to be in the same directory as bindings.json.  It just prints `No such file or directory (os error 2)`
and exits if the file isn't there.  It should probably print a better
error and there should probably be a flag to set this path to the file
if to set the edition or something.

configuration.rs:473 is where it's crashing


STEPS TO REPRODUCE
1. Run rqbg where Cargo.toml isn't in the same directory as bindings.json

OBSERVED RESULT
No such file or directory (os error 2)


EXPECTED RESULT
Bindings are generated


SOFTWARE/OS VERSIONS
Manjaro w KDE

ADDITIONAL INFORMATION
rustc v1.32.0
Comment 1 Jos van den Oever 2019-02-09 09:02:18 UTC
Can you check with version 0.3.1 (master)?
Comment 2 Christoph Cullmann 2024-09-22 20:07:54 UTC
rust-qt-binding-generator is no longer maintained, please try more recent alternatives like

https://github.com/KDAB/cxx-qt/