Files
openidea/crates/ide-vfs/Cargo.toml
Arnaud Ritti 04b1b863df feat(plugins): add persistent private filesystem directories (#2051)
Closes #1947

Adds API 1.3 `fs.plugin-dir`: a persistent owner-only directory per plugin (0700 directories / 0600 files on Unix, owner-only ACL on Windows), separate from the packaged code, storage and secrets. The plugin reads and writes under it without fs.* grants, can open files there in the editor and pass their paths to approved programs; editor saves keep the protection, restart keeps the content, uninstall removes it. Traversal and symlink escapes into other plugins' directories are rejected (real-Wasm regressions).

Co-authored-by: arnaud-ritti <[email protected]>
2026-11-08 06:53:36 +08:00

33 lines
959 B
TOML

[package]
name = "ide-vfs"
description = "File system access: directory listing, text loading/saving with encoding detection, watching, project walking"
version.workspace = true
edition.workspace = true
license.workspace = true
[dependencies]
dunce.workspace = true
gix = { workspace = true, features = ["sha1", "sha256"] }
ide-core.workspace = true
serde.workspace = true
specta.workspace = true
ignore.workspace = true
globset.workspace = true
notify.workspace = true
encoding_rs.workspace = true
chardetng.workspace = true
trash.workspace = true
tracing.workspace = true
parking_lot.workspace = true
zip.workspace = true
[dev-dependencies]
tempfile.workspace = true
serde_json.workspace = true
[target.'cfg(unix)'.dependencies]
rustix = { version = "1.1", features = ["fs", "process"] }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Security_Authorization", "Win32_Storage_FileSystem"] }