diff --git a/.cargo/config.toml b/.cargo/config.toml index 35049cbc..b7ba6ce6 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,5 @@ [alias] xtask = "run --package xtask --" + +[build] +rustflags = ["-C", "target-cpu=native"] diff --git a/Cargo.toml b/Cargo.toml index 837f9006..27fa4b56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,13 @@ [workspace] resolver = "2" -members = ["brush-shell", "brush-parser", "brush-core", "brush-interactive", "fuzz", "xtask"] +members = [ + "brush-shell", + "brush-parser", + "brush-core", + "brush-interactive", + "fuzz", + "xtask", +] default-members = ["brush-shell"] [workspace.package] @@ -42,6 +49,6 @@ struct_excessive_bools = "allow" [profile.release] strip = "debuginfo" -opt-level = "z" -lto = true +lto = "fat" codegen-units = 1 +panic = "abort"