I'm tinkering a lot with Tauri and Automerge-Repo lately.
They're a relatively good pair since they both combine local applications, rust, and web technologies.
However, automerge-repo by default focuses on browser technologies and/or Node.js, meaning that the limited e.g. filesystem access from @tauri-apps/api can be a problem.
Or an opportunity - here's initially a '@tauri-apps/api/fs'
, @tauri-apps/api/path
, and @tauri-apps/api/os
-using StorageAdapter
(largely a 1:1 copy from NodeFSStorageAdapter and the missing relative
function from node's path module.)
To work, TauriFileSystemStorageAdapter
needs the following modules properly set up within tauri.conf.json
:
fs
path
os