[package]
name = "wild-linker"
description = "A very fast linker for Linux"
version.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
edition.workspace = true

[[bin]]
name = "wild"
path = "src/main.rs"

[dependencies]
libwild = { path = "../libwild", version = "0.8.0" }

# This is off by default, since it doesn't appear to help. However, if you're linking against musl
# libc, which has a comparatively slow allocator, then enabling this does help. To enable this,
# build with `--features mimalloc`.
mimalloc = { workspace = true, optional = true }

dhat = { workspace = true, optional = true }

[dev-dependencies]
ar = { workspace = true }
itertools = { workspace = true }
linker-diff = { path = "../linker-diff" }
object = { workspace = true }
os_info = { workspace = true }
rstest = { workspace = true }
serde = { workspace = true }
serde-keyvalue = { workspace =  true }
strum = { workspace = true }
tempfile = { workspace = true }
toml = { workspace = true }
wait-timeout = { workspace = true }
which = { workspace = true }

[features]
default = ["fork"]

fork = ["libwild/fork"]

perfetto = ["libwild/perfetto"]

# external tests
external_tests = ["mold_tests"]
mold_tests = []
