sui-execution/cut/README.md
The cut binary is responsible for making copies of sets of crates
from the repository. Use the --dry-run option to inspect the copies
that cut would make without committing them to the filesystem.
When making copies, cut maintains the following properties:
The binary accepts two sets of configuration for discovering packages to copy:
suffix parameter that is used to strip a common suffix
from the names of crates found in this directory.When copying crates, the tool preserves the relative path of the crate
in its source directory. For instance, if crate A is found at path
./foo/bar/baz/A in its source directory, it will be copied to
directory ./foo/bar/baz/A in its destination directory.
cut accepts a --feature (or -f) parameter that is used to
disambiguate the names of copied crates from their originals. When a
crate A with name "a" is copied as part of feature foo, its copy,
A', will have name "a-foo".
cut needs to know where the root of the repository is, to find the
manifest that contains the [workspace] configuration. By default,
it sets this to the ancestor of the current working directory that
contains a .git directory. If such an ancestor does not exist, or
it does not contain a Cargo.toml that contains a [workspace]
field, then the --root must be explicitly supplied.