Skip to main content

plugin_dir_sha256

Function plugin_dir_sha256 

Source
pub fn plugin_dir_sha256(path: &Path) -> Result<String, String>
Expand description

Compute the plugin package checksum used by v1 plugin indexes.

The digest is sha256 over each regular file below path (excluding .git), in lexical relative-path order. Each file contributes its relative path, a NUL separator, its bytes, and another NUL. This makes the checksum stable across machines while detecting file rename/content changes. Symlinks and non-regular files are ignored, matching installer snapshot behavior.