pub fn read_config_source(path: &Path) -> Result<String, ConfigError>Expand description
Read a config file into a string with the same safety guarantees as load_config:
single fd for metadata+read (no TOCTOU), rejects symlinks at final path component on
Unix, rejects non-regular files (FIFO / device nodes), and enforces the 10 MB size cap.
Use this when you need the raw TOML source (e.g. for doctor --strict unknown-field
detection). For normal config loading, call load_config which parses the result.