diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a66e92..281c030 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist + args: --profile dist --out dist manylinux: 2_28 - uses: actions/upload-artifact@v7 with: diff --git a/Cargo.toml b/Cargo.toml index 65783aa..a2402fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,20 @@ path = "src/main.rs" [dependencies] tree-sitter = "0.25" tree-sitter-rust = "0.24" + +[profile.release] +lto = false +codegen-units = 16 + +[profile.release.package.fastfmt] +incremental = true + +[profile.dist] +inherits = "release" +lto = true +incremental = false +codegen-units = 1 +strip = true + +[profile.dist.package.fastfmt] +incremental = false