Expose resolve_store_path

pull/1860/head
Tony 8 months ago
parent 7e33a5eba2
commit 1498eb5404
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956

@ -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> {

Loading…
Cancel
Save