Skip to content

Commit

Permalink
capi: Make 'bpf' feature conditional on target OS
Browse files Browse the repository at this point in the history
Enable the 'bpf' feature on the main library only for target OSs that
support it.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o committed Oct 30, 2024
1 parent 3d6547f commit 2472f5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ which = {version = "6.0.0", optional = true}
# 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.1", path = "../", features = ["apk", "bpf", "demangle", "dwarf", "gsym", "zlib"]}
blazesym = {version = "=0.2.0-rc.1", 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.1", path = "../", features = ["bpf"]}

[dev-dependencies]
blazesym-c = {path = ".", features = ["check-doc-snippets"]}
# TODO: Use 0.5.2 once released.
Expand Down

0 comments on commit 2472f5c

Please sign in to comment.