rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

Ritual doesn't compile. Errors when compiling "amq-proto" #118

Closed lucypero closed 2 years ago

lucypero commented 2 years ago

error example

error[E0277]: `?` couldn't convert the error to `error::Error`
   --> C:\Users\Lucy\.cargo\registry\src\github.com-1ecc6299db9ec823\amq-proto-0.1.0\src\codegen_macros.rs:121:45
    |
121 |         self.data.write_all(data.as_bytes())?;
    |                                             ^ the trait `From<std::io::Error>` is not implemented for `error::Error`

Setup:

C:\Users\Lucy\dev\rust-switch\nx-ritual>cargo version
cargo 1.56.0-nightly (e96bdb0c3 2021-08-17)
[dependencies]
ritual = {git = "https://github.com/rust-qt/ritual.git", rev = "a2fd8013fccc8fd99cc821145d6ac515dece670a"}
Riateche commented 2 years ago

This has been fixed in https://github.com/rust-qt/ritual/commit/7c19dfad9e0ad90b958d4c612a322f83f99ad8a5. You can update ritual revision or just switch to master branch to get the fix.