Skip to main content

Module config

Module config 

Source
Expand description

v1.4.110 P1-2: XmlConfig + RuntimeConfig + load / merge 抽自 main.rs lines 498-842.

Structs§

RuntimeConfig
合并后的运行时配置
XmlConfig

Functions§

load_toml_config
从 TOML 配置文件读取配置 (v1.4.2+;字段与 XmlConfig 一致)
load_xml_config
从 XML 配置文件读取配置 (兼容 C++ <futu_opend> 格式)
merge_config
合并 CLI args + 配置文件 (CLI 优先)
read_explicit_credential_file
codex 0547 F1+F2 (P2) — explicit user-supplied credential / secret 文件 读取 helper. 用户显式(CLI flag 或 TOML/XML config) 传入路径但读取失败 时 fail-closed 返 Err. 让 daemon abort 而非 silent fallback.