You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to write a small tool to calculate something distributed on a master with slaves and learn more about Rust on the way. Having a simple transport layer with the help of protocol seemed like a good way. I'm using rustc 1.31.0 (abe02cefd 2018-12-04) and am currently getting this error:
error[E0107]: wrong number of type arguments: expected 0, found 2
--> src/network.rs:4:10
|
4 | #[derive(Protocol, Debug, PartialEq)]
| ^^^^^^^^ 2 unexpected type arguments
Sadly the error is not very helpful in explaining what exactly I'm doing wrong but I highly suggest it has to do with Rust 2018, because the examples still use extern crate and #[macro_use]. Also there's no edition = "2018" in the Cargo.toml.
Any help on this is very appreciated. I don't think there's any other crate that can do what procotol suggests it can do this easily.
The text was updated successfully, but these errors were encountered:
Update: I just forked protocol, upgraded it manually to Rust 2018 and tried to use the git version in my little project. Turns out the error is still there and I still have no clue what it means. 😕
Hello.
I wanted to write a small tool to calculate something distributed on a master with slaves and learn more about Rust on the way. Having a simple transport layer with the help of
protocol
seemed like a good way. I'm usingrustc 1.31.0 (abe02cefd 2018-12-04)
and am currently getting this error:I'm trying to use this on:
Sadly the error is not very helpful in explaining what exactly I'm doing wrong but I highly suggest it has to do with Rust 2018, because the examples still use
extern crate
and#[macro_use]
. Also there's noedition = "2018"
in theCargo.toml
.Any help on this is very appreciated. I don't think there's any other crate that can do what
procotol
suggests it can do this easily.The text was updated successfully, but these errors were encountered: