Skip to main content

Module prune

Module prune 

Source
Expand description

The three tiers that take files out of a closure.

A closure is complete by construction and therefore too large. The platform line names what the host supplies; the policy names what never ships; a trace, when the publisher has one, names what a test run did not touch. Each tier is a plain text file so it can be published, diffed and shared.

Structs§

PlatformLine
Soname prefixes the host is expected to provide.
Policy
Glob patterns over paths relative to the root that never ship.
Pruned
What pruning kept and why the rest went.
Trace
Paths a test run opened, relative to the root.

Functions§

prune
Apply the tiers to files, relative paths in any order. keep_names survive the trace regardless: a basename, the soname some bundled object needs, keeps every file so named, and a path, holding a slash, keeps that one file. keep are globs the trace may not prune.