Optimize release build profile

This commit is contained in:
Gabriel Tofvesson 2023-02-25 23:33:40 +01:00
parent 76bcd86117
commit e56badd200
No known key found for this signature in database
GPG Key ID: 6F1345DF28EDA13E

View File

@ -9,4 +9,19 @@ edition = "2021"
openai-api = "0.1.5-alpha.0" openai-api = "0.1.5-alpha.0"
[patch.crates-io] [patch.crates-io]
openai-api = { path = "./openai-api-rust" } openai-api = { path = "./openai-api-rust" }
[build]
jobs = 1
[profile.release]
opt-level = 3
debug = false
lto = true
debug-assertions = false
codegen-units = 1
panic = "abort"
overflow-checks = false
incremental = false
strip = true
split-debuginfo = "packed"