| Crates.io | mecha10-core |
| lib.rs | mecha10-core |
| version | 0.1.46 |
| created_at | 2025-11-24 18:32:15.483067+00 |
| updated_at | 2026-01-25 23:02:50.414258+00 |
| description | Mecha10 core runtime and foundational types |
| homepage | |
| repository | https://github.com/mecha10/mecha10 |
| max_upload_size | |
| id | 1948370 |
| size | 1,533,257 |
Runtime orchestration and node lifecycle management for the Mecha10 framework.
✅ Fully Implemented - 467 lines, production-ready
[dependencies]
mecha10-core = { path = "../core" }
tokio = { version = "1.35", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
use mecha10_core::{Runtime, NodeConfig, NodeMode};
use std::collections::HashMap;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut runtime = Runtime::new("my-robot").await?;
// Start a camera node
runtime.start_node(NodeConfig {
id: "camera".to_string(),
executable: "./nodes/camera_node".to_string(),
args: vec!["--resolution=1080p".to_string()],
env: HashMap::new(),
mode: Some(NodeMode::Local),
auto_restart: true,
health_check_interval_s: 5,
}).await?;
println!("Started {} nodes", runtime.list_nodes().await.len());
// Run until Ctrl+C
runtime.run().await?;
Ok(())
}
See full documentation in packages/core/README.md
See QUICKSTART.md for complete examples.
MIT