1 [package]
2 name = "smbcloud-auth-sdk-wasm"
3 version = "0.4.5"
4 edition = "2024"
5 authors = ["Seto Elkahfi <hej@setoelkahfi.se>"]
6 description = "Browser bindings for the smbCloud Auth SDK."
7 license = "Apache-2.0"
8 repository = "https://github.com/smbcloudXYZ/smbcloud-cli"
9 documentation = "https://smbcloud.xyz/posts"
10 keywords = ["cli", "cloud", "web2", "web3", "smbcloud"]
11 categories = [
12 "command-line-utilities",
13 "command-line-interface",
14 "cryptography::cryptocurrencies",
15 "development-tools",
16 "wasm",
17 ]
18 readme = "README.md"
19
20 [lib]
21 # Pin the lib name so wasm-pack artifact filenames (smbcloud_auth_wasm.js etc.)
22 # remain stable regardless of the crate/directory rename.
23 name = "smbcloud_auth_wasm"
24 crate-type = ["cdylib", "rlib"]
25
26 [dependencies]
27 serde-wasm-bindgen = "=0.6.5"
28 smbcloud-auth-sdk = { workspace = true }
29 smbcloud-network = { workspace = true }
30 smbcloud-networking = { workspace = true }
31 wasm-bindgen = { workspace = true }
32 wasm-bindgen-futures = "0.4.50"
33
34 # uuid's v4 feature needs a randomness source on wasm32-unknown-unknown.
35 # The `js` feature wires it to the Web Crypto API (crypto.getRandomValues).
36 # This only activates when building for wasm32 targets.
37 [target.'cfg(target_arch = "wasm32")'.dependencies]
38 uuid = { version = "1", features = ["js"] }