1[package]
2authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "Philip Craig <philipjcraig@gmail.com>", "Jon Gjengset <jon@thesquareplanet.com>", "Noah Bergbauer <noah.bergbauer@tum.de>"]
3description = "A cross-platform symbolication library written in Rust, using `gimli`"
4documentation = "https://docs.rs/addr2line"
5keywords = ["DWARF", "debug", "elf", "symbolicate", "atos"]
6categories = ["development-tools::debugging", "command-line-utilities"]
7license = "Apache-2.0/MIT"
8name = "addr2line"
9readme = "./README.md"
10repository = "https://github.com/gimli-rs/addr2line"
11version = "0.14.0"
12exclude = ["/benches/*", "/fixtures/*"]
13
14[badges]
15travis-ci = { repository = "gimli-rs/addr2line" }
16
17[dependencies]
18gimli = { version = "0.23", default-features = false, features = ["read"] }
19fallible-iterator = { version = "0.2", default-features = false, optional = true }
20object = { version = "0.22", default-features = false, features = ["read"], optional = true }
21smallvec = { version = "1", default-features = false, optional = true }
22rustc-demangle = { version = "0.1", optional = true }
23cpp_demangle = { version = "0.3", default-features = false, optional = true }
24
25# Internal feature, only used when building as part of libstd, not part of the
26# stable interface of this crate.
27core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
28alloc = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-alloc' }
29compiler_builtins = { version = '0.1.2', optional = true }
30
31[dev-dependencies]
32memmap = "0.7"
33clap = "2"
34backtrace = "0.3.13"
35findshlibs = "0.7"
36rustc-test = "0.3"
37auxiliary = { path = "tests/auxiliary" }
38
39[profile.release]
40debug = true
41[profile.bench]
42debug = true
43codegen-units = 1
44
45[features]
46default = ["rustc-demangle", "cpp_demangle", "std-object", "fallible-iterator", "smallvec"]
47std = ["gimli/std"]
48std-object = ["std", "object", "object/std", "object/compression", "gimli/endian-reader"]
49
50# Internal feature, only used when building as part of libstd, not part of the
51# stable interface of this crate.
52rustc-dep-of-std = ['core', 'alloc', 'compiler_builtins', 'gimli/rustc-dep-of-std']
53
54[[test]]
55name = "output_equivalence"
56harness = false
57required-features = ["std-object"]
58
59[[test]]
60name = "correctness"
61required-features = ["default"]
62
63[[test]]
64name = "parse"
65required-features = ["std-object"]
66
67[[example]]
68name = "addr2line"
69required-features = ["std-object"]
70