# 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.11" authors = ["Mingwei Zhang "] build = false autobins = false autoexamples = false autotests = false autobenches = false 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" [lib] name = "bgpkit_parser" path = "src/lib.rs" [[bin]] name = "bgpkit-parser" path = "src/bin/main.rs" required-features = ["cli"] [[example]] name = "bmp_listener" path = "examples/bmp_listener.rs" [[example]] name = "cache_reading" path = "examples/cache_reading.rs" [[example]] name = "count_elems" path = "examples/count_elems.rs" [[example]] name = "deprecated_attributes" path = "examples/deprecated_attributes.rs" required-features = ["serde"] [[example]] name = "display_elems" path = "examples/display_elems.rs" [[example]] name = "extended_communities" path = "examples/extended_communities.rs" [[example]] name = "filter_export_rib" path = "examples/filter_export_rib.rs" [[example]] name = "filters" path = "examples/filters.rs" [[example]] name = "find_as_set_messages" path = "examples/find_as_set_messages.rs" [[example]] name = "mrt_filter_archiver" path = "examples/mrt_filter_archiver.rs" [[example]] name = "only-to-customer" path = "examples/only-to-customer.rs" [[example]] name = "parse-files-from-broker" path = "examples/parse-files-from-broker.rs" [[example]] name = "parse-files-from-broker-parallel" path = "examples/parse-files-from-broker-parallel.rs" [[example]] name = "parse-single-file" path = "examples/parse-single-file.rs" [[example]] name = "peer_index_table" path = "examples/peer_index_table.rs" required-features = ["serde"] [[example]] name = "real-time-ris-live-websocket" path = "examples/real-time-ris-live-websocket.rs" required-features = ["rislive"] [[example]] name = "real-time-routeviews-kafka-openbmp" path = "examples/real-time-routeviews-kafka-openbmp.rs" [[example]] name = "real-time-routeviews-kafka-to-mrt" path = "examples/real-time-routeviews-kafka-to-mrt.rs" [[example]] name = "records_iter" path = "examples/records_iter.rs" [[test]] name = "bgp-parser-tests" path = "tests/bgp-parser-tests.rs" [[test]] name = "test_encoding" path = "tests/test_encoding.rs" [[bench]] name = "bench_main" path = "benches/bench_main.rs" harness = false [[bench]] name = "data_source" path = "benches/data_source.rs" [[bench]] name = "internals" path = "benches/internals.rs" harness = false [dependencies.bitflags] version = "2.6" features = ["serde"] [dependencies.bytes] version = "1.7" optional = true [dependencies.chrono] version = "0.4.38" optional = true [dependencies.clap] version = "4.5" features = ["derive"] optional = true [dependencies.env_logger] version = "0.11" optional = true [dependencies.hex] version = "0.4.3" optional = true [dependencies.ipnet] version = "2.10" [dependencies.itertools] version = "0.13" [dependencies.log] version = "0.4" [dependencies.num_enum] version = "0.7" features = ["complex-expressions"] [dependencies.oneio] version = "0.17.0" features = [ "gz", "bz", ] 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" [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.10" [dev-dependencies.regex] version = "1" [dev-dependencies.serde_json] version = "1.0" [dev-dependencies.tempfile] version = "3" [dev-dependencies.tracing] version = "0.1" [dev-dependencies.tracing-subscriber] version = "0.3" [dev-dependencies.tungstenite] version = "0.24.0" [dev-dependencies.which] version = "6" [features] cli = [ "clap", "parser", "env_logger", "serde", "serde_json", ] default = [ "parser", "rustls", ] lz = ["oneio/lz"] native-tls = [ "oneio/remote", "oneio/native-tls", ] parser = [ "bytes", "chrono", "regex", ] rislive = [ "parser", "serde", "serde_json", "hex", ] rustls = [ "oneio/remote", "oneio/rustls", ] serde = [ "dep:serde", "ipnet/serde", ] xz = ["oneio/xz"]