Skip to content

Add a safe FFI wrapper in wireguard-go-rs #5333

Add a safe FFI wrapper in wireguard-go-rs

Add a safe FFI wrapper in wireguard-go-rs #5333

Workflow file for this run

---
name: Rust - Check formatting
on:
pull_request:
paths:
- .github/workflows/rustfmt.yml
- rustfmt.toml
- '**/*.rs'
workflow_dispatch:
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout wireguard-go submodule
run: git submodule update --init --depth=1 wireguard-go-rs/libwg/wireguard-go
- name: Install nightly Rust
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
components: rustfmt
default: true
- name: Check formatting
run: |-
rustfmt --version
cargo fmt -- --check