Use lto and single codegen unit for release
This commit is contained in:
parent
3094dfd2c0
commit
48d7e1b65b
1 changed files with 9 additions and 9 deletions
18
Cargo.toml
18
Cargo.toml
|
@ -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
|
Reference in a new issue