Function tauri_utils::config::parse::parse
source ยท pub fn parse(
target: Target,
path: impl Into<PathBuf>,
) -> Result<(Config, PathBuf), 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 - Check if
Tauri.jsonexists a. Parse it withtomlb. Return error if all above steps failed - Return error if all above steps failed