Cargo Features

[dependencies]
linguist-rs = { version = "1.1.0", default-features = false, features = ["serde", "matcher", "github-linguist-yaml"] }
serde default github-linguist-yaml?

this features enables the functionality to load language definitions from a yaml file

Enables serde and serde_yaml

Affects linguist-rs::serde

default = matcher, serde

These default features are set whenever linguist-rs is added without default-features = false somewhere in the dependency tree.

matcher default

Enables regex

Affects container::Container.get_heuristics_by_extension, github::load_github_linguist_heuristics, resolver::resolve_language_by_content

github-linguist-yaml = serde

Affects linguist-rs::github