pub fn parse(path: impl Into<PathBuf>) -> Result<Config, ConfigError>Expand description
Parse the config from path, including alternative formats.
Hierarchy:
- Check if
tauri.conf.jsonexists a. Parse it withserde_jsonb. Parse it withjson5ifserde_jsonfails c. Return originalserde_jsonerror if all above steps failed - Check if
tauri.conf.json5exists a. Parse it withjson5b. Return error if all above steps failed - Return error if all above steps failed