# You must change these to your own details. [package] name = "quri_squiggle_mc" description = "Cached and parallel Monte Carlo simulations in WebAssembly" version = "0.0.1" authors = ["Quinn "] repository = "github.com/quantified-uncertainty/squiggle" license = "MIT" categories = ["wasm", "Monte Carlo"] readme = "README.md" edition = "2018" [package.metadata.wasm-pack.profile.dev] wasm-opt = true [package.metadata.wasm-pack.profile.profiling] wasm-opt = true [package.metadata.wasm-pack.profile.release] wasm-opt = true [lib] crate-type = ["cdylib"] [profile.release] # This makes the compiled code faster and smaller, but it makes compiling slower, # so it's only enabled in release mode. lto = true [features] # If you uncomment this line, it will enable `wee_alloc`: default = ["wee_alloc"] # wasm-bindgen = [ "instant/wasm-bindgen" ] [dependencies] # The `wasm-bindgen` crate provides the bare minimum functionality needed # to interact with JavaScript. wasm-bindgen = { version = "=0.2.79", features = ["serde-serialize"] } serde = { version = "1", features = ["derive"] } serde-wasm-bindgen = "0.4.3" # The `web-sys` crate allows you to interact with the various browser APIs, # like the DOM. web-sys = { version = "0.3", features = ["console"] } js-sys = "0.3.22" # `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size # compared to the default allocator's ~10K. However, it is slower than the default # allocator, so it's not enabled by default. wee_alloc = { version = "0.4.2", optional = true } # Numerical things rand = "0.8.5" getrandom = { version = "0.2.7", features = ["js"] } # rand_distr = "0.4.3" statistics = "0.4.1" kernel_density = { git = "https://github.com/daithiocrualaoich/kernel_density" } cached = { version = "0.38.0", features = ["wasm"] } # instant = { git = "https://github.com/sebcrozet/instant", features = ["wasm-bindgen"] } # The `console_error_panic_hook` crate provides better debugging of panics by # logging them with `console.error`. This is great for development, but requires # all the `std::fmt` and `std::panicking` infrastructure, so it's only enabled # in debug mode. [target."cfg(debug_assertions)".dependencies] console_error_panic_hook = "0.1.5" # These crates are used for running unit tests. [dev-dependencies] wasm-bindgen-test = "0.2.45" futures = "0.1.27" wasm-bindgen-futures = "0.3.22" quickcheck = "1" quickcheck_macros = "1"