Comments (7)
It's just having problem recognizing version "25.1.x". As a workaround, you can put an outdated protoc in PATH.
from raft-rs.
@BusyJay Successfully built. Thank you.
from raft-rs.
@BusyJay I managed to compile and run the example with a single node, however with 5 nodes it fails with:
Compiling hello-raft v0.1.0 (/Users/bayram/Projects/Rust/hello-raft)
error[E0599]: no method named `merge_from_bytes` found for struct `raft::prelude::ConfChange` in the current scope
--> src/main.rs:291:24
|
291 | cc.merge_from_bytes(&entry.data).unwrap();
| ^^^^^^^^^^^^^^^^ method not found in `ConfChange`
|
::: /Users/bayram/.cargo/registry/src/index.crates.io-6f17d22bba15001f/protobuf-2.28.0/src/message.rs:94:8
|
94 | fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()> {
| ---------------- the method is available for `raft::prelude::ConfChange` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
7 + use protobuf::message::Message;
|
warning: unused import: `protobuf::Message`
--> src/main.rs:14:5
|
14 | use protobuf::Message as PbMessage;
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `hello-raft` (bin "hello-raft") generated 1 warning
error: could not compile `hello-raft` (bin "hello-raft") due to previous error; 1 warning emitted
This is my Cargo.toml
[package]
name = "hello-raft"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bytes = "1.5.0"
protobuf = "3.3.0"
raft = "0.7.0"
raft-proto = "0.7.0"
regex = "1.10.2"
slog = "2.7.0"
slog-async = "2.8.0"
slog-envlogger = "2.2.0"
slog-stdlog = "4.1.1"
slog-term = "2.9.0"
Any idea how to fix it?
from raft-rs.
Currently, raft-rs uses protobuf 2.x.
from raft-rs.
@BusyJay Thank you. Worked.
from raft-rs.
@BusyJay I want to play around with the crate. Do you have sort of community or a place where I could ask questions if I have ones regarding usage of the crate or internals of the crate?
from raft-rs.
Both issues and github discussions are OK.
from raft-rs.
Related Issues (20)
- Unclear documentation for Progress maybe_snapshot_abort HOT 2
- [doc] minor typo in library documentation HOT 1
- Detach the delivery of Ready from the call to tick() to reduce commit latency. HOT 1
- How to watch the follower become leader? HOT 2
- How do I use the `ConfChangeType::AddLearnerNode` in `propose_conf_change`? HOT 4
- Panic in `become_leader` HOT 7
- Are there any plans to support [tracing](https://github.com/tokio-rs/tracing)? HOT 1
- File name too long during cargo build
- Make request_snapshot more safer
- Please release 0.7.0 on `crates.io` HOT 2
- Why is MsgSnapStatus considered a local message? HOT 3
- Question - Migrate `raft-rs 0.6.0a` to `raft-rs 0.7.0` HOT 1
- Is there some guidelines on calling step, ready and advance? HOT 3
- Initialization with term=0 shouldn't be allowed HOT 10
- Picked - Support asynchronous storage writes HOT 2
- Confusion about comments in raft.rs at line 1630 HOT 2
- What are vote leader and vote term? HOT 2
- Suggestion: Provides test suite for ensuring the storage implementation is correct HOT 1
- How to make the leader node implement log compressio? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raft-rs.