Skip to main content

Crate roplat

Crate roplat 

Source
Expand description

roplat core runtime and macro entry points.

This crate exposes three core abstractions:

  • node::Node: computation unit.
  • rhythm::Rhythm: scheduling cadence.
  • #[roplat::system]: compiles connections into an execution graph.

§Quick Example

use roplat::node::io::DisplayWriterNode;
use roplat::Node;

let mut node = DisplayWriterNode::new();
let _ = futures::executor::block_on(node.process("hello".to_string()));

Re-exports§

pub use node::Node;
pub use node::logic;
pub use async_trait;
pub use pyo3;
pub use roplat_launch;
pub use serde;
pub use serde_json;
pub use serde_yaml;

Modules§

comm
Communication primitives (ring buffer, triple buffer, IPC backends). 通讯模块
node
Built-in nodes and the Node trait. Node abstraction and built-in node collection.
py_bridge
Python interop bridge (PyO3 opaque transport).
recoder
Legacy recording API (kept for compatibility).
rhythm
Rhythm and replay subsystem. Rhythm abstraction and built-in rhythm sources.
type_binding
Cross-language type binding abstraction. 多语言类型绑定特征

Macros§

system_item
system_item! function-like macro. 内联 system DSL 片段展开宏。

Enums§

RoplatError
Unified error type and result alias. Unified roplat error enum.

Type Aliases§

RoplatResult
Unified error type and result alias. Public roplat result alias.

Attribute Macros§

interface
#[interface] proc macro. 标记跨语言接口定义。
node
#[node] proc macro. 标记节点类型定义并生成 glue code。
replay
#[replay] proc macro. 为系统函数启用环境变量驱动的录制/回放支持。
roplat_msg
#[roplat_msg] proc macro. 透明消息类型宏:为 #[repr(C)] 结构体生成 C 头文件和 Python ctypes 存根
system
#[system] proc macro. 把函数体中的 system DSL 展开为可执行调度代码。