-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathCargo.toml
53 lines (46 loc) · 1.87 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
# A development-only package for generating blazesym test artifacts.
[package]
name = "blazesym-dev"
version = "0.0.0"
edition = "2021"
authors = ["Daniel Müller <[email protected]>"]
publish = false
[lib]
path = "lib.rs"
[features]
# Enable this feature to enable support for zstd decompression.
zstd = ["dep:zstd"]
# Enable this feature to opt in to the generation of unit test files.
# Having these test files created is necessary for running tests.
generate-unit-test-files = [
"dep:tempfile",
"dump_syms",
"libbpf-sys/vendored-libbpf",
"xz2",
"zip",
]
# Enable this feature to opt in to the generation of large benchmark
# files (also used for regression testing).
generate-large-test-files = ["dump_syms", "reqwest", "xz2"]
# Disable generation of test files. This feature takes preference over
# `generate-unit-test-files`.
dont-generate-unit-test-files = []
[build-dependencies]
dump_syms = {version = "2.3", optional = true, default-features = false}
libc = "0.2.137"
reqwest = {version = "0.12.0", optional = true, features = ["blocking"]}
tempfile = {version = "3.3", optional = true}
vmlinux = {git = "https://github.com/libbpf/vmlinux.h.git", rev = "a9c092aa771310bf8b00b5018f7d40a1fdb6ec82"}
xz2 = {version = "0.1.7", optional = true}
zip = {version = "2.0.0", optional = true, default-features = false}
zstd = {version = "0.13.1", default-features = false, optional = true}
[dependencies]
# TODO: Enable `zstd` feature once toolchain support for it is more
# widespread (enabled by default in `ld`). Remove conditionals in
# test code alongside.
blazesym = {path = "../", features = ["apk", "breakpad", "gsym", "tracing", "test"]}
libc = "0.2.137"
[target.'cfg(target_os = "linux")'.dependencies]
libbpf-rs = "0.24"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.build-dependencies]
libbpf-sys = {version = "1.4.1", default-features = false, optional = true}