wip
This commit is contained in:
parent
e5b7d397f0
commit
e638b5c289
12 changed files with 247 additions and 1 deletions
16
src/path.rs
16
src/path.rs
|
@ -1,3 +1,19 @@
|
|||
//! The path module provides utilities for working with file and directory paths.
|
||||
//!
|
||||
//! The APIs must be added to tauri.allowlist.path in tauri.conf.json:
|
||||
//! ```json
|
||||
//! {
|
||||
//! "tauri": {
|
||||
//! "allowlist": {
|
||||
//! "path": {
|
||||
//! "all": true, // enable all Path APIs
|
||||
//! }
|
||||
//! }
|
||||
//! }
|
||||
//! }
|
||||
//! ```
|
||||
//! It is recommended to allowlist only the APIs you use for optimal bundle size and security.
|
||||
|
||||
use std::path::PathBuf;
|
||||
use wasm_bindgen::JsValue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue