feat(fs): enhance scope config to accept string as well (#1053)

* feat(fs): enhance scope config to accept string as well

* clippy

* Update protocol.rs

* regression resolving path variables

* add change file

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
Amr Bashir
2024-03-26 16:37:03 +02:00
committed by GitHub
parent fe4ad4dd5c
commit f39d362add
10 changed files with 189 additions and 112 deletions
+11 -1
View File
@@ -11,7 +11,17 @@ use std::{
},
};
#[derive(Debug, schemars::JsonSchema)]
use serde::Deserialize;
#[doc(hidden)]
#[derive(Deserialize)]
#[serde(untagged)]
pub enum EntryRaw {
Value(PathBuf),
Object { path: PathBuf },
}
#[derive(Debug)]
pub struct Entry {
pub path: PathBuf,
}