flowparser-sflow 0.1.0

Parser for sFlow v5 datagrams
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 = "flowparser-sflow"
version = "0.1.0"
authors = ["michael.mileusnich@gmail.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parser for sFlow v5 datagrams"
readme = "README.md"
keywords = [
    "sflow",
    "parser",
    "network",
    "sampling",
]
categories = [
    "encoding",
    "network-programming",
    "parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mikemiles-dev/sflow_parser/"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[[example]]
name = "dump_hex"
path = "examples/dump_hex.rs"

[[example]]
name = "sflow_pcap"
path = "examples/sflow_pcap.rs"

[[example]]
name = "sflow_udp_listener_multi_threaded"
path = "examples/sflow_udp_listener_multi_threaded.rs"

[[example]]
name = "sflow_udp_listener_single_threaded"
path = "examples/sflow_udp_listener_single_threaded.rs"

[[example]]
name = "sflow_udp_listener_tokio"
path = "examples/sflow_udp_listener_tokio.rs"

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

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

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

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

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

[[bench]]
name = "counter_sample_bench"
path = "benches/counter_sample_bench.rs"
harness = false

[[bench]]
name = "flow_sample_bench"
path = "benches/flow_sample_bench.rs"
harness = false

[[bench]]
name = "flowparser_sflow_bench"
path = "benches/flowparser_sflow_bench.rs"
harness = false

[dependencies.mac_address]
version = "1.1.5"
features = ["serde"]

[dependencies.nom]
version = "7.1.3"

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

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.etherparse]
version = "0.19"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.insta]
version = "1.30.0"
features = ["yaml"]

[dev-dependencies.pcap-parser]
version = "0.17"

[dev-dependencies.serde_json]
version = "1.0.100"

[dev-dependencies.tokio]
version = "1.38.0"
features = ["full"]