Skip to main content

Module packages

Module packages 

Source
Expand description

See Packages.

Re-exportsΒ§

use std::collections::BTreeSet; πŸ”’
use crate::util::CargoResult; πŸ”’
use crate::util::restricted_names::is_glob_pattern; πŸ”’
use crate::workspace::Package; πŸ”’
use crate::workspace::PackageIdSpecQuery; πŸ”’
use crate::workspace::PackageIdSpec; πŸ”’
use crate::workspace::Workspace; πŸ”’
use anyhow::Context as _; πŸ”’
use anyhow::bail; πŸ”’

EnumsΒ§

Packages
Represents the selected packages that will be built.

FunctionsΒ§

build_glob
Build glob::Pattern with informative context.
emit_package_not_found πŸ”’
Emits β€œpackage not found” error.
emit_packages_not_found_within_workspace πŸ”’
emit_pattern_not_found πŸ”’
Emits β€œglob pattern not found” error.
match_patterns πŸ”’
Checks whether a package matches any of a list of glob patterns generated from opt_patterns_and_names.
opt_patterns_and_ids πŸ”’
Given a list opt-in or opt-out package selection strings, generates two collections that represent glob patterns and package id specs respectively.