mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
* Introduce proper error types for a lot of functions, remove main catch-all type * Fix compilation and clippy issues * Map, unmap and drop always * Remove not required parentheses * Fix running on non-vulkan platforms * Add and use thiserror crate
57 lines
1.4 KiB
TOML
57 lines
1.4 KiB
TOML
[package]
|
|
name = "web"
|
|
version = "0.1.0"
|
|
publish = false
|
|
build = "build.rs"
|
|
|
|
description.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
keywords.workspace = true
|
|
authors.workspace = true
|
|
|
|
[features]
|
|
web-webgl = ["maplibre/web-webgl"]
|
|
trace = ["maplibre/trace", "tracing-wasm"]
|
|
default = []
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.56"
|
|
maplibre = { path = "../maplibre" }
|
|
maplibre-winit = { path = "../maplibre-winit", version = "0.1.0" }
|
|
|
|
log = "0.4.17"
|
|
rand = { version = "0.7", features = ["wasm-bindgen"] }
|
|
|
|
thiserror = "1.0"
|
|
|
|
console_error_panic_hook = "0.1.7"
|
|
# Exact version requirement can be removed as soon as https://github.com/gfx-rs/wgpu/pull/2954 is merged
|
|
web-sys = { version = "0.3.58", features = [
|
|
"Window",
|
|
"Worker", "WorkerGlobalScope", "DedicatedWorkerGlobalScope", "MessageEvent",
|
|
"Request", "RequestInit", "RequestMode", "Response", "Headers",
|
|
"ErrorEvent"
|
|
] }
|
|
js-sys = "0.3.58"
|
|
wasm-bindgen = "0.2.81"
|
|
wasm-bindgen-futures = "0.4.31"
|
|
console_log = { version = "0.2.0", features = ["color"] }
|
|
tracing-wasm = { version = "0.2.1", optional = true } # TODO: Low quality dependency (remove in a separate PR!)
|
|
# For passing Inputs in AsyncProcedureCalls
|
|
serde_json = "1.0.85"
|
|
flatbuffers = "22.10.26"
|
|
|
|
[build-dependencies]
|
|
flatc-rust = "0.2.0"
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3.31"
|