Function validate_plugin_package_name
pub fn validate_plugin_package_name(
name: &str,
) -> Result<(), InvalidPluginPackageName>Expand description
Validate the package-name grammar shared by manifests, configuration, and runtime instance construction.
One grammar keeps [channels.plugin.<alias>].package and the installed
manifest’s name on the same spelling, so a declaration that passes config
validation cannot fail to match an admitted package for a reason the
operator never sees. The grammar is deliberately narrow: no uppercase, no
path separators, and no whitespace or control characters, so a package name
can be embedded in a log field or a derived key without quoting.
§Errors
Returns InvalidPluginPackageName when name is empty, longer than 128
bytes, or is not a lowercase ASCII slug with supported separators.