fix: fs-read-file allowlist usage

This commit is contained in:
Lucas Nogueira
2022-01-21 11:30:26 -03:00
parent 10314cd5cf
commit c80e8b6886
2 changed files with 2 additions and 3 deletions

View File

@@ -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") },

View File

@@ -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" ]