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.

37 lines
1.2 KiB

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