-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
38 lines (31 loc) · 1.19 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
[package]
name = "tracers-libelf-sys"
version = "0.2.0"
authors = ["Adam Nelson <anelson@127.io>"]
edition = "2018"
license = "LGPL-3.0-or-later"
links = "elf"
description = """
Exposes libelf as a Rust crate to ensure libstapsdt-sys is able to find libelf in the path.
Never use this crate directly; use `tracers` and let it determine the correct implementation at build time.
"""
repository = "https://github.com/anelson/tracers"
[features]
# by default, building libelf is disabled. It must be explicitly enabled
default = []
# if this feature is enabled, then the build.rs will try to build the libelf binaries.
# if the build fails, this crate's build will still succeed
#
# The success or failure of the build will be communicated via a variable in cargo,
# which dependent crates can resolve with DEP_LIBELF_SYS_SUCCEEDED
enabled = ["libz-sys", "libc"]
# If this feature is enabled, it implies `enabled`, and also will cause the build to fail if
# libelf cannot be built
required = ["libz-sys", "libc"]
[dependencies]
libz-sys = { version = "1.0.25", optional = true }
libc = { version = "0.2.65", optional = true }
[build-dependencies]
pkg-config = "0.3.17"
cc = "1.0.47"
failure = "0.1.6"