Crates.io | moongraph |
lib.rs | moongraph |
version | 0.4.3 |
source | src |
created_at | 2023-04-30 23:16:01.080638 |
updated_at | 2024-09-20 21:00:06.107849 |
description | Schedules and runs DAGs accessing shared resources. 🌙 |
homepage | |
repository | https://github.com/schell/moongraph |
max_upload_size | |
id | 853072 |
size | 77,264 |
moongraph
is a Rust library for scheduling, managing resources, and running directed acyclic graphs.
In moongraph
, graph nodes are normal Rust functions and graph edges are function parameters and function results.
The graph is built automatically by registering each function. moongraph
figures out how the functions connect by their parameters and their results.
moongraph
validates and schedules nodes to run in parallel where possible, using rayon
as the underlying parallelizing tech. This only happens when compiled with the "parallel" feature, on by default.
moongraph
is made up of two parts:
Scheduling and running DAGs is a common problem and I didn't find any prior art.
Read the introduction tutorial
moongraph
is in use in a number of other libraries (let me know if you use it in yours, and how :))
renderling
, a scrappy real-time renderer with advanced lightingapecs
, a well-performing ECS with async integration.This work will always be free and open source. If you use it (outright or for inspiration), please consider donating.
Renderling is free and open source. All code in this repository is dual-licensed under either:
MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.