mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
10 lines
446 B
TOML
10 lines
446 B
TOML
[target.wasm32-unknown-unknown]
|
|
rustflags = [
|
|
# Enabled unstable APIs from web_sys
|
|
"--cfg=web_sys_unstable_apis",
|
|
# Enables features which are required for shared-memory
|
|
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
|
|
# Enables the possibility to import memory into wasm.
|
|
# Without --shared-memory it is not possible to use shared WebAssembly.Memory.
|
|
"-C", "link-args=--shared-memory --import-memory",
|
|
] |