6 releases

0.2.0 Jul 21, 2023
0.2.0-alpha.3 Jul 3, 2023
0.1.0 Jan 23, 2023
0.1.0-alpha.1 Jul 1, 2023

#434 in #generic

MIT/Apache

9KB
203 lines

Concoct

Crates.io version docs.rs docs CI status

Concoct is a reactive runtime for embedded systems.

use concoct::{
    task::{self, Task},
    System,
};

fn app(_count: &mut i32) -> impl Task<i32> {
    task::from_fn(|_| dbg!("Hello World!"))
}

fn main() {
    let mut system = System::new(0, app);
    system.build();
    system.rebuild();
}

Goals

This crate is intended to provide a generic reactive system for a wide range of use cases. It was originally intended for user-interfaces, and is inspired by xilem. However, I noticed the system being created was better suited for robotics or animation (where continous systems are more common than discrete ones).

Dependencies

~295–740KB
~18K SLoC