From 48d7e1b65b25d71e708cec65e1d5064e0741d55b Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Wed, 24 Feb 2021 13:09:52 -0500 Subject: [PATCH] Use lto and single codegen unit for release --- Cargo.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fea07b3..0c90cbf 100644 --- a/Cargo.toml +++ b/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 \ No newline at end of file