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.

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