Skip to main content

use_repo_limits

Function use_repo_limits 

Source
pub fn use_repo_limits(root: &Path) -> Result<Vec<Loosened>, InputError>
Available on crate feature yaml and (crate features json or toml or yaml) only.
Expand description

Read limits: from root’s REPO_FILE and install it for every later parse in this process. A repository without the file overrides nothing. The file itself is read under the process default, not under whatever repository was installed before.

Returns each limit the repository raises above its default. Print each as {bin}: warning: {loosened}. A raised limit is one above ctl-core’s or serde-saphyr’s default, whatever the CLI set as its process default.

§Errors

An InputError when the file cannot be read, is not YAML, or names a field Limits does not have.