pipeline-macro 0.1.3

A crate to create a pipeline in Rust
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 2 items with examples
  • Size
  • Source code size: 5.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Cackbone

pipeline-macro

crates.io

A crate to create a pipeline in Rust.

How to use it ?

  • Define a pipeline with type in input and type in output
  • Use run method to run this pipeline

Basic example:

    let pipeline = pipeline! {
        i32
        => add2
        => div_by_3
        => mul_by_83
        ;-> f64
    };

    let result = pipeline.run(3); // ~= 110.6666..

Closure example:

    let pipeline = pipeline! {
        i32
        => |i: i32| i + 2
        => div_by_3
        => mul_by_83
        ;-> f64
    };

    let result = pipeline.run(3); // ~= 110.6666..

How to build ?

    cargo build

How to run tests ?

    cargo test