squiggle/packages/mc/Cargo.toml
2022-08-17 13:04:00 -07:00

71 lines
2.3 KiB
TOML

# 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 <quinn@quantifieduncertainty.org>"]
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.82", features = ["serde-serialize"] }
serde = { version = "1", features = ["derive"] }
# The `web-sys` crate allows you to interact with the various browser APIs,
# like the DOM.
web-sys = { version = "0.3.59", features = ["console"] }
# `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", 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"] }
# 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"
js-sys = "0.3.22"
wasm-bindgen-futures = "0.3.22"
quickcheck = "1"
quickcheck_macros = "1"