old-raft-rs
old-raft-rs copied to clipboard
Cannot build master
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.
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. :(
I understand, if you want in the meantime I updated the Cargo.toml https://github.com/Hoverbear/raft-rs/pull/134
Thanks so much! I'll review that. :)