Skip to content

Features/wasm components #229

Features/wasm components

Features/wasm components #229

Workflow file for this run

name: Rust CI
on:
pull_request:
paths:
- "native/wasmex/**"
push:
branches:
- main
defaults:
run:
working-directory: ./native/wasmex/
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: rust-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt -- --check
- run: |
touch src/lib.rs
# need to disable extra_unused_lifetimes clippy because of rustler lifetime issues
# https://github.com/rusterlium/rustler/issues/428
cargo clippy --all-targets --all-features -- -D warnings -A clippy::extra_unused_lifetimes