ruststream 0.7.5

Async messaging framework for Rust: broker-agnostic traits, router, codecs, and a conformance harness for broker authors.
Documentation
//! The tutorial's service at step 3 without the `macros` feature: one handler mounted straight
//! on the broker scope, before the reply of step 4 and the router of step 5 arrive.
//!
//! ```text
//! cargo run --example manual_tutorial_first_app --no-default-features --features memory,json,asyncapi,logging -- run
//! ```

// Step 3 mounts `Receive` alone; the module's reply types stay unused until step 4.
#[allow(dead_code)]
// --8<-- [start:app]
mod orders;

use std::process::ExitCode;

use ruststream::memory::prelude::*;
use ruststream::runtime::cli::run_main;

use crate::orders::Receive;

fn app() -> RustStream {
    RustStream::new(AppInfo::new("orders-service", "0.1.0")).with_broker(MemoryBroker::new(), |b| {
        b.include(subscriber("orders", Receive).build());
    })
}

fn main() -> ExitCode {
    run_main(app)
}
// --8<-- [end:app]