Function tauri_utils::config::parse::read_from
source ยท pub fn read_from(
target: Target,
root_dir: PathBuf,
) -> Result<Value, ConfigError>Expand description
Reads the configuration from the given root directory.
It first looks for a tauri.conf.json[5] or Tauri.toml file on the given directory. The file must exist.
Then it looks for a platform-specific configuration file:
tauri.macos.conf.json[5]orTauri.macos.tomlon macOStauri.linux.conf.json[5]orTauri.linux.tomlon Linuxtauri.windows.conf.json[5]orTauri.windows.tomlon Windowstauri.android.conf.json[5]orTauri.android.tomlon Androidtauri.ios.conf.json[5]orTauri.ios.tomlon iOS Merging the configurations using JSON Merge Patch (RFC 7396).