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.

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