Skip to main content

Module context

Module context 

Source

Re-exportsยง

use super::RequestedFeatures; ๐Ÿ”’
use super::dep_cache::RegistryQueryer; ๐Ÿ”’
use super::errors::ActivateResult; ๐Ÿ”’
use super::types::ActivationsKey; ๐Ÿ”’
use super::types::ConflictMap; ๐Ÿ”’
use super::types::ConflictReason; ๐Ÿ”’
use super::types::FeaturesSet; ๐Ÿ”’
use super::types::ResolveOpts; ๐Ÿ”’
use crate::util::Graph; ๐Ÿ”’
use crate::util::interning::INTERNED_DEFAULT; ๐Ÿ”’
use crate::util::interning::InternedString; ๐Ÿ”’
use crate::workspace::Dependency; ๐Ÿ”’
use crate::workspace::PackageId; ๐Ÿ”’
use crate::workspace::Registry; ๐Ÿ”’
use crate::workspace::Summary; ๐Ÿ”’
use anyhow::format_err; ๐Ÿ”’
use cargo_util::collections::HashMap; ๐Ÿ”’
use cargo_util::collections::HashSet; ๐Ÿ”’
use std::collections::BTreeSet; ๐Ÿ”’
use tracing::debug; ๐Ÿ”’

Structsยง

ResolverContext

Type Aliasesยง

Activations
Find the activated version of a crate based on the name, source, and semver compatibility. By storing this in a hash map we ensure that there is only one semver compatible version of each crate. This all so stores the ContextAge.
ContextAge
When backtracking it can be useful to know how far back to go. The ContextAge of a Context is a monotonically increasing counter of the number of decisions made to get to this state. Several structures store the ContextAge when it was added, to be used in find_candidate for backtracking.