diff --git a/Cargo.lock b/Cargo.lock index 104f336..b9433d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index 7de1d01..38e80f0 100644 --- a/Cargo.toml +++ b/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 diff --git a/dust-cli/src/main.rs b/dust-cli/src/main.rs index 0ebdebd..934d574 100644 --- a/dust-cli/src/main.rs +++ b/dust-cli/src/main.rs @@ -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); } } } diff --git a/dust-lang/Cargo.toml b/dust-lang/Cargo.toml index 09ca4f6..0edf1b0 100644 --- a/dust-lang/Cargo.toml +++ b/dust-lang/Cargo.toml @@ -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"