tikv / raft-rs

Raft distributed consensus algorithm implemented in Rust.
Apache License 2.0
2.86k stars 391 forks source link

Feature guarded no_std support #518

Open dzmitry-huba opened 1 year ago

dzmitry-huba commented 1 year ago

name: no_std about: Supporting no_std compilation mode


Description of feature: Make the library compatible with no_std environments.

Implementation: The std target implementation remains unchanged. The majority of changes are switching to using core and alloc where std used to be. The no_std flavor uses no_std compatible collections and synchronization primitives. The thiserror crate doesn't have no_std support hence the error types where reimplemented manually.