Skip to content
File

Blob: samples/hello-wasm/Cargo.toml

ini28 lines
1[package]
2name = "hello-wasm"
3version = "0.1.0"
4edition = "2021"
5 
6# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 
8[lib]
9crate-type = ["cdylib", "rlib"]
10 
11[features]
12default = ["console_error_panic_hook"]
13 
14[dependencies]
15cfg-if = "1.0"
16worker = "0.6.0"
17serde_json = "1.0.140"
18 
19# The `console_error_panic_hook` crate provides better debugging of panics by
20# logging them with `console.error`. This is great for development, but requires
21# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
22# code size when deploying.
23console_error_panic_hook = { version = "0.1.7", optional = true }
24 
25[profile.release]
26# Tell `rustc` to optimize for small code size.
27opt-level = "s"