protoflow-0.0.7 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 *;
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.
Authoring a trivial function block
use FunctionBlock;
use ;
/// A block that simply echoes inputs to outputs.
;
Wiring up a system or subsystem
use ;
use ;
let mut system = new;
let constant = system.block;
let blackhole = system.block;
system.connect?;
📚 Reference
Blocks
Transports
Runtimes
Features
👨💻 Development
$ git clone https://github.com/artob/protoflow.git