diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-08-30 23:35:45 +1200 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-08-30 23:35:45 +1200 |
| commit | 17b78f8cb127817b93f7e6ced7e55d8748806a80 (patch) | |
| tree | 22bccb1307c078da4fc6e0873c8a8c2d081408ab /Cargo.toml | |
| parent | 13b95941183666fadd090314e4e9af33283084cd (diff) | |
feat: bar engines behind features, optimise release and small profiles
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 19 |
1 files changed, 19 insertions, 0 deletions
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" |