pub struct Settings {Show 16 fields
pub managed_root: Option<String>,
pub targets: Option<Vec<String>>,
pub models_cache_ttl_hours: Option<u32>,
pub min_mars_version: Option<String>,
pub default_harness: Option<String>,
pub default_model: Option<String>,
pub default_network: Option<NetworkPolicy>,
pub network_allow: PermissionSet<NetworkHost>,
pub network_deny: PermissionSet<NetworkHost>,
pub tools: ToolRuleMap,
pub harness_order: Option<Vec<String>>,
pub provider_order: Option<Vec<String>>,
pub catalog_providers: Option<Vec<String>>,
pub agent_emission: Option<AgentEmission>,
pub meridian: MeridianSettings,
pub model_policies: Option<Vec<ModelPolicyRule>>,
}Expand description
Global settings — extensible via additional fields.
Fields§
§managed_root: Option<String>The v0.36 spelling of one target. Retired: nothing reads it as a target. It is a field only
so a warning can name the targets to write instead (retired::managed_root_note).
targets: Option<Vec<String>>Managed target directories materialized from .mars/ canonical store. When set, only listed targets are populated. When unset, no target-sync targets are enabled by default.
models_cache_ttl_hours: Option<u32>Unset means DEFAULT_MODELS_CACHE_TTL_HOURS; read it through models_cache_ttl_hours().
min_mars_version: Option<String>Minimum mars binary version required to use this project. Old binary + new package with this set → compatibility error. New binary + old package without this set → succeeds with defaults.
default_harness: Option<String>Default harness for launch routing when profile/alias/provider cannot resolve one.
default_model: Option<String>Project-wide default model token when no CLI override or profile model is set.
default_network: Option<NetworkPolicy>Project-wide network mode when no higher policy layer sets one.
network_allow: PermissionSet<NetworkHost>§network_deny: PermissionSet<NetworkHost>§tools: ToolRuleMapTool rules for every agent and for a launch with no agent. Takes allow, ask and deny; never *.
harness_order: Option<Vec<String>>Ordered harness preference for launch-bundle candidate selection.
When set, replaces built-in provider preference ordering for candidate
selection. First installed candidate wins. When unset, Mars uses the
built-in default (claude, pi, codex, opencode).
provider_order: Option<Vec<String>>Ordered provider preference for model-first routing tie-breaks.
Optional soft preference used only after model-name matching. Empty means preserve harness-reported model order.
catalog_providers: Option<Vec<String>>models.dev provider keys ingested into the models cache.
Unset uses the built-in default (anthropic, openai, google, meta,
deepseek, xai, openrouter). Set replaces that list. ["*"] ingests
every provider. Catalog-only: a pinned alias still works if the harness
can resolve the provider.
agent_emission: Option<AgentEmission>Controls whether harness-bound agents are emitted to native harness dirs.
auto (the default when unset) emits for standalone mars syncs and
suppresses native agent artifacts when Meridian invokes mars with
MERIDIAN_MANAGED=1.
meridian: MeridianSettings§model_policies: Option<Vec<ModelPolicyRule>>Implementations§
Source§impl Settings
impl Settings
pub fn models_cache_ttl_hours(&self) -> u32
pub fn model_policies(&self) -> &[ModelPolicyRule]
Sourcepub fn meridian_agent_copy(&self) -> Option<&AgentCopyConfig>
pub fn meridian_agent_copy(&self) -> Option<&AgentCopyConfig>
Selective native agent copy config from [settings.meridian.agent_copy].
Sourcepub fn network_keys(&self) -> Vec<(&'static str, bool)>
pub fn network_keys(&self) -> Vec<(&'static str, bool)>
The network keys a project sets in [settings] (or inherits from the user config), each
with whether it restricts: default_network = "allow" is a grant.
Sourcepub fn meridian_fanout_agents(&self) -> &[String]
pub fn meridian_fanout_agents(&self) -> &[String]
Fanout agent list from [settings.meridian.fanout].