Skip to main content

Module remappings

Module remappings 

Source

Re-exportsΒ§

use crate::Config; πŸ”’
use crate::FigmentProviders; πŸ”’
use crate::Warning; πŸ”’
use crate::foundry_toml_dir_entries; πŸ”’
use crate::remappings_from_env_var; πŸ”’
use crate::remappings_from_newline; πŸ”’
use figment::Error; πŸ”’
use figment::Figment; πŸ”’
use figment::Metadata; πŸ”’
use figment::Profile; πŸ”’
use figment::Provider; πŸ”’
use figment::value::Dict; πŸ”’
use figment::value::Map; πŸ”’
use foundry_compilers::artifacts::remappings::RelativeRemapping; πŸ”’
use foundry_compilers::artifacts::remappings::Remapping; πŸ”’
use foundry_compilers::artifacts::remappings::RemappingDiscovery; πŸ”’
use std::borrow::Cow; πŸ”’
use std::cmp::Reverse; πŸ”’
use std::collections::BTreeMap; πŸ”’
use std::collections::BTreeSet; πŸ”’
use std::collections::HashMap; πŸ”’
use std::collections::HashSet; πŸ”’
use std::collections::btree_map::Entry; πŸ”’
use std::collections::hash_map::Entry as HashEntry; πŸ”’
use std::fs; πŸ”’
use std::path::Component; πŸ”’
use std::path::MAIN_SEPARATOR; πŸ”’
use std::path::Path; πŸ”’
use std::path::PathBuf; πŸ”’
use rayon::prelude::*; πŸ”’

StructsΒ§

CachedNestedConfig πŸ”’
Remappings
Wrapper types over a Vec<Remapping> that only appends unique remappings.
RemappingsOutput πŸ”’
RemappingsProvider
A figment provider that checks if the remappings were previously set and if they’re unset looks up the fs via

EnumsΒ§

NestedRemappingKind πŸ”’

ConstantsΒ§

GENERATED_REMAPPINGS_KEY πŸ”’

FunctionsΒ§

configured_auto_remapping πŸ”’
contained_library_path πŸ”’
Joins a dependency’s library directory when it is relative and stays inside both the dependency’s lexical and canonical directory, so symlinks and parent components cannot impersonate another owner.
context_starts_with πŸ”’
contextual_overlays πŸ”’
dependency_library_paths
Returns the normalized library directories the dependency at root configures, as nested remapping discovery accepts them.
expand_scoped_contextual_remapping πŸ”’
Narrows an npm scope mapping to its installed packages so missing siblings can use the global hoisted-package fallback.
load_nested_config πŸ”’
normalize_remapping_context πŸ”’
project_path_remapping_name πŸ”’
rebase_nested_remapping πŸ”’
relative_remapping_preserving_context_boundary
remapping_name_is_prefix πŸ”’
remappings_conflict πŸ”’
Compares the targets of the overlapping part of two import namespaces.
scope_nested_remapping πŸ”’
Restricts dependency declarations to their lexical installation directory.
scoped_remapping_warnings πŸ”’
Returns migration advice for scoped declarations whose former global target root imports silently replace.
sort_by_context_specificity πŸ”’
Sorts by descending context depth, then by context, preserving order within each context.
suppress_overridden_remapping_warnings πŸ”’