Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Macro

use_api

macro_rules! use_api {
    ($fs:path, $server:path) => { ... };
    () => { ... };
}
Expand description

Defines local filesystem API aliases with generated permissions.

The zero-argument form expands to:

  • FileSystem = fs::FileSystem<FileSystemPermissions>
  • File = fs::File<FileSystemPermissions>
  • Dir = fs::Dir<FileSystemPermissions>

Use this from an app crate before constructing a FileSystem handle.