mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-25 11:46:06 +02:00
Expose resolve_store_path
This commit is contained in:
@@ -21,8 +21,7 @@ use std::{
|
||||
sync::{Arc, Mutex},
|
||||
time::Duration,
|
||||
};
|
||||
use store::resolve_store_path;
|
||||
pub use store::{DeserializeFn, SerializeFn, Store, StoreBuilder, StoreInner};
|
||||
pub use store::{resolve_store_path, DeserializeFn, SerializeFn, Store, StoreBuilder, StoreInner};
|
||||
use tauri::{
|
||||
plugin::{self, TauriPlugin},
|
||||
AppHandle, Manager, ResourceId, RunEvent, Runtime, State,
|
||||
|
||||
@@ -23,7 +23,7 @@ pub type SerializeFn =
|
||||
pub type DeserializeFn =
|
||||
fn(&[u8]) -> Result<HashMap<String, JsonValue>, Box<dyn std::error::Error + Send + Sync>>;
|
||||
|
||||
pub(crate) fn resolve_store_path<R: Runtime>(
|
||||
pub fn resolve_store_path<R: Runtime>(
|
||||
app: &AppHandle<R>,
|
||||
path: impl AsRef<Path>,
|
||||
) -> crate::Result<PathBuf> {
|
||||
|
||||
Reference in New Issue
Block a user