Skip to content

Rust-focused IoT design guide covering offline-first constraints, power efficiency, security, and MQTT patterns.

CCM score
49 of 100
skills.sh installs
3.1K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers domain constraints for network unreliability, power management, device security, and resource limits with matching Rust design implications
  • Includes a crate map for Linux gateways (rumqttc, tokio) versus MCU devices (embassy, embedded-hal, defmt) and a hybrid split
  • Provides a full async MQTT client example with telemetry publishing, command subscription, and reconnect-after-5-seconds error handling
  • Designed for developers building store-and-forward telemetry, OTA-capable firmware, and battery-powered devices in Rust

Install

$ npx -y skills add actionbook/rust-skills --skill domain-iot -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

IoT Domain

Layer 3: Domain Constraints

Domain Constraints → Design Implications

Domain RuleDesign ConstraintRust Implication
Unreliable networkOffline-firstLocal buffering
Power constraintsEfficient codeSleep modes, minimal alloc
Resource limitsSmall footprintno_std where needed
SecurityEncrypted commsTLS, signed firmware
ReliabilitySelf-recoveryWatchdog, error handling
OTA updatesSafe upgradesRollback capability

Critical Constraints

Network Unreliability

RULE: Network can fail at any time
WHY: Wireless, remote locations
RUST: Local queue, retry with backoff

Power Management

RULE: Minimize power consumption
WHY: Battery life, energy costs
RUST: Sleep modes, efficient algorithms

Device Security

RULE: All communication encrypted
WHY: Physical access possible
RUST: TLS, signed messages

Trace Down ↓

From constraints to design (Layer 2):

"Need offline-first design"
    ↓ m12-lifecycle: Local buffer with persistence
    ↓ m13-domain-error: Retry with backoff

Details

Repository
github.com/actionbook/rust-skills
Category
Rust
First seen
Jun 3, 2026

More from actionbook/rust-skills

All 38

Similar to Domain Iot

More Rust