From 5662157dbf19922bdce8cc0a1698cb03c9b507ca Mon Sep 17 00:00:00 2001 From: rustaceanrob Date: Wed, 11 Mar 2026 12:27:25 +0000 Subject: [PATCH] Add CI and MSRV --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ Cargo.toml | 1 + README.md | 4 ++++ 3 files changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e31d450 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Format Check + run: | + cargo fmt -- --check + cargo clippy --all-targets -- -D warnings + cargo check --all-features + - name: Test + run: + cargo test + - name: MSRV + run: | + cargo install cargo-msrv@0.19.2 + cargo msrv verify diff --git a/Cargo.toml b/Cargo.toml index 458bf3c..a8a24cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,5 +9,6 @@ repository = "https://github.com/rustaceanrob/hintsfile" readme = "README.md" keywords = ["bitcoin", "cryptography", "network", "peer-to-peer"] categories = ["cryptography::cryptocurrencies"] +rust-version = "1.80.0" [dependencies] diff --git a/README.md b/README.md index c1eff82..09a8989 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,7 @@ use hintsfile::Hintsfile; // Load a file let hints = Hintsfile::from_reader(&mut file)?; ``` + +## MSRV + +This crate compiles with a toolchain of **1.80.0** or higher.