[package]
edition = "2024"
name = "opfs"
version = "0.3.1"
authors = ["Andre Popovitch <andre@popovit.ch>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust implementation of the Origin Private File System browser API."
readme = "README.md"
license = "MIT"
repository = "https://github.com/anchpop/opfs.git"
[lib]
name = "opfs"
path = "src/lib.rs"
[[example]]
name = "advanced_file_ops"
path = "examples/advanced_file_ops.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[test]]
name = "app_identity"
path = "tests/app_identity.rs"
[[test]]
name = "configured_root"
path = "tests/configured_root.rs"
[dependencies.futures]
version = "0.3.31"
[dependencies.js-sys]
version = "0.3"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.wasm-bindgen]
version = "0.2.84"
[dependencies.wasm-bindgen-futures]
version = "0.4"
features = ["futures-core-03-stream"]
[dependencies.web-sys]
version = "0.3.77"
features = [
"Storage",
"Window",
"FileSystemDirectoryHandle",
"FileSystemFileHandle",
"FileSystemWritableFileStream",
"FileSystemGetFileOptions",
"FileSystemCreateWritableOptions",
"Blob",
"Navigator",
"WorkerGlobalScope",
"WorkerNavigator",
"StorageManager",
"FileSystemGetDirectoryOptions",
"FileSystemRemoveOptions",
"File",
"WriteParams",
"WriteCommandType",
]
[dev-dependencies.tempfile]
version = "3.20"
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "ios")))'.dependencies.directories]
version = "6"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.45.1"
features = ["full"]
[target.'cfg(target_os = "ios")'.dependencies.objc2-foundation]
version = "0.3"
features = [
"std",
"NSArray",
"NSString",
"NSPathUtilities",
]
default-features = false