File size: 964 Bytes
7932636 | 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 | [package]
name = "synapse-sensor"
description = "WASM sensor module — runs on MCU (wasm3) and gateway (wasmtime)"
version.workspace = true
edition.workspace = true
license.workspace = true
[lib]
# cdylib produces a .wasm file when targeting wasm32
# rlib allows other Rust crates to depend on this for testing
crate-type = ["cdylib", "rlib"]
[dependencies]
synapse-core = { path = "../synapse-core", default-features = false }
minicbor = { workspace = true }
heapless = { workspace = true }
dlmalloc = { version = "0.2", features = ["global"] }
# wit-bindgen generates guest-side bindings from the WIT definition
# Only needed when building as a component (gateway/host targets)
# For the MCU target (core wasm via wasm3), we use raw exports instead
# wit-bindgen = { version = "0.36", optional = true }
[features]
default = []
# Enable for component model builds (gateway/host)
# Disable for core module builds (MCU via wasm3)
# component = ["wit-bindgen"]
|