# 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]
edition = "2024"
rust-version = "1.88"
name = "unwinding"
version = "0.2.8"
authors = ["Gary Guo <gary@garyguo.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unwinding library in Rust and for Rust"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/nbdd0121/unwinding/"

[package.metadata.docs.rs]
features = ["panic-handler"]

[features]
alloc = []
default = [
    "unwinder",
    "dwarf-expr",
    "hide-trace",
    "fde-phdr-dl",
    "fde-registry",
]
dwarf-expr = []
fde-custom = []
fde-gnu-eh-frame-hdr = []
fde-phdr = ["libc"]
fde-phdr-aux = ["fde-phdr"]
fde-phdr-dl = ["fde-phdr"]
fde-registry = ["alloc"]
fde-static = []
hide-trace = []
libc = ["dep:libc"]
panic = [
    "panicking",
    "alloc",
]
panic-handler = [
    "print",
    "panic",
]
panic-handler-dummy = []
panicking = []
personality = []
personality-dummy = []
print = ["libc"]
rustc-dep-of-std = [
    "dep:core",
    "gimli/rustc-dep-of-std",
]
spin = ["dep:spin"]
system-alloc = []
unwinder = []

[lib]
name = "unwinding"
path = "src/lib.rs"

[[test]]
name = "compile_tests"
path = "tests/compile_tests.rs"

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

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

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.spin]
version = "0.9.8"
features = [
    "mutex",
    "spin_mutex",
]
optional = true
default-features = false

[profile.release]
debug = 2
