libbpf-cargo 0.26.0

Cargo plugin to build bpf programs
Documentation
# 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"
rust-version = "1.82"
name = "libbpf-cargo"
version = "0.26.0"
authors = [
    "Daniel Xu <dxu@dxuuu.xyz>",
    "Daniel Müller <deso@posteo.net>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cargo plugin to build bpf programs"
homepage = "https://github.com/libbpf/libbpf-rs"
documentation = "https://docs.rs/libbpf-cargo"
readme = "README.md"
keywords = [
    "bpf",
    "ebpf",
    "libbpf",
]
license = "LGPL-2.1-only OR BSD-2-Clause"
repository = "https://github.com/libbpf/libbpf-rs"

[badges.maintenance]
status = "actively-developed"

[features]
default = ["libbpf-rs/default"]

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

[[bin]]
name = "cargo-libbpf"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.40"

[dependencies.cargo_metadata]
version = "0.19.1"

[dependencies.clap]
version = "4.0.32"
features = ["derive"]

[dependencies.libbpf-rs]
version = "0.26"
default-features = false

[dependencies.libbpf-sys_restricted]
version = ">=1.5.0, <=1.6.3"
default-features = false
package = "libbpf-sys"

[dependencies.memmap2]
version = "0.9"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tempfile]
version = "3.3"

[dependencies.tracing]
version = "0.1"
default-features = false

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "ansi",
    "chrono",
    "fmt",
]
default-features = false

[dev-dependencies.goblin]
version = "0.9"

[dev-dependencies.indoc]
version = "2"

[dev-dependencies.test-log]
version = "0.2.16"
features = ["trace"]
default-features = false

[lints.clippy]
absolute-paths = "warn"
clone-on-ref-ptr = "warn"
collapsible-else-if = "allow"
collapsible-if = "allow"
dbg-macro = "warn"
doc-markdown = "warn"
fn-to-numeric-cast = "allow"
join-absolute-paths = "warn"
large-enum-variant = "warn"
let-and-return = "allow"
let-unit-value = "allow"
module-inception = "allow"
redundant-closure-for-method-calls = "warn"
type-complexity = "allow"
unchecked-time-subtraction = "warn"
uninlined-format-args = "warn"
use-self = "warn"
wildcard-imports = "warn"

[lints.rust]
deprecated-safe = "warn"
future-incompatible = "warn"
keyword-idents = "warn"
let-underscore = "warn"
missing-debug-implementations = "warn"
missing-docs = "warn"
trivial-numeric-casts = "warn"
unsafe-op-in-unsafe-fn = "warn"
unused = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(has_procmap_query_ioctl)",
    "cfg(has_large_test_files)",
]