| Crates.io | dagrs-derive |
| lib.rs | dagrs-derive |
| version | 0.4.3 |
| created_at | 2024-12-24 12:23:03.882612+00 |
| updated_at | 2025-04-19 05:16:26.447932+00 |
| description | Dagrs follows the concept of Flow-based Programming and is suitable for the execution of multiple tasks with graph-like dependencies. Dagrs has the characteristics of high performance and asynchronous execution. It provides users with a convenient programming interface. |
| homepage | |
| repository | https://github.com/dagrs-dev/dagrs |
| max_upload_size | |
| id | 1493843 |
| size | 21,709 |
Welcome to Dagrs! Dagrs is an easy-to-use, high-performance asynchronous task programming framework written in Rust. Dagrs follows the concept of Flow based Programming, and aims to provide users with convenient programming interface.
When you orchestrate multitasking applications asynchronously, you can make them scale better by reducing the cost of performing multiple operations simultaneously. However, writing correct asynchronous code and managing communication between different tasks is annoying. Dagrs provides convenient task abstraction and asynchronous running & communication mechanisms to reduce development costs.
The development of dagrs follows the concept of Flow-based Programming.
Flow-based Programming(FBP) was invented by J. Paul Morrison in the early 1970s. It was initially implemented in software for a Canadian bank. Over the years, it’s had various names but has always maintained its core principles of reducing development time and managing processes efficiently.
FBP treats applications as networks of 'black box' processes that communicate by sending and receiving data, referred to as Information Packets, over predefined connections. It’s a component-oriented approach that fits well with modular software architecture.
| Feature | Description |
|---|---|
| "Black box" Processes | Encapsulated processes and information packets. |
| Independent Network Construction | The external definition of connections. |
| Asynchronism | Asynchronous execution of processes and asynchronous communication. |
| Ownership and Lifetime | Information packets with unique ownership and lifetime. |
| Bounded and Finite Connction | Connections between processes are bounded, with a finite capacity. |
| Reverse Pressure | Congestion control when there are too many packets. |
Dagrs leverages cutting-edge technologies to ensure functionality and performance:
Rust - A language empowering everyone to build reliable and efficient software.
tokio - An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.
async_trait - Type erasure for async trait methods.
The dagrs project relies on community contributions and aims to simplify getting started. To develop dagrs, clone the repository, then install all dependencies, run the test suite and try it out locally. Pick an issue, make changes, and submit a pull request for community review.
Here are some guidelines for contributing to this project:
good first issue are suitable for newcomers. You can also look for issues marked help wanted.dagrs repository and create a branch for your changes.Signed-off-by line to your commit messages. This certifies that you wrote or have the right to submit the code you are contributing to the project.dagrs maintainers will review your changes and may request modifications before merging. Please ensure your code is properly formatted and follows the same style as the existing codebase.Your contributions are highly appreciated. Feel free to ask any questions if you have any doubts or facing issues while contributing. The more you contribute, the more you will learn and improve your skills.
To comply with the requirements, contributors must include both a Signed-off-by line and a PGP signature in their commit messages. You can find more information about how to generate a PGP key here.
Git even has a -s command line option to append this automatically to your commit message, and -S to sign your commit with your PGP key. For example:
$ git commit -S -s -m 'This is my commit message'
If you have a local git environment and meet the criteria below, one option is to rebase the branch and add your Signed-off-by lines in the new commits. Please note that if others have already begun work based upon the commits in this branch, this solution will rewrite history and may cause serious issues for collaborators (described in the git documentation under “The Perils of Rebasing”).
You should only do this if:
-allow-empty)To add your Signed-off-by line to every commit in this branch:
git rebase HEAD~1 --signoffgit push --force-with-lease origin mainFreighter is licensed under this Licensed:
Email: Quanyi Ma eli@patch.sh, Xiaolong Fu njufxl@gmail.com
Welcome to join our discord channel https://discord.gg/4JzaNkRP