rusty_rtos_json-core
The pure no_std core of rusty_rtos_json: a JSON
validator and in-place query engine, the Kairos remake of coreJSON. No CPU, no
allocator, no operating system. #![forbid(unsafe_code)].
- The validator:
JSON_Validate, strict ECMA-404. It agrees with coreJSON v3.3.1 on all 318 files of JSONTestSuite, and passes the suite outright — 95/95 accepted, 188/188 rejected. - The query engine:
JSON_SearchConstandJSON_Iterate, over 2,124 queries and 348 iterations compared against the C as a 3,089-line trace — status, offset, length and type, every time. - Zero allocation, on purpose. The depth stack is a fixed 32-byte array, so the crate runs the same on a Cortex-M with no allocator at all.
- A no-panic gate, because this one is fed by strangers: a validator is driven by bytes off a socket, so "cannot panic on any input" is the security property, not tidiness.
Conformance
Part of Remade With Rust
This crate is part of Kairos — FreeRTOS remade in memory-safe Rust, as independent packages that expose the API a FreeRTOS developer already knows and prove every scheduling decision against the C kernel's own trace.
Where this sits for Mata. Kairos is the real-time layer on the device
itself, and rusty_rtos_mqtt is the way out of it.
Paired with the MATA distributed cloud, robotics and sensor data has two
routes — read it on the machine, or reach it through the cloud — with the same
memory-safe crates at both ends.
The family:
rusty_rtos_core (the shared vocabulary),
rusty_rtos_kernel (the scheduler),
rusty_rtos_port (the architecture seam),
rusty_rtos_heap (the allocators),
rusty_rtos_json (coreJSON),
rusty_rtos_sntp (coreSNTP),
rusty_rtos_mqtt (coreMQTT),
rusty_rtos_backoff (backoffAlgorithm),
rusty_rtos-capi (the C ABI) and
rusty_rtos_demo (the conformance corpus).
All ten are on crates.io. Also check out
the rest of github.com/remade-with-rust.
About Mata Network
Mata Network builds sovereign, self-hostable privacy infrastructure — "stop sacrificing your privacy for convenience": wallet & identity, a password manager, a contact manager, and a browser extension that stops your information leaking as you browse.
Remade With Rust is our open-source home for the permissively-licensed building blocks that work depends on — including remade_ffmpeg_rs (the FFmpeg alternative) and FFAI (the AI media toolkit).
License
MIT OR Apache-2.0, at your option. FreeRTOS is MIT-licensed by Amazon.com, Inc. or its affiliates; this crate remakes its API and behaviour from the published sources and links no FreeRTOS code.