1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
push:
pull_request:
jobs:
msrv:
name: MSRV
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install MSRV Rust
uses: dtolnay/rust-toolchain@1.70.0
- name: Check library
run: cargo check --lib --all-features
- name: Check library without default features
run: cargo check --lib --no-default-features
rust:
name: Rust
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Test
run: cargo test
- name: Test without default features
run: cargo test --no-default-features
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Docs
run: cargo doc --no-deps --all-features