SensorML ๐ฐ๏ธ
A minimalist, testable Rust crate for parsing and serializing SensorML documents in XML and JSON. Designed for integration with mapping layers, adapters, and future transformation pipelines.
โจ Features
- Parse SensorML from XML and JSON
- Serialize SensorML to XML and JSON
- Validate sensor references and ISO 8601 timestamps
- High test coverage and mutation resistance
- Depends only on
serde,quick-xml, andchrono
๐ฆ Installation
Add to your Cargo.toml:
= "0.1"
๐ Example
use ;
use json;
let doc = SensorMLDocument ;
let json = serialize_to_json?;
let parsed = parse_from_json?;
parsed.validate?; // checks sensor references and timestamp format
๐งช Testing
๐ License
MIT ยฉ 2025 Egon Kastelijn