Reconfigure the "release" profile; Add the "perf" profile
This commit is contained in:
parent
1c3c30ac21
commit
78c9b65531
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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"
|
||||
|
11
Cargo.toml
11
Cargo.toml
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user