[package]
edition = "2024"
rust-version = "1.88"
name = "xref-code"
version = "0.2.0"
authors = ["Alexander Panasenko <alex@prod.codes>"]
build = false
include = [
"Cargo.toml",
"Cargo.lock",
"README.md",
"LICENSE-MIT",
"LICENSE-APACHE",
"CITATION.cff",
"docs/logo-banner.svg",
"src/**",
"tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ultra blazing fast cross-references, layout recovery, slicing & pseudo-C for x86-64 ELF and Mach-O binaries"
homepage = "https://xrefcode.com"
documentation = "https://xrefcode.com"
readme = "README.md"
keywords = [
"elf",
"decompiler",
"reverse-engineering",
"disassembler",
"x86-64",
]
categories = [
"command-line-utilities",
"development-tools::debugging",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/alex09x/xref"
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/xref-v{ version }-{ target }.tar.gz"
pkg-fmt = "tgz"
bin-dir = "{ bin }{ binary-ext }"
[[bin]]
name = "xref"
path = "src/main.rs"
[[test]]
name = "fixture"
path = "tests/fixture.rs"
[[test]]
name = "macho"
path = "tests/macho.rs"
[[test]]
name = "mcp"
path = "tests/mcp.rs"
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
[dependencies.gimli]
version = "0.31"
features = [
"read",
"std",
]
default-features = false
[dependencies.iced-x86]
version = "1.21"
features = [
"std",
"decoder",
"intel",
"instr_info",
]
default-features = false
[dependencies.object]
version = "0.36"
features = [
"read_core",
"elf",
"macho",
"std",
]
default-features = false
[dependencies.rayon]
version = "1.10"
[dependencies.schemars]
version = "1"
features = ["derive"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.11"
[dev-dependencies.rmcp]
version = "3.8"
features = [
"client",
"transport-child-process",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
[lints.clippy.complexity]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.expect_used]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.clippy.unwrap_used]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"