2023-07-23 08:39:33 -07:00

36 lines
1.0 KiB
TOML

[package]
name = "robo-identities-wasm"
version = "0.1.0"
authors = ["Reckless_Satoshi <reckless.satoshi@protonmail.com>"]
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
# [features]
# default = ["wee_alloc"]
[dependencies]
wasm-bindgen = "0.2.84"
robohash = { path = "../robohash" }
robonames = { path = "../robonames" }
js-sys = "0.3.64"
wasm-bindgen-futures = "0.4.37"
# 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.
console_error_panic_hook = { version = "0.1.7", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3.34"
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary*