feat: enforce no_std support (#21)

We tell GitHub to build PRs with `--no-default-features` to ensure that building we no_std works.
This commit is contained in:
Matthias Görgens
2023-03-14 18:49:48 +08:00
committed by GitHub
parent 4e67a3368e
commit 4bf32326fd

View File

@@ -19,6 +19,18 @@ jobs:
override: true
- name: Run tests
run: cargo test
no_std_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build without std
run: cargo build --no-default-features
lint:
runs-on: ubuntu-latest
steps: