Adding into_raw() and from_raw() methods #18
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 linting, formatting and audit | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/*.yml | |
- '**/*.rs' | |
- Cargo.toml | |
- Cargo.lock | |
workflow_dispatch: | |
jobs: | |
clippy-linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
components: clippy | |
override: true | |
- name: Clippy check | |
run: | | |
export RUSTFLAGS="--deny warnings" | |
time cargo clippy --verbose | |
check-formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
components: rustfmt | |
override: true | |
- name: Check formatting | |
run: | | |
rustfmt --version | |
cargo fmt -- --check | |
audit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install cargo-audit | |
uses: actions-rs/[email protected] | |
with: | |
crate: cargo-audit | |
version: latest | |
- name: Audit | |
run: cargo audit |