added types for returning descriptors and errors #87
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- 1.82.0 | |
- 1.70.0 # MSRV | |
features: | |
- "" | |
- default | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
- name: Build | |
run: cargo build --no-default-features --features "${{ matrix.features }}" | |
- name: Run tests | |
run: cargo test --no-default-features --features "${{ matrix.features }}" | |
- name: Clippy | |
run: cargo clippy -- -D warnings | |
fmt: | |
name: Rust fmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Rust Toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- name: Check fmt | |
run: cargo fmt --all -- --check | |
audit: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rust-lang/audit@v1 | |
name: Audit Rust Dependencies | |
# with: | |
# Comma separated list of issues to ignore | |
# ignore: RUSTSEC-2020-0036 | |