Skip to content

Commit

Permalink
fix: fs-read-file allowlist usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Jan 26, 2022
1 parent 10314cd commit c80e8b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") },
Expand Down
2 changes: 1 addition & 1 deletion tooling/bench/tests/files_transfer/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit c80e8b6

Please sign in to comment.