Skip to content

Commit

Permalink
refactor(core): move file system endpoints to its own plugin (#6716)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored Apr 16, 2023
1 parent 22a7633 commit fc4d687
Show file tree
Hide file tree
Showing 19 changed files with 91 additions and 1,253 deletions.
6 changes: 6 additions & 0 deletions .changes/move-fs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---

Moved the file system APIs to its own plugin in the plugins-workspace repository.
10 changes: 5 additions & 5 deletions core/tauri/scripts/bundle.global.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion core/tauri/scripts/bundle.js

This file was deleted.

11 changes: 0 additions & 11 deletions core/tauri/src/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ mod clipboard;
#[cfg(dialog_any)]
mod dialog;
mod event;
#[cfg(fs_any)]
mod file_system;
#[cfg(global_shortcut_any)]
mod global_shortcut;
#[cfg(http_any)]
Expand Down Expand Up @@ -70,8 +68,6 @@ enum Module {
App(app::Cmd),
#[cfg(process_any)]
Process(process::Cmd),
#[cfg(fs_any)]
Fs(file_system::Cmd),
#[cfg(os_any)]
Os(operating_system::Cmd),
Window(Box<window::Cmd>),
Expand Down Expand Up @@ -116,13 +112,6 @@ impl Module {
.and_then(|r| r.json)
.map_err(InvokeError::from_anyhow)
}),
#[cfg(fs_any)]
Self::Fs(cmd) => resolver.respond_async(async move {
cmd
.run(context)
.and_then(|r| r.json)
.map_err(InvokeError::from_anyhow)
}),
#[cfg(os_any)]
Self::Os(cmd) => resolver.respond_async(async move {
cmd
Expand Down
Loading

0 comments on commit fc4d687

Please sign in to comment.