opfs 0.2.0

A Rust implementation of the Origin Private File System browser API.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "opfs"
version = "0.2.0"
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"

[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",
    "StorageManager",
    "FileSystemGetDirectoryOptions",
    "FileSystemRemoveOptions",
    "File",
    "WriteParams",
    "WriteCommandType",
]

[dev-dependencies.tempfile]
version = "3.20"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dirs]
version = "5.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.45.1"
features = ["full"]