Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [package]
  2. name = "wnfs-wasm"
  3. version = "0.2.2"
  4. description = "WebNative Filesystem API (WebAssembly)"
  5. keywords = ["wnfs", "wasm", "webnative", "ipfs", "decentralisation"]
  6. categories = [
  7. "filesystem",
  8. "cryptography",
  9. "web-programming",
  10. "wasm",
  11. ]
  12. license = "Apache-2.0"
  13. readme = "README.md"
  14. edition = "2021"
  15. rust-version = "1.75"
  16. repository = "https://github.com/wnfs-wg/rs-wnfs/tree/main/wnfs-wasm"
  17. homepage = "https://fission.codes"
  18. authors = ["The Fission Authors"]
  19. [dependencies]
  20. anyhow = "1.0"
  21. bytes = "1.4.0"
  22. cfg-if = "1.0"
  23. chrono = { version = "0.4", default-features = false, features = ["clock", "std", "wasmbind"] }
  24. console_error_panic_hook = { version = "0.1", optional = true }
  25. getrandom = { version = "0.2", features = ["js"] }
  26. js-sys = { version = "0.3", optional = true }
  27. libipld-core = { version = "0.16" }
  28. rand_core = "0.6"
  29. wasm-bindgen = { version = "0.2.87", optional = true, features = ["serde-serialize"] }
  30. wasm-bindgen-futures = { version = "0.4", optional = true }
  31. web-sys = { version = "0.3", optional = true }
  32. wnfs = { path = "../wnfs", version = "=0.2.2" }
  33. wnfs-nameaccumulator = { path = "../wnfs-nameaccumulator", version = "=0.2.0" }
  34. [dev-dependencies]
  35. wasm-bindgen-test = "0.3"
  36. [lib]
  37. crate-type = ["cdylib", "rlib"]
  38. path = "src/lib.rs"
  39. [features]
  40. default = ["js"]
  41. wasm = ["wnfs/wasm"]
  42. js = ["chrono/wasmbind", "console_error_panic_hook", "js-sys", "wasm", "wasm-bindgen", "wasm-bindgen-futures"]
  43. web = ["wasm", "web-sys"]