rust: use the bytes-cast crate to parse persistent nodemaps
This crate casts pointers to custom structs, with compile-time safety checks, for easy and efficient binary data parsing. See https://crates.io/crates/bytes-cast and https://docs.rs/bytes-cast/0.1.0/bytes_cast/ Differential Revision: https://phab.mercurial-scm.org/D9788
parent
38b9a63d3a13
No related branches found
No related tags found
Showing
- rust/Cargo.lock 21 additions, 0 deletionsrust/Cargo.lock
- rust/hg-core/Cargo.toml 1 addition, 0 deletionsrust/hg-core/Cargo.toml
- rust/hg-core/src/revlog/nodemap.rs 35 additions, 52 deletionsrust/hg-core/src/revlog/nodemap.rs
- rust/hg-core/src/revlog/nodemap_docket.rs 18 additions, 34 deletionsrust/hg-core/src/revlog/nodemap_docket.rs
- rust/hg-core/src/revlog/revlog.rs 6 additions, 0 deletionsrust/hg-core/src/revlog/revlog.rs
Loading
Please register or sign in to comment