# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
name = "addr2line"
version = "0.19.0"
exclude = [
    "/benches/*",
    "/fixtures/*",
    ".github",
]
description = "A cross-platform symbolication library written in Rust, using `gimli`"
documentation = "https://docs.rs/addr2line"
readme = "./README.md"
keywords = [
    "DWARF",
    "debug",
    "elf",
    "symbolicate",
    "atos",
]
categories = ["development-tools::debugging"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/gimli-rs/addr2line"

[profile.bench]
codegen-units = 1
debug = true

[profile.release]
debug = true

[[example]]
name = "addr2line"
required-features = ["std-object"]

[[test]]
name = "output_equivalence"
harness = false
required-features = ["std-object"]

[[test]]
name = "correctness"
required-features = ["default"]

[[test]]
name = "parse"
required-features = ["std-object"]

[dependencies.alloc]
version = "1.0.0"
optional = true
package = "rustc-std-workspace-alloc"

[dependencies.compiler_builtins]
version = "0.1.2"
optional = true

[dependencies.core]
version = "1.0.0"
optional = true
package = "rustc-std-workspace-core"

[dependencies.cpp_demangle]
version = "0.4"
features = ["alloc"]
optional = true
default-features = false

[dependencies.fallible-iterator]
version = "0.2"
optional = true
default-features = false

[dependencies.gimli]
version = "0.27.0"
features = ["read"]
default-features = false

[dependencies.object]
version = "0.30.0"
features = ["read"]
optional = true
default-features = false

[dependencies.rustc-demangle]
version = "0.1"
optional = true

[dependencies.smallvec]
version = "1"
optional = true
default-features = false

[dev-dependencies.backtrace]
version = "0.3.13"

[dev-dependencies.clap]
version = "3.1.6"

[dev-dependencies.findshlibs]
version = "0.10"

[dev-dependencies.memmap2]
version = "0.5.5"

[dev-dependencies.rustc-test]
version = "0.3"

[dev-dependencies.typed-arena]
version = "2"

[features]
default = [
    "rustc-demangle",
    "cpp_demangle",
    "std-object",
    "fallible-iterator",
    "smallvec",
]
rustc-dep-of-std = [
    "core",
    "alloc",
    "compiler_builtins",
    "gimli/rustc-dep-of-std",
]
std = ["gimli/std"]
std-object = [
    "std",
    "object",
    "object/std",
    "object/compression",
    "gimli/endian-reader",
]
