[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"]