remove: default_platform toml field (#3108)

This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-10-28 11:20:35 -07:00
1 parent d3404bd13a
commit 8a0eca1c8a
4 files changed
-18

No files matched your search

-8
View File
@@ -1,12 +1,8 @@
use crate::Platform;
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub(crate) struct ApplicationConfig {
#[serde(default = "default_platform")]
pub(crate) default_platform: Platform,
#[serde(default = "asset_dir_default")]
pub(crate) asset_dir: PathBuf,
@@ -14,10 +10,6 @@ pub(crate) struct ApplicationConfig {
pub(crate) sub_package: Option<String>,
}
pub(crate) fn default_platform() -> Platform {
Platform::Web
}
pub(crate) fn asset_dir_default() -> PathBuf {
PathBuf::from("assets")
}
-1
View File
@@ -22,7 +22,6 @@ impl Default for DioxusConfig {
fn default() -> Self {
Self {
application: ApplicationConfig {
default_platform: default_platform(),
asset_dir: asset_dir_default(),
sub_package: None,
},