This repository was archived by the owner on May 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
69 lines (62 loc) · 2.09 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "decay"
version = "0.1.0"
edition = "2021"
description = "A general educational scientific toy/tool base for simulations; specifically focused on molecular or brownian dynamics, it also includes a visualizer and a react app."
license-file = "LICENSE"
repository = "https://www.github.com/astatide/decay"
# this adds support for WASM and wgpu and compiling down to something a browser can run
[lib]
crate-type = ["cdylib", "rlib"]
# this is a fix for compiling on an M1 Mac
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
winit = "0.28.6"
getrandom = { version = "0.2", features = ["js"] }
env_logger = "0.10"
log = "0.4"
wgpu = "0.15"
cfg-if = "1"
pollster = "0.3.0" # awaiting the future; simple
bytemuck = { version = "1.13.1", features = [ "derive" ] }
cgmath = "0.18" # linear algebra baby! For graphics mostly.
nalgebra = "*" # non computer graphics linear algebra
rand = "0.8.5"
num = "0.4.0"
# the other regular dependencies...
decay_si = { path = "crates/decay_si" }
decay_si_derive = { path = "crates/decay_si_derive" }
decay_forge = { path = "crates/decay_forge" }
Legion = { path = "crates/Legion" }
[dependencies.num-traits]
version = "0.2"
default-features = false
features = ["libm"] # <--- Uncomment if you wish to use `Float` and `Real` without `std`
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.7"
console_log = "1.0.0"
wgpu = { version = "0.15", features = ["webgl"]}
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4.36"
web-sys = { version = "0.3", features = [
"Document",
"Window",
"Element",
"MouseEvent",
"KeyboardEvent",
'CssStyleDeclaration',
'EventTarget',
'HtmlCanvasElement',
'HtmlElement',
'MouseEvent',
'Node',
]}
[dependencies.uuid]
version = "1.3.3"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
]