Skip to main content

Module remappings

Module remappings 

Source

Re-exportsΒ§

use crate::Config; πŸ”’
use crate::FigmentProviders; πŸ”’
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

ConstantsΒ§

GENERATED_REMAPPINGS_KEY πŸ”’

FunctionsΒ§

configured_auto_remapping πŸ”’
context_starts_with πŸ”’
contextual_overlays πŸ”’
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 πŸ”’
rebase_nested_remapping πŸ”’
relative_remapping_preserving_context_boundary
remapping_name_is_prefix πŸ”’