From c80e8b6886cd95bc1f8455ebcc0742ff1920fd38 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Fri, 21 Jan 2022 11:30:26 -0300 Subject: [PATCH] fix: `fs-read-file` allowlist usage --- core/tauri/build.rs | 3 +-- tooling/bench/tests/files_transfer/src-tauri/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/tauri/build.rs b/core/tauri/build.rs index 208e42d0d..f1442089b 100644 --- a/core/tauri/build.rs +++ b/core/tauri/build.rs @@ -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") }, diff --git a/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml b/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml index 1e7a4954f..d146c4228 100644 --- a/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml +++ b/tooling/bench/tests/files_transfer/src-tauri/Cargo.toml @@ -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" ]