Skip to content

Commit ce7b975

Browse files
committed
initial commit
0 parents  commit ce7b975

18 files changed

+2501
-0
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[alias]
2+
xfmt = "fmt -- --config imports_granularity=Crate --config group_imports=One"

.github/codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
target: 0%

.github/renovate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["github>nextest-rs/renovate"]
3+
}

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
branches:
7+
- main
8+
9+
name: CI
10+
env:
11+
RUSTFLAGS: -D warnings
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
lint:
16+
name: Lint
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- uses: dtolnay/rust-toolchain@stable
21+
with:
22+
components: rustfmt, clippy
23+
- uses: Swatinem/rust-cache@720f7e45ccee46c12a7b1d7bed2ab733be9be5a1 # v2
24+
- name: Lint (clippy)
25+
run: cargo clippy --all-features --all-targets
26+
- name: Lint (rustfmt)
27+
run: cargo xfmt --check
28+
- name: Check for differences
29+
run: git diff --exit-code
30+
31+
build:
32+
name: Build and test
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest]
37+
rust-version: [stable]
38+
fail-fast: false
39+
steps:
40+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
41+
- uses: dtolnay/rust-toolchain@master
42+
with:
43+
toolchain: ${{ matrix.rust-version }}
44+
- uses: Swatinem/rust-cache@720f7e45ccee46c12a7b1d7bed2ab733be9be5a1 # v2
45+
with:
46+
key: ${{ matrix.rust-version }}
47+
- run: cargo test --all-features --all-targets

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)