diff --git a/Cargo.toml b/Cargo.toml index 24ae8a3..dafc7fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,10 @@ crate-type = ["cdylib"] [dependencies] zed_extension_api = "0.0.6" + +[profile.release] +codegen-units = 1 # Allows LLVM to perform better optimization. +lto = true # Enables link-time-optimizations. +opt-level = "s" # Prioritizes small binary size. Use `3` if you prefer speed. +strip = true # Ensures debug symbols are removed. +