Skip to main content

ResolvedConfig

Struct ResolvedConfig 

Source
pub struct ResolvedConfig {
Show 21 fields pub root: PathBuf, pub entry_patterns: Vec<String>, pub ignore_patterns: GlobSet, pub output: OutputFormat, pub cache_dir: PathBuf, pub threads: usize, pub no_cache: bool, pub ignore_dependencies: Vec<String>, pub ignore_export_rules: Vec<IgnoreExportRule>, pub duplicates: DuplicatesConfig, pub health: HealthConfig, pub rules: RulesConfig, pub boundaries: ResolvedBoundaryConfig, pub production: bool, pub quiet: bool, pub external_plugins: Vec<ExternalPluginDef>, pub dynamically_loaded: Vec<String>, pub overrides: Vec<ResolvedOverride>, pub regression: Option<RegressionConfig>, pub codeowners: Option<String>, pub public_packages: Vec<String>,
}
Expand description

Fully resolved configuration with all globs pre-compiled.

Fields§

§root: PathBuf§entry_patterns: Vec<String>§ignore_patterns: GlobSet§output: OutputFormat§cache_dir: PathBuf§threads: usize§no_cache: bool§ignore_dependencies: Vec<String>§ignore_export_rules: Vec<IgnoreExportRule>§duplicates: DuplicatesConfig§health: HealthConfig§rules: RulesConfig§boundaries: ResolvedBoundaryConfig

Resolved architecture boundary configuration with pre-compiled glob matchers.

§production: bool

Whether production mode is active.

§quiet: bool

Suppress progress output and non-essential stderr messages.

§external_plugins: Vec<ExternalPluginDef>

External plugin definitions (from plugin files + inline framework definitions).

§dynamically_loaded: Vec<String>

Glob patterns for dynamically loaded files (treated as always-used).

§overrides: Vec<ResolvedOverride>

Per-file rule overrides with pre-compiled glob matchers.

§regression: Option<RegressionConfig>

Regression config (passed through from user config, not resolved).

§codeowners: Option<String>

Optional CODEOWNERS file path (passed through for --group-by owner).

§public_packages: Vec<String>

Workspace package name patterns that are public libraries. Exports from these packages are not flagged as unused.

Implementations§

Source§

impl ResolvedConfig

Source

pub fn resolve_rules_for_path(&self, path: &Path) -> RulesConfig

Resolve the effective rules for a given file path. Starts with base rules and applies matching overrides in order.

Trait Implementations§

Source§

impl Debug for ResolvedConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more