Hoverbear / old-raft-rs

[Incomplete] A Raft implementation in Rust
https://hoverbear.github.io/raft-rs/raft/
MIT License
266 stars 41 forks source link

Cannot build master #133

Open RCasatta opened 6 years ago

RCasatta commented 6 years ago

I would like to testdrive this raft consensus implementation, however at the moment I cannot build master.

I solved a couple of problems by changing in the Cargo.toml the following version: bincode = "0.9.2" # because 1.0.2 alpha is yanked capnp-nonblock = "0.4" # the lib isn't mantained but receveid an update to fix a bug

now the problem is:

$ rustc --version
rustc 1.24.0-nightly (8503b3ff8 2017-12-04)
$ cargo build
   Compiling raft v0.0.1 (file:///root/raft-rs)
error: failed to run custom build command for `raft v0.0.1 (file:///root/raft-rs)`
process didn't exit successfully: `/root/raft-rs/target/debug/build/raft-bea158e5c097963c/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Error { repr: Os { code: 2, message: "No such file or directory" } })', /checkout/src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Hoverbear commented 6 years ago

Hi, this is a known issue.

Most of this code hasn't been touched since pre 1.0.0. To be honest I'm rather surprised you got so far. :) Really, most of this code needs to be migrated away from Mio to Tokio, and away from the capnp implementation its using to... well, something.

At this current time I don't really have the time or use case for it. :(

RCasatta commented 6 years ago

I understand, if you want in the meantime I updated the Cargo.toml https://github.com/Hoverbear/raft-rs/pull/134

Hoverbear commented 6 years ago

Thanks so much! I'll review that. :)