Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Attempt at recreatinghttps://github.com/cpp-taskflow/cpp-taskflow in Rust

NotificationsYou must be signed in to change notification settings

mm318/rs_taskflow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attempt at recreatinghttps://github.com/cpp-taskflow/cpp-taskflow in Rust.

build

Example:

#[derive_task((i32,),(i32,))]structFlowTask;letmut flow =Flow::new();let a = flow.new_task(FlowTask::new(|x:&i32|*x +1));let b = flow.new_task(FlowTask::new(|x:&i32|*x -2));let c = flow.new_task(FlowTask::new(|x:&i32|*x +3));flow.connect_output0_to_input0(&a,&b);flow.connect_output0_to_input0(&b,&c);let flow_exec = flow.execute().await;let result = flow_exec.get_output_0(&c);

For a more complete example, seefull_example_test.rs.

Usage

Installation

git clone https://github.com/mm318/rs_taskflow.git

Build

For development iterations

# disables use of the macros in rs_taskflow_derivecargotest --no-default-features -- --nocapture

For testing build with more debug messages

cargotest -- --nocapture

For testing release build

cargotest --release -- --nocapture

Requirements

Developed using Ubuntu 20.04 and Rust 1.64.
Tested nightly usingubuntu-latest and latest stable Rust (as fetched byactions-rs/toolchain@v1).


[8]ページ先頭

©2009-2025 Movatter.jp