You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.4KB

  1. [package]
  2. name = "client"
  3. version = "4.1.0"
  4. authors = ["Inderjit Gill <email@indy.io>"]
  5. edition = "2018"
  6. license = "AGPL-3.0"
  7. [lib]
  8. crate-type = ["cdylib", "rlib"]
  9. [features]
  10. default = ["console_log", "console_error_panic_hook"]
  11. [dependencies]
  12. cfg-if = "0.1.2"
  13. wasm-bindgen = "0.2"
  14. core = { path = "../core" }
  15. log = "0.4"
  16. console_log = { version = "0.1", optional = true }
  17. # The `console_error_panic_hook` crate provides better debugging of panics by
  18. # logging them with `console.error`. This is great for development, but requires
  19. # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
  20. # code size when deploying.
  21. console_error_panic_hook = { version = "0.1.1", optional = true }
  22. # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
  23. # compared to the default allocator's ~10K. It is slower than the default
  24. # allocator, however.
  25. #
  26. # Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
  27. wee_alloc = { version = "0.4.2", optional = true }
  28. [dev-dependencies]
  29. wasm-bindgen-test = "0.2"
  30. [profile.release]
  31. # Include function names in the `.wasm` for better debugging and
  32. # profiling. Comment this out if you're trying to create the smallest `.wasm`
  33. # binaries you can.
  34. debug = false
  35. # # Uncomment these lines to create smaller `.wasm` binaries, at the cost of
  36. # # longer compile times.
  37. codegen-units = 1
  38. incremental = false
  39. lto = true
  40. opt-level = "z"