-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathCargo.toml
78 lines (70 loc) · 2.46 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[package]
name = "blazesym-c"
description = "C bindings for blazesym"
version = "0.1.0-rc.2"
edition.workspace = true
rust-version.workspace = true
authors = ["Daniel Müller <deso@posteo.net>"]
license.workspace = true
repository.workspace = true
homepage.workspace = true
readme = "README.md"
documentation = "https://docs.rs/blazesym-c"
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.28", 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", "tracing", "zlib"]}
libc = "0.2.137"
# TODO: Remove dependency one MSRV is 1.77.
memoffset = "0.9"
tracing = "0.1"
tracing-subscriber = {version = "0.3", default-features = false, features = ["fmt"]}
[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"