-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCargo.toml
55 lines (48 loc) · 1.22 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
[package]
name = "pcisph-wasm"
version = "0.2.0"
repository = "https://github.com/cerrno/pcisph-wasm"
authors = ["Lucas V. Schuermann <[email protected]>"]
edition = "2021"
license = "MIT"
readme = "README.md"
publish = false
[workspace]
members = ["native", "solver"]
[lib]
crate-type = ["cdylib"]
[dependencies]
web-sys = { workspace = true }
cgmath = { workspace = true }
js-sys = { workspace = true }
wasm-bindgen = { workspace = true }
solver = { path = "solver" }
[workspace.dependencies]
env_logger = "0.10.0"
log = "0.4.17"
criterion = "0.4.0"
js-sys = "0.3.60"
wasm-bindgen = "0.2.83"
glam = { version = "0.22.0", features = ["fast-math", "scalar-math"] }
rayon = "1.6.1"
glium = "0.32.1"
wasm-bindgen-rayon = "1.0.3"
cgmath = "0.18.0"
web-sys = { version = "0.3.60", features = [
'OffscreenCanvas',
'WebGlBuffer',
'WebGl2RenderingContext',
'WebGlUniformLocation',
'WebGlProgram',
'WebGlShader',
] }
[profile.release]
lto = "fat"
panic = "abort"
strip = "debuginfo" # strip all
codegen-units = 1
debug = 0 # Set this to 1 or two for more useful backtraces or flamegraphs
# As of wasm-opt version 110, -O3 empirically leads to
# poorer performance
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Os"]