[[bench]]
harness = false
name = "cache_bench"
path = "benches/cache_bench.rs"
[[bench]]
harness = false
name = "matchy_bench"
path = "benches/matchy_bench.rs"
[[bench]]
harness = false
name = "mmdb_build_bench"
path = "benches/mmdb_build_bench.rs"
[[bench]]
harness = false
name = "query_profile"
path = "benches/query_profile.rs"
[[bin]]
name = "matchy"
path = "src/bin/matchy.rs"
required-features = ["cli"]
[build-dependencies.cbindgen]
version = "0.29"
[dependencies.anyhow]
version = "1.0"
[dependencies.bech32]
version = "0.11"
[dependencies.bs58]
version = "0.5"
[dependencies.clap]
features = ["derive", "cargo"]
optional = true
version = "4.5"
[dependencies.csv]
optional = true
version = "1.3"
[dependencies.ctrlc]
optional = true
version = "3.5"
[dependencies.flate2]
version = "1.1"
[dependencies.libc]
version = "0.2"
[dependencies.lru]
version = "0.16"
[dependencies.memchr]
version = "2.7"
[dependencies.memmap2]
version = "0.9.9"
[dependencies.notify]
optional = true
version = "6.1"
[dependencies.rayon]
version = "1.10"
[dependencies.rustc-hash]
version = "2.0"
[dependencies.serde]
features = ["derive"]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.tiny-keccak]
features = ["keccak"]
version = "2.0"
[dependencies.xxhash-rust]
features = ["xxh64"]
version = "0.8"
[dependencies.zerocopy]
features = ["derive"]
version = "0.8.27"
[dev-dependencies.assert_cmd]
version = "2.1"
[dev-dependencies.criterion]
version = "0.7"
[dev-dependencies.dhat]
version = "0.3"
[dev-dependencies.predicates]
version = "3.0"
[dev-dependencies.proptest]
version = "1.9"
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.tempfile]
version = "3.8"
[[example]]
name = "audit_database"
path = "examples/audit_database.rs"
[[example]]
name = "build_combined_database"
path = "examples/build_combined_database.rs"
[[example]]
name = "build_ip_database"
path = "examples/build_ip_database.rs"
[[example]]
name = "build_misp_database"
path = "examples/build_misp_database.rs"
[[example]]
name = "cache_demo"
path = "examples/cache_demo.rs"
[[example]]
name = "combined_query"
path = "examples/combined_query.rs"
[[example]]
name = "custom_metadata"
path = "examples/custom_metadata.rs"
[[example]]
name = "endianness_demo"
path = "examples/endianness_demo.rs"
[[example]]
name = "extractor_demo"
path = "examples/extractor_demo.rs"
[[example]]
name = "generate_logs"
path = "examples/generate_logs.rs"
[[example]]
name = "geoip_query"
path = "examples/geoip_query.rs"
[[example]]
name = "glob_demo"
path = "examples/glob_demo.rs"
[[example]]
name = "hash_build_bench"
path = "examples/hash_build_bench.rs"
[[example]]
name = "hash_demo"
path = "examples/hash_demo.rs"
[[example]]
name = "incremental_builder"
path = "examples/incremental_builder.rs"
[[example]]
name = "prefix_convention"
path = "examples/prefix_convention.rs"
[[example]]
name = "production_test"
path = "examples/production_test.rs"
[[example]]
name = "test_hash_speed"
path = "examples/test_hash_speed.rs"
[[example]]
name = "zero_alloc_demo"
path = "examples/zero_alloc_demo.rs"
[features]
capi = []
cli = ["clap", "notify", "ctrlc", "csv"]
default = ["cli"]
dhat-heap = []
[lib]
crate-type = ["rlib", "staticlib", "cdylib"]
name = "matchy"
path = "src/lib.rs"
[package]
authors = ["Seth Hall <seth@remor.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = ["network-programming", "database", "algorithms"]
description = "Fast database for IP address and pattern matching with rich data storage"
edition = "2021"
include = ["src/**/*", "benches/**/*", "examples/**/*", "tests/*.rs", "tests/*.c", "include/**/*", "build.rs", "cbindgen.toml", "Cargo.toml", "Cargo.lock", "README.md", "CHANGELOG.md", "CONTRIBUTING.md", "LICENSE"]
keywords = ["ip", "pattern", "database", "geoip", "matching"]
license = "BSD-2-Clause"
name = "matchy"
readme = "README.md"
repository = "https://github.com/sethhall/matchy"
version = "1.2.2"
[package.metadata.capi]
min_version = "0.10.0"
[package.metadata.capi.header]
generation = true
name = "matchy"
subdirectory = "matchy"
[[package.metadata.capi.install.include.asset]]
from = "include/matchy/maxminddb.h"
[package.metadata.capi.pkg_config]
filename = "matchy"
name = "matchy"
strip_include_path_components = 1
[profile.bench]
inherits = "release"
[profile.dev]
debug = 2
opt-level = 0
[profile.release]
codegen-units = 1
debug = 2
lto = true
opt-level = 3
strip = false
[target."cfg(windows)".dependencies.winapi]
features = ["winsock2", "ws2def", "ws2ipdef"]
version = "0.3"
[[test]]
name = "cli_tests"
path = "tests/cli_tests.rs"
[[test]]
name = "debug_ip_tree"
path = "tests/debug_ip_tree.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[test]]
name = "test_ip_exact_match"
path = "tests/test_ip_exact_match.rs"
[[test]]
name = "test_ip_longest_prefix_match"
path = "tests/test_ip_longest_prefix_match.rs"
[[test]]
name = "test_literal_hash"
path = "tests/test_literal_hash.rs"