Skip to main content

Module packaging

Module packaging 

Source
Expand description

Packaging rule — the deterministic core: given the root of an unpacked built artifact and the test-file globs that must not appear in it, scan returns every offending file, and discover finds the built distributions under a root.

Structs§

Distribution
A built distribution, with the language its file name names.

Functions§

discover
The built distributions at path, sorted: a directory is searched recursively, and any other path is the single candidate. Empty when nothing there is a recognized distribution.
inspect
Inspect a built artifact at path for files matching globs. path is a directory (an already-unpacked artifact) or an archive this rule unpacks first — .whl, .tgz/.tar.gz, .crate. Offenders come back as paths relative to the artifact root.
scan
Every file under root — the root of an unpacked built artifact — whose name matches one of globs, sorted. globs are file-name globs where * matches any run of characters; each is matched against an entry’s file name, not its full path.