[package] name = "blazesym-c" description = "C bindings for blazesym" version = "0.1.0-rc.2" edition = "2021" rust-version = "1.69" authors = ["Daniel Müller "] license = "BSD-3-Clause" repository = "https://github.com/libbpf/blazesym" readme = "README.md" categories = [ "algorithms", "api-bindings", "development-tools::debugging", "os::unix-apis", "value-formatting", ] keywords = [ "dwarf", "elf", "gsym", "stacktrace", "tracing", ] include = ["src/**/*", "include/**/*", "!**/examples/**/*", "LICENSE", "README.md", "CHANGELOG.md", "examples/input-struct-init.c", "build.rs", "cbindgen.toml"] autobenches = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] crate-type = ["cdylib", "staticlib", "lib"] [features] default = [ "dwarf", ] # Check C code documentation snippets. check-doc-snippets = [] # Enable this feature to enable blazesym's DWARF support. dwarf = ["blazesym/dwarf"] # Enable this feature to re-generate the library's C header file. An # up-to-date version of this header should already be available in the # include/ directory, so this feature is only necessary when APIs are # changed. generate-c-header = ["dep:cbindgen", "dep:which"] [[bench]] name = "capi" path = "benches/capi.rs" harness = false [build-dependencies] cbindgen = {version = "0.27", optional = true} which = {version = "7.0.0", optional = true} [dependencies] # Pinned, because we use #[doc(hidden)] APIs. # TODO: Enable `zstd` feature once we enabled it for testing in the main # crate. blazesym = {version = "=0.2.0-rc.2", path = "../", features = ["apk", "demangle", "dwarf", "gsym", "zlib"]} libc = "0.2.137" # TODO: Remove dependency one MSRV is 1.77. memoffset = "0.9" [target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies] blazesym = {version = "=0.2.0-rc.2", path = "../", features = ["bpf"]} [dev-dependencies] blazesym-c = {path = ".", features = ["check-doc-snippets"]} # TODO: Use 0.5.2 once released. criterion = {git = "https://github.com/bheisler/criterion.rs.git", rev = "b913e232edd98780961ecfbae836ec77ede49259", default-features = false, features = ["rayon", "cargo_bench_support"]} tempfile = "3.4" test-log = {version = "0.2.14", default-features = false, features = ["trace"]} test-tag = "0.1"