Skip to content

Commit fd6a493

Browse files
authored
Merge pull request #8 from rustaceanrob/26-3-11-add-ci
Add CI and MSRV
2 parents ec12e50 + 5662157 commit fd6a493

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions-rust-lang/setup-rust-toolchain@v1
17+
- name: Format Check
18+
run: |
19+
cargo fmt -- --check
20+
cargo clippy --all-targets -- -D warnings
21+
cargo check --all-features
22+
- name: Test
23+
run:
24+
cargo test
25+
- name: MSRV
26+
run: |
27+
cargo install cargo-msrv@0.19.2
28+
cargo msrv verify

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ repository = "https://github.com/rustaceanrob/hintsfile"
99
readme = "README.md"
1010
keywords = ["bitcoin", "cryptography", "network", "peer-to-peer"]
1111
categories = ["cryptography::cryptocurrencies"]
12+
rust-version = "1.80.0"
1213

1314
[dependencies]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ use hintsfile::Hintsfile;
1818
// Load a file
1919
let hints = Hintsfile::from_reader(&mut file)?;
2020
```
21+
22+
## MSRV
23+
24+
This crate compiles with a toolchain of **1.80.0** or higher.

0 commit comments

Comments
 (0)