Macro script

Source
macro_rules! script {
    ($init_func:ident) => { ... };
}
Expand description

A macro for writing a “script” process. Using this will create the initial entry point for your process, including the standard init function which is called by the system, and a set of calls that:

  1. Parse the our string into an Address object.
  2. Wait for the first message to be sent to the process.
  3. Convert the message body into a string.
  4. Call the init function you provide with the crate::Address and the message body string.

This is best used by then using clap to create a Command and parsing the body string with it.