File
Blob: samples/hello-wasm/Cargo.toml
| 1 | [package] |
| 2 | name = "hello-wasm" |
| 3 | version = "0.1.0" |
| 4 | edition = "2021" |
| 5 | |
| 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
| 7 | |
| 8 | [lib] |
| 9 | crate-type = ["cdylib", "rlib"] |
| 10 | |
| 11 | [features] |
| 12 | default = ["console_error_panic_hook"] |
| 13 | |
| 14 | [dependencies] |
| 15 | cfg-if = "1.0" |
| 16 | worker = "0.6.0" |
| 17 | serde_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. |
| 23 | console_error_panic_hook = { version = "0.1.7", optional = true } |
| 24 | |
| 25 | [profile.release] |
| 26 | # Tell `rustc` to optimize for small code size. |
| 27 | opt-level = "s" |