bpflint 0.2.0

Linting functionality for BPF C programs.
Documentation
[build-dependencies.anyhow]
version = "1.0"

[build-dependencies.wasm-bindgen-cli-support]
default-features = false
optional = true
version = "0.2"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.tree-sitter-bpf-c]
version = "0.2.2"

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

[dev-dependencies.pretty_assertions]
version = "1.4"

[features]
debug = ["web-sys"]
deploy = ["dep:wasm-bindgen-cli-support"]

[lib]
crate-type = ["cdylib", "rlib"]
name = "bpflint"
path = "src/lib.rs"

[lints.clippy]
absolute-paths = "warn"
allow-attributes = "warn"
clone-on-ref-ptr = "warn"
collapsible-else-if = "allow"
collapsible-if = "allow"
dbg-macro = "warn"
derive-partial-eq-without-eq = "warn"
doc-markdown = "warn"
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-duration-subtraction = "warn"
uninlined-format-args = "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"

[package]
authors = ["Daniel Mueller <deso@posteo.net>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["accessibility", "command-line-utilities", "compilers", "development-tools", "parser-implementations"]
description = """
Linting functionality for BPF C programs.
"""
documentation = "https://docs.rs/bpflint"
edition = "2024"
keywords = ["bpf", "linter", "lint", "cli"]
license = "MIT"
name = "bpflint"
readme = "README.md"
repository = "https://github.com/d-e-s-o/bpflint"
version = "0.2.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tree-sitter]
version = "0.25"

[target.'cfg(target_arch = "wasm32")'.dependencies.tree-sitter]
package = "tree-sitter-c2rust"
version = "0.25"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
features = ["console"]
optional = true
version = "0.3"

[[test]]
name = "integration"
path = "tests/integration.rs"

[[test]]
name = "util"
path = "tests/util.rs"