You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the offending pull request is #1864, as base64 was referenced for fs-write-binary-file but not for fs-all.
Stack Trace
error[E0433]: failed to resolve: use of undeclared crate or module `base64`
--> /home/cynthia/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.5/src/endpoints/file_system.rs:359:3
|
359 | base64::decode(contents)
| ^^^^^^ use of undeclared crate or module `base64`
error[E0433]: failed to resolve: use of undeclared crate or module `base64`
--> /home/cynthia/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.5/src/error.rs:47:24
|
47 | Base64Decode(#[from] base64::DecodeError),
| ^^^^^^ use of undeclared crate or module `base64`
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
--> /home/cynthia/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.5/src/endpoints/file_system.rs:361:16
|
361 | .and_then(|c| {
| ^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `[u8]`
help: function arguments must have a statically known size, borrowed types always have a known size
|
361 | .and_then(|&c| {
| ^
error: aborting due to 3 previous errors
The text was updated successfully, but these errors were encountered:
The important thing is really the tauri.conf.json (+ the Cargo.toml file) and the modification to the allowlist, as otherwise it's just what tauri init gives.
Describe the bug
When compiling Tauri with the fs-all feature only, the
base64
crate is not included which causes compile errors.To Reproduce
Steps to reproduce the behavior:
{ "fs": { "all": true } }
(effectively enabling the fs-all feature)tauri dev
Expected behavior
The app should compile and run properly
Platform and Versions (required):
Additional context
It seems the offending pull request is #1864, as
base64
was referenced forfs-write-binary-file
but not forfs-all
.Stack Trace
The text was updated successfully, but these errors were encountered: