# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "bpfanalysis"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust analysis primitives for eBPF verifier diagnostics"
readme = false
keywords = [
    "ebpf",
    "bpf",
    "verifier",
    "analysis",
]
categories = [
    "development-tools::debugging",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/eunomia-bpf/bpfix"

[features]
analysis = ["dep:libbpf-sys"]
cli = [
    "analysis",
    "dep:clap",
]
default = [
    "analysis",
    "object-analysis",
]
object-analysis = [
    "analysis",
    "dep:object",
]

[lib]
name = "bpfanalysis"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.libbpf-sys]
version = "1.7.0"
optional = true

[dependencies.object]
version = "0.36"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
