From 68e4fdaded48bb61e9b140ec39a7845ca2d879a2 Mon Sep 17 00:00:00 2001 From: b1n Date: Tue, 25 Jun 2024 15:43:32 +0800 Subject: [PATCH] chore: static linking for x86_64-pc-windows-msvc --- .cargo/config.toml | 2 ++ Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..ac2b23f --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-C", "target-feature=+crt-static"] diff --git a/Cargo.toml b/Cargo.toml index 2a076a6..41988d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,6 +33,6 @@ features = ["advanced", "svg", "tokio", "wgpu"] [profile.release] strip = true -opt-level = "z" +opt-level = 3 lto = true codegen-units = 1