rust-hal-expert

Audit Rust HAL implementations for memory safety and embedded-hal compatibility.

6|1|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/bitscrafts/EFR32MG2X-RS --skill rust-hal-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-hal-expert
Source: https://github.com/bitscrafts/EFR32MG2X-RS/tree/main/.claude/skills/rust-hal-expert
Command: npx skills add https://github.com/bitscrafts/EFR32MG2X-RS --skill rust-hal-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Audit Rust HAL implementations for memory safety and production readiness to reduce bugs and accelerate safe deployment.

Core Features & Use Cases

  • Expert code reviews of PAC/HAL drivers across Cortex-M platforms with emphasis on ownership, unsafe usage justification, and safe abstractions.
  • Memory-safety auditing and pattern verification (type-state, embedded-hal traits) to ensure robust API surfaces.
  • Production-readiness assessment including risk signals, recommended mitigations, and migration guidance for real-world deployments.

Quick Start

Provide an expert Rust HAL module review for a project, focusing on safety, architecture patterns, and production readiness.

Frequently Asked Questions about rust-hal-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Rust HAL implementations for memory safety?

To audit Rust HAL implementations for memory safety, review PAC drivers across Cortex-M platforms by verifying ownership rules, unsafe usage justification, and embedded-hal compatibility to ensure production readiness.

What are type-state patterns in Rust embedded HAL development?

Type-state patterns in Rust embedded HAL development enforce safe hardware configurations by encoding peripheral states into the type system, enabling zero-cost abstractions and robust error handling for secure API surfaces.

How do I review unsafe Rust code in PAC drivers for Cortex-M platforms?

Review unsafe Rust code in PAC drivers by demanding clear unsafe usage justification, verifying ownership boundaries, and checking type-state patterns to guarantee safe abstractions and production readiness across Cortex-M platforms.

Does this code review approach check embedded-hal trait compatibility?

Yes, this code review approach checks embedded-hal trait compatibility by verifying pattern implementation, assessing risk signals, and recommending mitigations to ensure robust HAL API surfaces for real-world deployments.

What is the best way to ensure production readiness in Rust embedded HAL drivers?

The best way to ensure production readiness in Rust embedded HAL drivers is to audit memory safety, verify zero-cost abstractions, and provide migration guidance with clear documentation and robust error handling.

When do I need a memory-safety audit for Rust HAL code reviews?

You need a memory-safety audit for Rust HAL code reviews when shipping production-ready PAC drivers across Cortex-M platforms, ensuring safe abstractions, type-state patterns, and embedded-hal compatibility before deployment.