# 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 = "2021" rust-version = "1.75" name = "wnfs-wasm" version = "0.2.2" authors = ["The Fission Authors"] description = "WebNative Filesystem API (WebAssembly)" homepage = "https://fission.codes" readme = "README.md" keywords = [ "wnfs", "wasm", "webnative", "ipfs", "decentralisation", ] categories = [ "filesystem", "cryptography", "web-programming", "wasm", ] license = "Apache-2.0" repository = "https://github.com/wnfs-wg/rs-wnfs/tree/main/wnfs-wasm" resolver = "1" [lib] crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [dependencies.anyhow] version = "1.0" [dependencies.bytes] version = "1.4.0" [dependencies.cfg-if] version = "1.0" [dependencies.chrono] version = "0.4" features = [ "clock", "std", "wasmbind", ] default-features = false [dependencies.console_error_panic_hook] version = "0.1" optional = true [dependencies.getrandom] version = "0.2" features = ["js"] [dependencies.js-sys] version = "0.3" optional = true [dependencies.libipld-core] version = "0.16" [dependencies.rand_core] version = "0.6" [dependencies.wasm-bindgen] version = "0.2.87" features = ["serde-serialize"] optional = true [dependencies.wasm-bindgen-futures] version = "0.4" optional = true [dependencies.web-sys] version = "0.3" optional = true [dependencies.wnfs] version = "=0.2.2" [dependencies.wnfs-nameaccumulator] version = "=0.2.0" [dev-dependencies.wasm-bindgen-test] version = "0.3" [features] default = ["js"] js = [ "chrono/wasmbind", "console_error_panic_hook", "js-sys", "wasm", "wasm-bindgen", "wasm-bindgen-futures", ] wasm = ["wnfs/wasm"] web = [ "wasm", "web-sys", ]