A compact string identifier for use within records, key lookups, and more.
Supports unicode alphanumeric characters, forward slash /, period .,
underscore _, and dash -. A leading @ is supported to support npm package names.
A version requirement composed of a comparison operator and a full
or partial version to match against. Build metadata is accepted
when parsing, but is otherwise ignored.
Determines which config files are trusted. A config is trusted when the
user has trusted the file itself or a directory it’s within (with
proto trust), when it’s within a directory listed in
PROTO_TRUSTED_PATHS, or when running in CI.
Cloning an entire list, like Vec, is very costly as it clones the entire structure.
This helper allows you to clone just the values, which is much faster if you don’t
need the list features.
Cloning an entire map, like IndexMap, is very costly as it clones the entire structure.
This helper allows you to clone just the keys and values, which is much faster if you
don’t need the map features.
Return the libc to record in the lockfile for the provided platform. A libc
is only recorded for Linux, as it’s the only operating system where artifacts
are commonly distributed for multiple libcs (GNU and musl).
Return the security-sensitive settings configured in the provided config,
with unconfigured settings removed, for display purposes. Returns None
if the config has none, in which case it does not need to be trusted.
Return the paths of the security-sensitive settings configured in the
provided config, like env or plugins.tools, for display purposes.
Returns an empty list if the config has none.
Returns true if the provided value looks like a calendar version string,
instead of a semantic version string. This is used to determine which parser to use.
Returns true if the provided value looks like a semver version string,
instead of a calendar version string. This is used to determine which parser to use.