# 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 = "2021" rust-version = "1.69" name = "blazesym" version = "0.2.0-rc.2" authors = [ "Daniel Müller ", "Kui-Feng ", ] build = "build.rs" exclude = ["data/kallsyms.xz"] autobins = false autoexamples = false autotests = false autobenches = false description = "blazesym is a library for address symbolization and related tasks." readme = "README.md" keywords = [ "dwarf", "elf", "gsym", "stacktrace", "tracing", ] categories = [ "algorithms", "api-bindings", "development-tools::debugging", "os::unix-apis", "value-formatting", ] license = "BSD-3-Clause" repository = "https://github.com/libbpf/blazesym" [package.metadata.docs.rs] features = [ "apk", "backtrace", "breakpad", "demangle", "dwarf", "gsym", ] rustdoc-args = [ "--cfg", "docsrs", ] [profile.bench] lto = false codegen-units = 256 [profile.release] opt-level = 3 lto = true codegen-units = 1 debug = 2 [lib] name = "blazesym" path = "src/lib.rs" [[example]] name = "addr2ln" path = "examples/addr2ln.rs" [[example]] name = "addr2ln_pid" path = "examples/addr2ln_pid.rs" [[example]] name = "backtrace" path = "examples/backtrace.rs" [[example]] name = "inspect-mangled" path = "examples/inspect-mangled.rs" required-features = [ "demangle", "blazesym-dev/generate-unit-test-files", ] [[example]] name = "normalize-virt-offset" path = "examples/normalize-virt-offset.rs" [[test]] name = "allocs" path = "tests/allocs.rs" [[test]] name = "blazesym" path = "tests/blazesym.rs" [[test]] name = "empty_perf_map" path = "tests/empty_perf_map.rs" [[test]] name = "error_backtrace" path = "tests/error_backtrace.rs" [[test]] name = "error_no_backtrace1" path = "tests/error_no_backtrace1.rs" [[test]] name = "error_no_backtrace2" path = "tests/error_no_backtrace2.rs" [[test]] name = "permission" path = "tests/permission.rs" [[test]] name = "permissionless" path = "tests/permissionless.rs" [[bench]] name = "main" path = "benches/main.rs" harness = false [dependencies.cpp_demangle] version = "0.4" optional = true [dependencies.gimli] version = "0.31" optional = true [dependencies.libc] version = "0.2.137" [dependencies.memmap2] version = "0.9" default-features = false [dependencies.miniz_oxide] version = "0.8" features = [ "simd", "with-alloc", ] optional = true default-features = false [dependencies.nom] version = "7" optional = true [dependencies.rustc-demangle] version = "0.1.4" optional = true [dependencies.tracing] version = "0.1.38" features = ["attributes"] optional = true default-features = false [dependencies.zstd] version = "0.13.1" optional = true default-features = false [dev-dependencies.addr2line] version = "=0.24.2" [dev-dependencies.anyhow] version = "1.0.71" [dev-dependencies.scopeguard] version = "1.2" [dev-dependencies.stats_alloc] version = "0.1.1" features = ["nightly"] [dev-dependencies.tempfile] version = "3.4" [dev-dependencies.test-log] version = "0.2.14" features = ["trace"] default-features = false [dev-dependencies.test-tag] version = "0.1.3" [features] apk = [] backtrace = [] bpf = [] breakpad = ["dep:nom"] default = [ "backtrace", "demangle", "dwarf", "zlib", ] demangle = [ "dep:cpp_demangle", "dep:rustc-demangle", ] dwarf = ["dep:gimli"] gsym = [] nightly = [] tracing = ["dep:tracing"] zlib = ["dep:miniz_oxide"] zstd = ["dep:zstd"] [target.'cfg(target_os = "linux")'.dev-dependencies._simd-adler32_unused] version = "0.3.3" package = "simd-adler32" [target.'cfg(target_os = "linux")'.dev-dependencies.libbpf-rs] version = "0.24" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(has_procmap_query_ioctl)", "cfg(has_large_test_files)", ]