Beginning of frontend + recipe editing
[recipes.git] / frontend / Cargo.toml
1 [package]
2 name = "frontend"
3 version = "0.1.0"
4 authors = ["Greg Burri <greg.burri@gmail.com>"]
5 edition = "2021"
6
7 [lib]
8 crate-type = ["cdylib"]
9
10 [features]
11 default = ["console_error_panic_hook"]
12
13 [dependencies]
14 common = {path = "../common"}
15
16 wasm-bindgen = "0.2"
17 web-sys = {version = "0.3", features = ['console', 'Document', 'Element', 'HtmlElement', 'Node', 'Window', 'Location']}
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", optional = true}
24
25 # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
26 # compared to the default allocator's ~10K. It is slower than the default
27 # allocator, however.
28 wee_alloc = {version = "0.4", optional = true}
29
30 # [dev-dependencies]
31 # wasm-bindgen-test = "0.3"
32
33 [profile.release]
34 # Tell `rustc` to optimize for small code size.
35 opt-level = "s"
36 lto = true
37
38 [package.metadata.wasm-pack.profile.release]
39 wasm-opt = false