diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 725db19..51f179a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,6 @@ jobs: run: cargo install --debug cargo-deb - name: Build run: | - echo 'lto = "fat"' >> Cargo.toml env RUSTFLAGS="-C link-arg=-s" cargo build --release mkdir doh-proxy mv target/release/doh-proxy doh-proxy/ diff --git a/Cargo.toml b/Cargo.toml index 30a39d4..5639c26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,6 +41,6 @@ priority = "optional" [profile.release] codegen-units = 1 incremental = false -lto = true +lto = "fat" opt-level = 3 panic = "abort"