Open Qinka opened 5 years ago
I get the same error with 1.33
, but for me it looks more like this (scroll to line 359 to see it starting): https://ci.appveyor.com/project/atoav/bender-worker/build/job/de75trbhis6tjpvc
I want to add, that this seems to only happen on windows targets, not on unix targets. It would be quite cool if this could be somehow resolved..
I could reproduce this error locally on a Windows system by cloning this reprository and running cargo build
. Weirdly enough it builds perfectly fine on unix based systems. On Windows it fails with:
error: Could not compile `amq-proto`.
warning: build failed, waiting for other jobs to finish...
error: aborting due to 108 previous errors
I checked and it seems that all these 108 Errors seem to be related to Error handling, many of them obviously caused by another. Except for two errors in src/framing.rs
all other errors happen in src/table.rs
and src/codegen_macros.rs
. I am not at all familiar with macros in Rust, but I suspect the Macros are the root cause?
I am working on a cross plattform project that uses rust-amqp
. This seems to be the onlyt remaining issue that stops a Windows build for me, it would be extremely cool if this would be resolved.
@atoav , I used lapin instead.
Thanks for the suggestion, but I'd like to avoid it, because my application relies in many places on the rust-amqp Channel, and it would be a kinda length operation, that I am not really prepared to go through right now..
Same there, i wanted to use amqp, because lapin is behaving somewhat weirdly with async/await, mainly the consumption, so i wanted to try something without futures...
@tyrylu Believe me. You can find a way out with lapin, even it's weird. However, the only way you can find in this repo is named "no way".
Yeah, it seems so. But i have a weird lapin_futures issue as well, see https://github.com/sozu-proxy/lapin/issues/165
I also encountered this problem
This error happens because error chain (or at least version 0.10) only implement the conversion needed conversion for Unix platforms:
#[cfg(unix)]
impl From<::std::io::Error> for Error {
fn from(e: ::std::io::Error) -> Self {
Error::from_kind(ErrorKind::Io(e))
}
}
(This is the output of cargo-expand for the error module of this crate). That's pretty unfortunate, but I guess everybody already moved away from this library so I must be the last person affected…
encountered same issue.
I got an error(E0227).
The version of Rust compiler is