# 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 = "domi"
version = "0.1.0-alpha.11"
authors = ["チセ <123655015+chise0713@users.noreply.github.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "domi provides abstractions and utilities for domain-list-community data source."
readme = "README.md"
keywords = [
    "parser",
    "domain",
    "v2ray",
    "sing-box",
]
categories = [
    "parser-implementations",
    "parsing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/chise0713/domi"

[package.metadata.docs.rs]
all-features = true
cargo-args = [
    "-Zunstable-options",
    "-Zrustdoc-scrape-examples",
]

[features]
ahash = ["dep:ahash"]
default = [
    "serde",
    "rustc-hash",
]
prost = [
    "dep:prost",
    "dep:prost-build",
]
rustc-hash = ["dep:rustc-hash"]
serde = [
    "dep:serde",
    "dep:serde_with",
]

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

[[example]]
name = "geosite"
path = "examples/geosite.rs"
required-features = ["prost"]

[[example]]
name = "srs"
path = "examples/srs.rs"
doc-scrape-examples = true
required-features = ["serde"]

[dependencies.ahash]
version = "^0.8"
features = ["no-rng"]
optional = true
default-features = false

[dependencies.cfg-if]
version = "^1.0"

[dependencies.paste]
version = "^1.0"

[dependencies.prost]
version = "^0.14"
optional = true

[dependencies.rustc-hash]
version = "^2.1"
optional = true
default-features = false

[dependencies.serde]
version = "^1"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_with]
version = "^3"
features = ["macros"]
optional = true
default-features = false

[dev-dependencies.prost]
version = "^0.14"

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

[build-dependencies.prost-build]
version = "^0.14"
optional = true
