DNA transcription and translation in wasm with rust
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.

45 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
  1. [package]
  2. name = "wasm-dna-transcription-translation"
  3. version = "0.1.0"
  4. authors = ["rav4s <ravidhruvishshah@gmail.com>"]
  5. edition = "2018"
  6. wasm-opt = false
  7. [lib]
  8. crate-type = ["cdylib", "rlib"]
  9. [features]
  10. default = ["console_error_panic_hook"]
  11. [dependencies]
  12. wasm-bindgen = "0.2.63"
  13. # The `console_error_panic_hook` crate provides better debugging of panics by
  14. # logging them with `console.error`. This is great for development, but requires
  15. # all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
  16. # code size when deploying.
  17. console_error_panic_hook = { version = "0.1.6", optional = true }
  18. # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
  19. # compared to the default allocator's ~10K. It is slower than the default
  20. # allocator, however.
  21. #
  22. # Unfortunately, `wee_alloc` requires nightly Rust when targeting wasm for now.
  23. wee_alloc = { version = "0.4.5", optional = true }
  24. [dependencies.web-sys]
  25. version = "0.3.50"
  26. features = [
  27. 'Document',
  28. 'Element',
  29. 'HtmlElement',
  30. 'Node',
  31. 'Window',
  32. ]
  33. [dev-dependencies]
  34. wasm-bindgen-test = "0.3.13"
  35. [profile.release]
  36. # Tell `rustc` to optimize for small code size.
  37. opt-level = "s"