1
0

Reconfigure the "release" profile; Add the "perf" profile

This commit is contained in:
Jeff 2024-12-04 15:05:20 -05:00
parent 1c3c30ac21
commit 78c9b65531
4 changed files with 18 additions and 5 deletions

2
Cargo.lock generated
View File

@ -1,6 +1,6 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
version = 4
[[package]]
name = "aho-corasick"

View File

@ -14,3 +14,14 @@ repository = "https://git.jeffa.io/jeff/dust.git"
opt-level = 1
[profile.dev.package."*"]
opt-level = 3
[profile.release]
codegen-units = 1
lto = "fat"
opt-level = 3
panic = "abort"
strip = true
[profile.perf]
inherits = "release"
strip = false

View File

@ -110,7 +110,7 @@ fn main() {
let chunk = match compile(&source) {
Ok(chunk) => chunk,
Err(error) => {
eprintln!("{}", error.report());
eprintln!("{}", error);
return;
}
@ -130,7 +130,7 @@ fn main() {
let tokens = match lex(&source) {
Ok(tokens) => tokens,
Err(error) => {
eprintln!("{}", error.report());
eprintln!("{}", error);
return;
}
@ -150,7 +150,7 @@ fn main() {
}
Ok(None) => {}
Err(error) => {
eprintln!("{}", error.report());
eprintln!("{}", error);
}
}
}

View File

@ -19,7 +19,9 @@ getrandom = { version = "0.2", features = [
"js",
] } # Indirect dependency, for wasm builds
smallvec = { version = "1.13.2", features = ["serde"] }
smartstring = { version = "1.0.1", features = ["serde"], default-features = false }
smartstring = { version = "1.0.1", features = [
"serde",
], default-features = false }
[dev-dependencies]
env_logger = "0.11.5"