Skip to main content

Crate lintel_config

Crate lintel_config 

Source

Structs§

Config
Override

Functions§

apply_rewrites
Apply rewrite rules to a schema URI. If the URI starts with any key in rewrites, that prefix is replaced with the corresponding value. The longest matching prefix wins.
find_and_load
Search for lintel.toml files starting from start_dir, walking up. Merges all configs found until one with root = true is hit (inclusive). Returns the merged config, or None if no config file was found.
find_config_path
Find the nearest lintel.toml starting from start_dir, walking upward. Returns the path to lintel.toml, or None if not found.
load
Load config from the current working directory (walking upward).
resolve_double_slash
Resolve a //-prefixed path relative to the given root directory (the directory containing lintel.toml). Non-// paths are returned unchanged.
schema
Generate the JSON Schema for lintel.toml as a serde_json::Value.