Implement new rust API for bindings and release v0.3
1[package]
2name = "stretch-layout"
3version = "0.3.2"
4authors = ["Visly Inc. <emil@visly.app>"]
5edition = "2018"
6
7[lib]
8crate-type = ["cdylib", "rlib"]
9
10[features]
11default = ["console_error_panic_hook"]
12
13[dependencies]
14wasm-bindgen = "0.2"
15js-sys = "0.3"
16stretch = "0.3.2"
17
18# The `console_error_panic_hook` crate provides better debugging of panics by
19# logging them with `console.error`. This is great for development, but requires
20# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
21# code size when deploying.
22console_error_panic_hook = { version = "0.1.1", optional = true }
23
24# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
25# compared to the default allocator's ~10K. It is slower than the default
26# allocator, however.
27#
28# Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
29wee_alloc = { version = "0.4.2", optional = true }
30
31[dev-dependencies]
32wasm-bindgen-test = "0.2"
33
34[profile.release]
35opt-level = "s"
36
37[workspace]
38members = []