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
|
# 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
|
Reference in a new issue