diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index ac6cdfe..767815a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -30,6 +30,7 @@ default = ["custom-protocol"] custom-protocol = ["tauri/custom-protocol"] +#Pay attention to the code size during optimization in order to generate smaller binary files. [profile.release] -opt-level = "z" # 或者 "s",以优化大小 +opt-level = "s" lto = true