-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (58 loc) · 1.71 KB
/
Copy pathCargo.toml
File metadata and controls
64 lines (58 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[package]
name = "xrefs"
version = "0.1.0"
edition = "2021"
rust-version = "1.87"
default-run = "xr"
description = "Ultra-fast parallel cross-reference extractor for stripped binaries (ELF, Mach-O, PE, dyld cache)"
authors = ["Paolo Montesel"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/thebabush/xrefs"
homepage = "https://github.com/thebabush/xrefs"
readme = "README.md"
keywords = ["reverse-engineering", "xref", "disassembler", "binary", "macho"]
categories = ["command-line-utilities", "development-tools"]
# Keep the published crate lean: dev-only scripts, internal notes, profiling
# artifacts, and the Claude Code skill live in the repo but not in the tarball.
exclude = ["scripts/", "docs/TODO.md", "flamegraph.svg", ".claude/"]
[[bin]]
name = "xr"
path = "src/main.rs"
[lib]
name = "xr"
path = "src/lib.rs"
[dependencies]
# ARM64 decoding
bad64 = "0.12"
# x86-64 decoding (instr_info needed for OpAccess to detect read vs write)
iced-x86 = { version = "1", features = ["instr_info"] }
# Parallelism
rayon = "1"
# Memory mapping
memmap2 = "0.9"
# Binary parsing (Mach-O, ELF)
goblin = { version = "0.9", default-features = true }
# dyld shared cache parsing
dylex = "0.4"
# CLI
clap = { version = "4", features = ["derive"] }
# Error handling
anyhow = "1"
# Fast hash for shard dispatch
rustc-hash = "2"
# Fast non-crypto hash for dedup sets
ahash = "0.8"
# JSON for ground-truth loading
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[dev-dependencies]
tempfile = "3"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
# `cargo build --profile profiling` — release speed with debug symbols for flamegraphs.
[profile.profiling]
inherits = "release"
debug = 2
split-debuginfo = "off"