/
Cargo.toml
58 lines (50 loc) · 1.43 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
[package]
name = "wgpu-layers"
version = "0.1.0"
description = "WebGPU mapping renderer for OpenLayers"
authors = ["Paul Lange <paul.lange@data-experts.de>"]
repository = "https://github.com/codeart1st/wgpu-layers"
license = "MIT"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
multithreaded = []
[dependencies]
log = "0.4.21"
wgpu = "0.19.2"
rayon = "1.9.0"
futures = "0.3.30"
geo-types = "0.7.13"
bytemuck = "1.14.3"
bytemuck_derive = "1.5.0"
mvt-reader = "1.2.0"
earcutr = "0.4.3"
glam = { version = "0.25.0", default-features = false, features = ["libm", "bytemuck"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.91"
wasm-bindgen-futures = "0.4.40"
wasm-bindgen-rayon = "1.2.1" # alternative https://github.com/chemicstry/wasm_thread
console_log = { version = "1.0.0", optional = true }
console_error_panic_hook = { version = "0.1.7", optional = true }
web-sys = { version = "0.3.64", features = [
"OffscreenCanvas",
"HtmlElement", # from here all features are for integrationtests
"CssStyleDeclaration",
"HtmlCanvasElement",
"FileReader",
"Blob"
]}
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pollster = "0.3.0"
env_logger = "0.11.2"
winit = "0.29"
[dev-dependencies]
wasm-bindgen-test = "0.3.40"
pdqhash = "0.1.1"
js-sys = "0.3.68"
[profile.release]
opt-level = "s"
lto = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = false # version in wasm-pack is to old for simd128