# 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 = "bgpkit-parser"
version = "0.10.0"
authors = ["Mingwei Zhang <mingwei@bgpkit.com>"]
default-run = "bgpkit-parser"
description = "MRT/BGP/BMP data processing library"
documentation = "https://docs.rs/bgpkit-parser"
readme = "README.md"
keywords = [
    "bgp",
    "bgpkit",
    "mrt",
]
categories = ["network-programming"]
license = "MIT"
repository = "https://github.com/bgpkit/bgpkit-parser"

[package.metadata.binstall]
pkg-fmt = "tgz"
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.tar.gz"

[[bin]]
name = "bgpkit-parser"
path = "src/bin/main.rs"
required-features = ["cli"]

[[example]]
name = "real-time-ris-live-websocket"
required-features = ["rislive"]

[[example]]
name = "peer_index_table"
required-features = ["serde"]

[[example]]
name = "deprecated_attributes"
required-features = ["serde"]

[[bench]]
name = "internals"
harness = false

[[bench]]
name = "bench_main"
harness = false

[dependencies.bitflags]
version = "2.3.3"
features = ["serde"]
optional = true

[dependencies.bytes]
version = "1.5.0"
optional = true

[dependencies.chrono]
version = "0.4.24"
optional = true

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

[dependencies.env_logger]
version = "0.10"
optional = true

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.ipnet]
version = "2.7"
optional = true

[dependencies.itertools]
version = "0.12"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dependencies.num_enum]
version = "0.7"
optional = true

[dependencies.oneio]
version = "0.16.0"
features = ["lib-core"]
optional = true
default-features = false

[dependencies.regex]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.bgpkit-broker]
version = "0.7.0-beta.5"

[dev-dependencies.bzip2]
version = "0.4"

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

[dev-dependencies.ctrlc]
version = "3.4"

[dev-dependencies.flate2]
version = "1.0.25"

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

[dev-dependencies.kafka]
version = "0.10.0"

[dev-dependencies.md5]
version = "0.7.0"

[dev-dependencies.rayon]
version = "1.5.1"

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

[dev-dependencies.tempdir]
version = "0.3"

[dev-dependencies.tracing]
version = "0.1"

[dev-dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.tungstenite]
version = "0.21.0"

[dev-dependencies.url]
version = "2.1.0"

[dev-dependencies.which]
version = "5"

[features]
cli = [
    "clap",
    "parser",
    "env_logger",
    "serde",
    "serde_json",
]
default = [
    "parser",
    "rustls",
]
models = [
    "num_enum",
    "num_enum/complex-expressions",
    "ipnet",
    "itertools",
    "bitflags",
]
native-tls = ["oneio/native-tls"]
parser = [
    "bytes",
    "chrono",
    "env_logger",
    "log",
    "models",
    "regex",
]
rislive = [
    "parser",
    "serde",
    "serde_json",
    "hex",
]
rustls = ["oneio/rustls"]
serde = [
    "dep:serde",
    "ipnet/serde",
]
