Use lto and single codegen unit for release

This commit is contained in:
Edward Shen 2021-02-24 13:09:52 -05:00
parent 3094dfd2c0
commit 48d7e1b65b
Signed by: edward
GPG key ID: 19182661E818369F

View file

@ -6,17 +6,17 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
nom = { version = "6", default_features = false, features = ["std"] }
bstr = "0.2.15"
[features]
serde = ["serde_crate"]
[dependencies.serde_crate]
package = "serde"
optional = true
version = " 1"
[dependencies]
bstr = "0.2.15"
nom = { version = "6", default_features = false, features = ["std"] }
serde_crate = { version = "1", package = "serde", optional = true}
[dev-dependencies]
serde_derive = "1.0"
[features]
serde = ["serde_crate"]
[profile.release]
lto = true
codegen-units = 1