Skip to main content

pack_dir

Function pack_dir 

Source
pub fn pack_dir(src_dir: &Path, out_path: &Path) -> Result<PathBuf>
Expand description

Create a .tar.gz artifact from a plugin directory. The archive will contain a single root directory named “-/” and all files from src_dir will be placed under that root preserving relative layout.

§RFC-0003 Compliance

  • Validates plugin name is lowercase with hyphens/underscores only
  • Validates version follows semantic versioning (major.minor.patch)
  • Includes optional CHANGELOG.md and doc/ directory if present