diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index befb6a6..3d53b6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: node-version: '20' - name: Build frontend run: cd web && npm ci && npm run build - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.88.0 with: components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.88.0 - uses: Swatinem/rust-cache@v2 - name: Install cargo-audit run: cargo install cargo-audit --locked @@ -53,7 +53,7 @@ jobs: node-version: '20' - name: Build frontend run: cd web && npm ci && npm run build - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.88.0 - uses: Swatinem/rust-cache@v2 - name: Test run: cargo test diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 337e9ae..09c2eca 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@1.88.0 if: ${{ steps.secret-check.outputs.configured == 'true' }} - uses: Swatinem/rust-cache@v2 if: ${{ steps.secret-check.outputs.configured == 'true' }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e2d4da..21a3b9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,7 +110,7 @@ jobs: run: cd web && npm ci && npm run build - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@1.88.0 with: targets: ${{ matrix.target }} diff --git a/Cargo.toml b/Cargo.toml index 08e84c7..bb93410 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "diffscope" version = "0.5.3" edition = "2021" +rust-version = "1.88" authors = ["Jonathan Haas "] description = "A composable code review engine with smart analysis, confidence scoring, and professional reporting" license = "Apache-2.0" diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..7855e6d --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.88.0" +components = ["rustfmt", "clippy"] diff --git a/src/main.rs b/src/main.rs index 16f7cca..7c2779f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,5 @@ +#![allow(clippy::uninlined_format_args)] + mod adapters; mod commands; mod config; diff --git a/web/.gitignore b/web/.gitignore index a547bf3..12990e2 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -8,7 +8,8 @@ pnpm-debug.log* lerna-debug.log* node_modules -dist +dist/* +!dist/.gitkeep dist-ssr *.local diff --git a/web/dist/.gitkeep b/web/dist/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/web/dist/.gitkeep @@ -0,0 +1 @@ +