reflow_pack_sdk 0.2.1

Author-facing crate for building Reflow actor packs — safe wrapper over the pack ABI plus the #[reflow_pack] macro.
Documentation

Author-facing crate for Reflow actor packs.

use reflow_pack_sdk::{reflow_pack, PackHost};
use std::sync::Arc;

struct Hello;
impl reflow_pack_sdk::Actor for Hello { /* … */ }

#[reflow_pack]
fn register(host: &mut PackHost) {
    host.register("my.pack.hello", || Arc::new(Hello));
}

A pack crate needs exactly one dep (reflow_pack_sdk), sets crate-type = ["cdylib"], and is built with the same rustc version as the host runtime it targets.