-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
41 lines (35 loc) · 1.15 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
[package]
name = "polify"
version = "0.1.0"
authors = ["ClementTsang <[email protected]>"]
edition = "2018"
description = "A WebAssembly-compatible crate to create polygon art from images based on Delaunay triangulation."
license = "MIT"
repository = "https://github.com/ClementTsang/polify"
[dependencies]
thiserror = "1.0.58"
delaunator = "1.0.2"
rand = "0.8.5"
futures = "0.3.30"
wasm-bindgen = "0.2.92"
wasm-bindgen-futures = "0.4.42"
js-sys = "0.3.69"
web-sys = { version = "0.3.69", features = ["Headers", "WorkerGlobalScope", "Response", "ResponseInit", "console"] }
# For normal usage
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
image = { version = "0.25.0", default-features = true }
imageproc = "0.24.0"
rayon = "1.10.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
image = { version = "0.25.0", default-features = false, features = ["default-formats"] }
imageproc = { version = "0.24.0", default-features = false }
getrandom = { version = "0.2.12", features = ["js"] }
[lib]
crate-type = ["cdylib", "rlib"]
[workspace]
members = ["examples/simple_test"]
[profile.release]
strip = "symbols"
debug = false
lto = true
opt-level = "s"