mirror of
https://github.com/RoboSats/robo-identities.git
synced 2025-08-16 06:47:17 +00:00
35 lines
1.0 KiB
TOML
35 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 = ["console_error_panic_hook"]
|
|
|
|
[dependencies]
|
|
wasm-bindgen = "0.2.84"
|
|
wasm-bindgen-test = "0.3.37"
|
|
robohash = { path = "../robohash" }
|
|
robonames = { path = "../robonames" }
|
|
|
|
# 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*
|