protoflow-0.0.11 has been yanked.
Visit the last successful build:
protoflow-0.4.3
Protoflow
🚧 This is presently under heavy construction.
🛠️ Prerequisites
- Rust 1.70+
⬇️ Installation
Installation via Cargo
$ cargo add protoflow
👉 Examples
Importing the library
use *;
use *;
Wiring up a system or subsystem
use ;
use MockTransport;
use System;
let system = build;
Executing a system or subsystem
use StdRuntime;
use MockTransport;
use ;
let system = build;
let transport = new;
let mut runtime = new.unwrap;
let running_system = runtime.execute.unwrap;
Authoring a trivial function block
use FunctionBlock;
use ;
/// A block that simply echoes inputs to outputs.
;
Authoring a simple DROP block
use Block;
use ;
/// A block that simply discards all messages it receives.
;
Authoring a simple DELAY block
use Block;
use ;
use Duration;
/// A block that passes messages through while delaying them by a fixed
/// duration.
📚 Reference
Glossary
Blocks
Features
👨💻 Development
$ git clone https://github.com/artob/protoflow.git