Cargo.toml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [package]
  2. name = "client"
  3. version = "0.1.0"
  4. authors = ["Samir Menon <menon.samir@gmail.com>"]
  5. edition = "2018"
  6. [lib]
  7. crate-type = ["cdylib", "rlib"]
  8. [features]
  9. default = []
  10. [dependencies]
  11. spiral-rs = { path = "../spiral-rs" }
  12. rand = { version = "0.8.5" }
  13. rand_chacha = "0.3.1"
  14. wasm-bindgen = "0.2.74"
  15. # The `console_error_panic_hook` crate provides better debugging of panics by
  16. # logging them with `console.error`. This is great for development, but requires
  17. # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
  18. # code size when deploying.
  19. console_error_panic_hook = { version = "0.1.6", optional = true }
  20. # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
  21. # compared to the default allocator's ~10K. It is slower than the default
  22. # allocator, however.
  23. #
  24. # Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
  25. wee_alloc = { version = "0.4.5", optional = true }
  26. [dev-dependencies]
  27. wasm-bindgen-test = "0.3.13"
  28. [profile.release]
  29. # Tell `rustc` to optimize for small code size.
  30. opt-level = "s"