Expand description
Language detection by file extension.
Maps file extensions to supported language identifiers.
All languages are unconditionally compiled in. The historical lang-* Cargo feature
gates have been removed; every registered extension is always available at runtime.
This simplifies the build matrix and guarantees that callers never get a feature-gate
error for a language that “should” be supported.
Functions§
- language_
for_ extension - Returns the language identifier for the given file extension, or
Noneif unsupported. - supported_
extensions - Returns all file extensions supported by the compiled feature set.
- supported_
languages - Returns a static slice of all supported language names.