palate 0.3.6

File type detection combining tft and hyperpolyglot
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 = "2021"
name = "palate"
version = "0.3.6"
authors = ["Ivan <monkslc@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "File type detection combining tft and hyperpolyglot"
readme = "README.md"
keywords = [
    "file-type",
    "detection",
    "language",
    "syntax",
    "linguist",
]
categories = [
    "parser-implementations",
    "development-tools",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/casualjim/palate"

[package.metadata.docs.rs]
all-features = true

[package.metadata.release]
sign-commit = false
tag = false
pre-release-commit-message = "Release {{version}} [ci skip]"

[features]
classifier = ["detect"]
default = ["detect"]
detect = [
    "dep:aho-corasick",
    "dep:lazy-regex",
    "dep:once_cell",
    "dep:phf",
    "dep:regex",
    "dep:pcre2",
]
serde = [
    "dep:serde",
    "dep:serde_with",
]
tokio = [
    "detect",
    "dep:tokio",
]

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

[[bin]]
name = "codegen"
path = "src/bin/codegen.rs"
required-features = [
    "serde",
    "palate_polyglot_tokenizer",
]

[[bin]]
name = "palate"
path = "src/bin/palate.rs"
required-features = ["detect"]

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

[dependencies.aho-corasick]
version = "1.0"
optional = true

[dependencies.casey]
version = "0.4"

[dependencies.clap]
version = "4.5"
features = ["std"]

[dependencies.convert_case]
version = "0.10.0"

[dependencies.ignore]
version = "0.4"

[dependencies.infer]
version = "0.19"

[dependencies.lazy-regex]
version = "3.0"
optional = true

[dependencies.once_cell]
version = "1.18"
optional = true

[dependencies.palate_polyglot_tokenizer]
version = "0.2.1"
optional = true

[dependencies.pcre2]
version = "0.2"
optional = true

[dependencies.phf]
version = "0.12.1"
features = ["macros"]
optional = true

[dependencies.phf_codegen]
version = "0.12.1"

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

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

[dependencies.serde_norway]
version = "0.9"

[dependencies.serde_with]
version = "3"
optional = true

[dependencies.strum]
version = "0.27"
features = [
    "derive",
    "phf",
]

[dependencies.strum_macros]
version = "0.27"

[dependencies.termcolor]
version = "1.4"

[dependencies.tokio]
version = "1"
features = [
    "fs",
    "io-util",
    "rt",
]
optional = true

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

[dev-dependencies.serde_norway]
version = "0.9"

[dev-dependencies.tokio]
version = "1"
features = ["macros"]

[dev-dependencies.toml]
version = "0.8"