Cargo.toml 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. [package]
  2. name = "gs1-wasm"
  3. version = "0.1.0"
  4. authors = ["koehr <n@koehr.in>"]
  5. edition = "2018"
  6. [lib]
  7. crate-type = ["cdylib", "rlib"]
  8. [features]
  9. default = ["wee_alloc"]
  10. [dependencies]
  11. gs1 = "0.1.5"
  12. hex = "0.4.0"
  13. wasm-bindgen = "0.2"
  14. # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
  15. # compared to the default allocator's ~10K. It is slower than the default
  16. # allocator, however.
  17. wee_alloc = { version = "0.4.5", optional = true }
  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.
  22. console_error_panic_hook = { version = "0.1.1", optional = true }
  23. [dev-dependencies]
  24. wasm-bindgen-test = "0.2"
  25. [profile.release]
  26. # Tell `rustc` to optimize for small code size.
  27. opt-level = "s"