diff --git a/.github/actions/setup-rust/action.yaml b/.github/actions/setup-rust/action.yaml index 8498f184a..844ebe49f 100644 --- a/.github/actions/setup-rust/action.yaml +++ b/.github/actions/setup-rust/action.yaml @@ -34,27 +34,6 @@ runs: shell: bash run: echo '{}' | npx -y mustache - .cargo/config.toml.mustache .cargo/config.toml - - name: Turn Off Debuginfo and bump opt-level - shell: bash - if: ${{ runner.os != 'Windows' }} - run: | - sed '/\[profile.dev]/a\ - debug = 0 - ' Cargo.toml > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml - - sed '/\[profile.dev]/a\ - opt-level=1 - ' Cargo.toml > Cargo.toml.tmp && mv Cargo.toml.tmp Cargo.toml - - - name: Turn Off Debuginfo and bump opt-level - if: ${{ runner.os == 'Windows' }} - shell: powershell - run: | - (Get-Content Cargo.toml) -replace '\[profile.dev\]', '[profile.dev] - debug = 0' | Set-Content Cargo.toml - (Get-Content Cargo.toml) -replace '\[profile.dev\]', '[profile.dev] - opt-level=1' | Set-Content Cargo.toml - - name: Restore cached Prisma codegen id: cache-prisma-restore uses: actions/cache/restore@v4 diff --git a/Cargo.toml b/Cargo.toml index 467e90178..572ca0e80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -108,6 +108,12 @@ pdfium-render = { git = "https://github.com/fogodev/pdfium-render.git", rev = "e [profile.dev] # Make compilation faster on macOS split-debuginfo = "unpacked" +opt-level = 0 +debug = 0 +strip = "none" +lto = false +codegen-units = 256 +incremental = true # Set the settings for build scripts and proc-macros. [profile.dev.build-override]