diff --git a/Cargo.toml b/Cargo.toml index 1e1d909a..61293a20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -214,10 +214,14 @@ bedrock = ["dep:aws-config", "dep:aws-sdk-bedrockruntime", "dep:aws-smithy-types name = "html_to_markdown" required-features = ["html-to-markdown"] +[profile.release] +strip = true # Remove debug symbols from release binaries + # The profile that 'cargo dist' will build with [profile.dist] inherits = "release" -lto = "thin" +lto = "fat" # Full cross-crate LTO (slow build, better codegen) +codegen-units = 1 # Single codegen unit for maximum optimization # Config for 'dist' [workspace.metadata.dist]