wick-stdlib 0.2.0

The default standard library for the Wick project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use futures::StreamExt;
use wick_packet::{fan_out, Observer, Packet, PacketStream};

use crate::request_response;

request_response!(job, minijob => {
  inputs: {
    left => String,
    right => String,
  },
  output: "output",
});

#[allow(clippy::needless_pass_by_value)]
fn minijob(left: String, right: String) -> Result<String, wick_packet::Error> {
  Ok(format!("{}{}", left, right))
}