Cargo.toml 961 B

12345678910111213141516171819202122232425262728293031323334
  1. [package]
  2. name = "numbat-wasm"
  3. authors = ["David Peter <[email protected]>"]
  4. version = "0.1.0"
  5. edition = "2021"
  6. [lib]
  7. crate-type = ["cdylib", "rlib"]
  8. [features]
  9. default = ["console_error_panic_hook"]
  10. [dependencies]
  11. wasm-bindgen = "0.2.63"
  12. # The `console_error_panic_hook` crate provides better debugging of panics by
  13. # logging them with `console.error`. This is great for development, but requires
  14. # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
  15. # code size when deploying.
  16. console_error_panic_hook = { version = "0.1.6", optional = true }
  17. # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
  18. # compared to the default allocator's ~10K. It is slower than the default
  19. # allocator, however.
  20. wee_alloc = { version = "0.4.5", optional = true }
  21. numbat = { path = "../numbat" }
  22. [dev-dependencies]
  23. wasm-bindgen-test = "0.3.13"
  24. [profile.release]
  25. # Tell `rustc` to optimize for small code size.
  26. opt-level = "s"