pub struct FerridriverConfig {
pub extensions: Vec<String>,
pub scripting: ScriptingConfig,
pub mcp: McpConfig,
pub test: TestConfig,
}Expand description
Top-level configuration document.
Fields§
§extensions: Vec<String>Extension files (plugins): each a single .js/.mjs/.ts/.mts
file or a directory scanned shallowly for those. An extension
registers MCP tools (defineTool) and/or BDD steps
(Given/When/Then); the MCP server consumes its tools and the
test runner consumes its steps. Top-level (not under mcp) because
both hosts load it.
scripting: ScriptingConfigSandbox-relaxation knobs for the scripting VM (default-deny).
mcp: McpConfigMCP server configuration.
test: TestConfigTest runner configuration.
Implementations§
Source§impl FerridriverConfig
impl FerridriverConfig
Sourcepub fn load(explicit: Option<&Path>) -> Result<Self>
pub fn load(explicit: Option<&Path>) -> Result<Self>
Load the unified configuration document.
If explicit is Some, that path is read directly and the format is
inferred from the file extension. Otherwise the standard search paths
are tried; if none exist, Self::default() is returned.
§Errors
Returns an error if a file is found but cannot be read or parsed.