Re-vendor crates for cxx 1.0.194 upgrade. #30
This file contains hidden or 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: [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 |