| Crates.io | crossflow |
| lib.rs | crossflow |
| version | 0.0.6 |
| created_at | 2025-10-16 11:43:07.732723+00 |
| updated_at | 2026-01-21 02:27:39.480958+00 |
| description | Reactive programming and workflow engine in bevy |
| homepage | |
| repository | https://github.com/open-rmf/crossflow |
| max_upload_size | |
| id | 1885803 |
| size | 2,067,772 |
[!IMPORTANT] For the ROS 2 integration feature, check out the
ros2branch.That feature is kept separate for now because it requires additional non-Rust setup. It will be merged into
mainafter dynamic message introspection is finished.
[!TIP] Check out a live demo of the workflow editor!
Try passing in
[20, 30]as the request message and run the workflow to see the message get split and calculated.
This library provides sophisticated reactive programming using the bevy ECS. In addition to supporting one-shot chains of async services, it can support reusable workflows with parallel branches, synchronization, races, and cycles. These workflows can be hierarchical, so a workflow can be used as a building block by other workflows.
This library can serve two different but related roles:
If you are a bevy application developer, then you may be interested in that first role, because crossflow is deeply integrated with bevy's ECS and integrates seamlessly into typical applications that are implemented with bevy.
If you just want something that can execute a graphical description of a workflow, then you will be interested in that second role, in which case bevy is just an implementation detail which might or might not matter to you.
There are several different categories of problems that crossflow sets out to solve. If any one of these use-cases is relevant to you, it's worth considering crossflow as a solution:
Crossflow has out-of-the box support for several message-passing middlewares, and we intend to keep growing this list:
"grpc")"zenoh")ros2 branch, feature = "ros2")Support for each of these middlewares is feature-gated so that the dependencies are not forced on users who do not need them. To activate all available middleware support at once, use the maximal feature.
Crossflow may be supported across several releases of Bevy in the future, although we only have one for the time being:
| bevy | crossflow |
|---|---|
| 0.16 | 0.0.x |
The main branch currently targets bevy version 0.16 (crossflow 0.0.x). We
will try to keep main up to date with the latest release of bevy, but you can
expect a few months of delay.
This is a Rust project that often uses the latest language features. We recommend
installing rustup and cargo using the installation instructions from the Rust
website: https://www.rust-lang.org/tools/install
For Ubuntu specifically you can run these commands to get the dependencies you need:
rustup and cargocurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
sudo apt-get install build-essential
Once dependencies are installed you can run the tests:
cargo test
You can find some illustrative examples for building workflows out of diagrams:
To use crossflow in your own Rust project, you can run
cargo add crossflow