array-mumu 0.1.13

Array tools plugin for the Mumu ecosystem
Documentation
[package]
name = "array-mumu"
version = "0.1.13"
edition = "2021"
description = "Array tools plugin for the Mumu ecosystem"
license = "MIT OR Apache-2.0"
readme = "README.md"
homepage = "https://lava.nu11.uk"
repository = "https://gitlab.com/tofo/mumu-array"
keywords = ["array", "plugin", "mumu"]
categories = ["data-structures"]
authors = ["Tom Fotheringham <tom@nu11.co.uk>"]

[lib]
name = "mumuarray"
crate-type = ["lib", "cdylib"]

[features]
# No default features — avoids pulling host-only deps in wasm builds.
default = []
# Marker only; host builds are selected via target-specific deps below.
host = []
# Marker for wasm builds for *this crate* (core-mumu’s feature is named "wasm").
web = []

[dependencies]
# Keep the base dep neutral (no defaults). Target-specific sections below
# will enable the right feature for each build (host vs wasm).
mumu     = { package = "core-mumu", version = "0.7.3", default-features = false }
indexmap = "2"
rand     = "0.8"

# ── Native builds (non-wasm): enable core-mumu's host feature to match lava-mumu
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
mumu = { package = "core-mumu", version = "0.7.3", default-features = false, features = ["host"] }

# ── WASM builds: enable core-mumu's wasm feature and JS entropy for getrandom
[target.'cfg(target_arch = "wasm32")'.dependencies]
mumu      = { package = "core-mumu", version = "0.7.3", default-features = false, features = ["wasm"] }
getrandom = { version = "0.2", features = ["js"] }