HomePhabricator

[Chronik] Add minimal bitcoinsuite-core Rust crate + CMake to `cargo test` it

Description

[Chronik] Add minimal bitcoinsuite-core Rust crate + CMake to cargo test it

Summary:

  • Add empty bitcoinsuite-core crate. We keep it empty as we don't have any lints yet, which will be added next.
  • Add CMake files to enable Chronik via BUILD_BITCOIN_CHRONIK CMake flag
  • Find Rust via Corrosion
  • Add check-bitcoinsuite target to run cargo test on all the rust crates starting with bitcoinsuite-.

Test Plan:

  1. Install Rust 1.61 and Corrosion 0.2, see D11663
  2. cmake .. -GNinja -DBUILD_BITCOIN_CHRONIK=on
  3. ninja check-bitcoinsuite
  4. Optionally (will be automated next): in src/rust: None of cargo check, cargo doc and cargo clippy raise warnings

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Subscribers: Mengerian

Differential Revision: https://reviews.bitcoinabc.org/D11668

Details

Provenance
tobias_ruckAuthored on Jun 27 2022, 12:27
tobias_ruckPushed on Jun 27 2022, 12:43
Reviewer
Restricted Project
Differential Revision
D11668: [Chronik] Add minimal bitcoinsuite-core Rust crate + CMake to `cargo test` it
Parents
rABCc510b7864d32: [avalanche] Don't process proofs that are not worth polling
Branches
Unknown
Tags
Unknown