mecha10-cli 0.1.47

Mecha10 CLI tool
Documentation
[workspace]
members = []
resolver = "2"

[package]
name = "{{project_name}}"
version = "0.1.0"
edition = "2021"
rust-version = "1.75"

[[bin]]
name = "{{project_name}}"
path = "src/main.rs"

[dependencies]
# Mecha10 framework (using local development paths via .cargo/config.toml)
mecha10-core = "0.1.1"

# Robot nodes (always included - these run on the robot)
mecha10-nodes-behavior-executor = "0.1"
mecha10-nodes-diagnostics = "0.1"
mecha10-nodes-imu = "0.1"
mecha10-nodes-listener = "0.1"
mecha10-nodes-motor = "0.1"
mecha10-nodes-speaker = "0.1"
mecha10-nodes-teleop = "0.1"
mecha10-nodes-websocket-bridge = "0.1"

# Remote nodes (optional - require heavy dependencies like ONNX Runtime)
mecha10-nodes-image-classifier = { version = "0.1", optional = true }
mecha10-nodes-llm-command = { version = "0.1", optional = true }
mecha10-nodes-object-detector = { version = "0.1", optional = true }
mecha10-nodes-simulation-bridge = { version = "0.1", optional = true }

# Async runtime (needed for #[tokio::main] proc macro)
tokio = { version = "1.36", features = ["full"] }

# Async utilities
futures = "0.3"

# Error handling
anyhow = "1.0"

[build-dependencies]
serde_json = "1.0"

[features]
default = ["target-dev"]
target-dev = ["vision-nodes", "simulation-nodes"]
target-robot = []
target-remote = ["vision-nodes"]
vision-nodes = ["mecha10-nodes-image-classifier", "mecha10-nodes-object-detector", "mecha10-nodes-llm-command"]
simulation-nodes = ["mecha10-nodes-simulation-bridge"]

# Faster dev builds: reduced debug info speeds up linking
# See docs/guides/FASTER_BUILDS.md
[profile.dev]
opt-level = 0
debug = 1  # Line info only (faster linking than debug = 2/true)
incremental = true

# Custom profile for testing with optimization but faster builds
[profile.dev-release]
inherits = "dev"
opt-level = 2
debug = 1

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
panic = "abort"