[package]
edition = "2024"
name = "linguist"
version = "0.1.9"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Programming language detection library based on Github Linguist."
readme = "README.md"
keywords = [
"language",
"detection",
"linguist",
"github",
"syntax",
]
categories = [
"development-tools",
"parsing",
"text-processing",
]
license = "MIT"
repository = "https://github.com/drshade/linguist"
[lib]
name = "linguist"
path = "src/lib.rs"
[[bin]]
name = "linguist"
path = "src/main.rs"
[[test]]
name = "by_extension"
path = "tests/by_extension.rs"
[[test]]
name = "by_filename"
path = "tests/by_filename.rs"
[[test]]
name = "disambiguate"
path = "tests/disambiguate.rs"
[[test]]
name = "samples"
path = "tests/samples.rs"
[[test]]
name = "vendored"
path = "tests/vendored.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.fancy-regex]
version = "0.17"
[dependencies.linguist-types]
version = "0.1"
[dependencies.once_cell]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_yaml_ng]
version = "0.10"
[build-dependencies.linguist-types]
version = "0.1"
[build-dependencies.serde_json]
version = "1"
[build-dependencies.serde_yaml_ng]
version = "0.10"