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