Skip to content

Commit fc4d687

Browse files
authored
refactor(core): move file system endpoints to its own plugin (#6716)
1 parent 22a7633 commit fc4d687

File tree

19 files changed

+91
-1253
lines changed

19 files changed

+91
-1253
lines changed

.changes/move-fs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"api": patch
3+
"tauri": patch
4+
---
5+
6+
Moved the file system APIs to its own plugin in the plugins-workspace repository.

core/tauri/scripts/bundle.global.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/tauri/scripts/bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/tauri/src/endpoints.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ mod clipboard;
1818
#[cfg(dialog_any)]
1919
mod dialog;
2020
mod event;
21-
#[cfg(fs_any)]
22-
mod file_system;
2321
#[cfg(global_shortcut_any)]
2422
mod global_shortcut;
2523
#[cfg(http_any)]
@@ -70,8 +68,6 @@ enum Module {
7068
App(app::Cmd),
7169
#[cfg(process_any)]
7270
Process(process::Cmd),
73-
#[cfg(fs_any)]
74-
Fs(file_system::Cmd),
7571
#[cfg(os_any)]
7672
Os(operating_system::Cmd),
7773
Window(Box<window::Cmd>),
@@ -116,13 +112,6 @@ impl Module {
116112
.and_then(|r| r.json)
117113
.map_err(InvokeError::from_anyhow)
118114
}),
119-
#[cfg(fs_any)]
120-
Self::Fs(cmd) => resolver.respond_async(async move {
121-
cmd
122-
.run(context)
123-
.and_then(|r| r.json)
124-
.map_err(InvokeError::from_anyhow)
125-
}),
126115
#[cfg(os_any)]
127116
Self::Os(cmd) => resolver.respond_async(async move {
128117
cmd

0 commit comments

Comments
 (0)