netgauze-pcap-decoder 0.12.1

CLI Utility to convert NetFlow, IPFIX, BGP, BMP or UDP-Nofif data from a PCAP file to a JSON Lines file.
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 = "2024"
name = "netgauze-pcap-decoder"
version = "0.12.1"
authors = ["Riccardo Negri <hello@riccardonegri.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
CLI Utility to convert NetFlow, IPFIX, BGP, BMP or UDP-Nofif data from a PCAP file to a JSON Lines file.
"""
homepage = "https://github.com/NetGauze/NetGauze"
readme = "README.md"
keywords = [
    "pcap",
    "parser",
    "decoder",
    "protocol",
]
categories = [
    "network-programming",
    "parsing",
]
license = "Apache-2.0"
repository = "https://github.com/NetGauze/NetGauze"
resolver = "2"

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

[[bin]]
name = "netgauze-pcap-decoder"
path = "src/main.rs"

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

[dependencies.bytes]
version = "1.10"

[dependencies.ciborium]
version = "0.2"

[dependencies.clap]
version = "4.6"
features = [
    "default",
    "derive",
]
default-features = true

[dependencies.netgauze-bgp-pkt]
version = "0.12.1"
features = ["codec"]

[dependencies.netgauze-bmp-pkt]
version = "0.12.1"
features = ["codec"]

[dependencies.netgauze-flow-pkt]
version = "0.12.1"
features = ["codec"]

[dependencies.netgauze-pcap-reader]
version = "0.12.1"

[dependencies.netgauze-udp-notif-pkt]
version = "0.12.1"
features = ["codec"]

[dependencies.pcap-parser]
version = "0.17"
features = ["data"]

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
default-features = false

[dev-dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false

[dev-dependencies.tempfile]
version = "3.27"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.await_holding_lock]
level = "deny"
priority = 0

[lints.clippy.dbg_macro]
level = "deny"
priority = 0

[lints.clippy.disallowed_methods]
level = "deny"
priority = 0

[lints.clippy.disallowed_types]
level = "deny"
priority = 0

[lints.clippy.explicit_into_iter_loop]
level = "deny"
priority = 0

[lints.clippy.explicit_iter_loop]
level = "deny"
priority = 0

[lints.clippy.inconsistent_struct_constructor]
level = "deny"
priority = 0

[lints.clippy.map_flatten]
level = "deny"
priority = 0

[lints.clippy.new_without_default]
level = "allow"
priority = 1

[lints.clippy.no_effect_underscore_binding]
level = "deny"
priority = 0

[lints.clippy.too_long_first_doc_paragraph]
level = "allow"
priority = 0

[lints.clippy.uninlined_format_args]
level = "deny"
priority = 0

[lints.clippy.unused_async]
level = "deny"
priority = 0

[lints.rust.future_incompatible]
level = "deny"
priority = 2

[lints.rust.nonstandard_style]
level = "deny"
priority = 3

[lints.rust.rust-2024-compatibility]
level = "warn"
priority = 6

[lints.rust.rust_2018_idioms]
level = "deny"
priority = 4

[lints.rust.unused_must_use]
level = "forbid"
priority = 1

[lints.rustdoc.broken_intra_doc_links]
level = "warn"
priority = 0