Skip to content

Re-vendor crates for cxx 1.0.194 upgrade. #30

Re-vendor crates for cxx 1.0.194 upgrade.

Re-vendor crates for cxx 1.0.194 upgrade. #30

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Remove Bazel cargo config
run: rm -f .cargo/config.toml
- name: Check formatting
run: cargo fmt --all --manifest-path rust/twitter-text/Cargo.toml -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Remove Bazel cargo config
run: rm -f .cargo/config.toml
- name: Run Clippy
run: cargo clippy --all-targets --manifest-path rust/twitter-text/Cargo.toml -- -D warnings