forc_util

Module restricted

Source
Expand description

Helpers for validating and checking names like package and organization names.

Functions§

contains_invalid_char
Check the package name for invalid characters.
is_conflicting_artifact_name
An artifact with this name will conflict with one of forc’s build directories.
is_conflicting_suffix
These names conflict with library, macro or heap allocation suffixes, or keywords.
is_glob_pattern
Returns true if the name contains any glob pattern wildcards.
is_keyword
Rust keywords, further bikeshedding necessary to determine a complete set of Sway keywords
is_non_ascii_name
Returns true if the name contains non-ASCII characters.
is_valid_project_name_format
Check the project name format.
is_windows_reserved
These names cannot be used on Windows, even with an extension.
is_windows_reserved_path
Check the entire path for names reserved in Windows.