From 17b78f8cb127817b93f7e6ced7e55d8748806a80 Mon Sep 17 00:00:00 2001 From: Sophie Forrest Date: Fri, 30 Aug 2024 23:35:45 +1200 Subject: feat: bar engines behind features, optimise release and small profiles --- Cargo.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index b3403d7..f817db1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,3 +19,22 @@ bigint-engine = ["dep:byteorder", "dep:widestring"] engine-u16 = ["bigint-engine"] engine-u32 = ["bigint-engine"] utilities = [] + +[profile.release] +codegen-units = 1 +debug = 0 +incremental = false +lto = true +opt-level = 3 +panic = "abort" +strip = "symbols" + +[profile.small] +inherits = "release" +codegen-units = 1 +debug = 0 +incremental = false +lto = true +opt-level = "z" +panic = "abort" +strip = "symbols" -- cgit 1.4.1