mirror of
https://github.com/microsoft/edit.git
synced 2026-06-13 12:02:16 -05:00
50 lines
1.5 KiB
TOML
50 lines
1.5 KiB
TOML
[package]
|
|
name = "edit"
|
|
version = "0.2.0"
|
|
edition = "2024"
|
|
|
|
[features]
|
|
debug-layout = []
|
|
debug-latency = []
|
|
|
|
# `opt-level = "s"` may be useful in the future as it significantly reduces binary size.
|
|
# The primary problem are the ucd and utf8 modules which take a 20% performance hit.
|
|
[profile.release]
|
|
codegen-units = 1 # reduces binary size by ~2%
|
|
debug = "full" # No one needs an undebuggable release binary
|
|
debug-assertions = true # TODO: Temporary while I test this
|
|
lto = true # reduces binary size by ~14%
|
|
panic = "abort" # reduces binary size by ~50% in combination with -Zbuild-std-features=panic_immediate_abort
|
|
split-debuginfo = "packed" # generates a seperate *.dwp/*.dSYM so the binary can get stripped
|
|
strip = "symbols" # See split-debuginfo - allows us to drop the size by ~65%
|
|
|
|
[profile.bench]
|
|
codegen-units = 16 # Make compiling criterion faster (16 is the default, but profile.release sets it to 1)
|
|
lto = "thin" # Similarly, speed up linking by a ton
|
|
|
|
[dependencies]
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies.windows-sys]
|
|
version = "0.59"
|
|
features = [
|
|
"Win32_Globalization",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Console",
|
|
"Win32_System_Diagnostics_Debug",
|
|
"Win32_System_IO",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Memory",
|
|
"Win32_System_Threading",
|
|
]
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.5"
|
|
|
|
[[bench]]
|
|
name = "lib"
|
|
harness = false
|