mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix: fs-read-file allowlist usage
This commit is contained in:
@@ -13,8 +13,7 @@ fn main() {
|
||||
|
||||
// fs
|
||||
fs_all: { any(api_all, feature = "fs-all") },
|
||||
fs_read_text_file: { any(fs_all, feature = "fs-read-text-file") },
|
||||
fs_read_binary_file: { any(fs_all, feature = "fs-read-binary-file") },
|
||||
fs_read_file: { any(fs_all, feature = "fs-read-file") },
|
||||
fs_write_file: { any(fs_all, feature = "fs-write-file") },
|
||||
fs_write_binary_file: { any(fs_all, feature = "fs-write-binary-file") },
|
||||
fs_read_dir: { any(fs_all, feature = "fs-read-dir") },
|
||||
|
||||
@@ -11,7 +11,7 @@ tauri-build = { path = "../../../../../core/tauri-build", features = [ "codegen"
|
||||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = [ "derive" ] }
|
||||
tauri = { path = "../../../../../core/tauri", features = ["fs-read-binary-file"] }
|
||||
tauri = { path = "../../../../../core/tauri", features = ["fs-read-file"] }
|
||||
|
||||
[features]
|
||||
default = [ "custom-protocol" ]
|
||||
|
||||
Reference in New Issue
Block a user