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