[package] name = "rhizomedb-wasm" version = "0.1.0" description = "RhizomeDB wasm bindings" keywords = [] categories = [] include = ["/src", "README.md", "LICENSE-APACHE", "LICENSE-MIT"] license = "Apache-2.0" readme = "README.md" edition = "2021" rust-version = "1.67" documentation = "https://docs.rs/rhizomedb-wasm" repository = "https://github.com/rhizomedb/rs-rhizome/tree/main/rhizome-wasm" authors = ["Quinn Wilton "] [lib] crate-type = ["cdylib", "rlib"] path = "src/lib.rs" [dependencies] # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for # code size when deploying. anyhow = "1.0" cid = { version = "0.10.0", features = ["serde-codec"] } console_error_panic_hook = { version = "0.1", optional = true } derive_more = "0.99" futures = { version = "0.3", default-features = false, features = ["std", "async-await"] } gloo-console = "0.2" js-sys = { version = "0.3", optional = true } rhizomedb = { path = "../rhizomedb", version = "0.1" } rhizomedb-runtime = { path = "../rhizomedb-runtime", version = "0.1" } serde = { version = "1.0", features = ["derive"] } serde-wasm-bindgen = "0.5" tracing = "0.1" wasm-bindgen = { version = "= 0.2.84", optional = true, features = ["serde-serialize"] } wasm-bindgen-futures = { version = "0.4", optional = true, features = ["futures-core-03-stream"] } wasm-bindgen-downcast = "0.1" web-sys = { version = "0.3", optional = true } [dev-dependencies] pretty_assertions = "1.3.0" wasm-bindgen-test = "0.3" [features] default = ["js"] full = ["js", "web"] js = [ "console_error_panic_hook", "js-sys", "wasm-bindgen", "wasm-bindgen-futures" ] web = ["web-sys"]