diff --git a/Cargo.lock b/Cargo.lock index b2aa4a0a..4405b364 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -346,7 +346,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 1.1.0", "shlex", "syn 2.0.66", "which", @@ -1930,6 +1930,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" + [[package]] name = "rustc-hex" version = "2.1.0" @@ -2299,7 +2305,7 @@ dependencies = [ "index_vec", "indexmap", "parking_lot", - "rustc-hash", + "rustc-hash 2.0.0", "smallvec", ] diff --git a/Cargo.toml b/Cargo.toml index a4413ef4..0efabc08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,11 +38,19 @@ unnameable-types = "warn" all = "warn" [profile.release] -strip = "debuginfo" +opt-level = 3 lto = "thin" +debug = "line-tables-only" +strip = true panic = "abort" -codegen-units = 1 -incremental = false +codegen-units = 16 + +# Use the `--profile profiling` flag to show symbols in release mode. +# e.g. `cargo build --profile profiling` +[profile.profiling] +inherits = "release" +debug = 2 +strip = false [workspace.dependencies] # compiler crates @@ -120,8 +128,8 @@ itertools = "0.13" libc = "0.2" md-5 = "0.10" memchr = "2.7" -rustc-hash = "1.1.0" -scoped-tls = "1.0.1" +rustc-hash = "2.0" +scoped-tls = "1.0" semver = "1.0" smallvec = "1" tikv-jemallocator = "0.5.4"