# rust-embedded/embedded-hal

A Hardware Abstraction Layer (HAL) for embedded systems

Repository: https://github.com/rust-embedded/embedded-hal
Canonical: https://ross.abutalabs.com/products/embedded-hal
Language: Rust
License: Apache-2.0
License Family: permissive
Last push: 2026-05-26T18:19:12+00:00

## Health v2 (maintenance only)
Score: 61/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 8, longevity 100
- inputs: {"age_days": 3372, "days_push": 99, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2640, forks 277 (observed 2026-08-28T04:07:06.423778+00:00)

## What it is
embedded-hal is a Rust Hardware Abstraction Layer providing core traits for embedded systems, enabling platform-agnostic device drivers. It includes blocking, async, and polling variants plus utilities for sharing SPI and I2C buses.

## Use cases
- write portable sensor drivers for microcontrollers in Rust
- abstract SPI and I2C bus access across platforms
- build embedded Rust applications that work on Cortex-M and AVR
- share an I2C bus between multiple device drivers
- use async traits for non-blocking embedded I/O

## When to avoid
- you need platform-specific functionality beyond the common traits embedded-hal provides
- you are not doing embedded development in Rust

## Facets
- artifact type: library
- maturity: stable
- function: embedded, sdk, plugin-system
- domain: embedded-systems, hardware, cross-platform
- platform: rust, embedded, iot
- tags: hardware-abstraction-layer, hal, traits, microcontrollers, drivers, async, no-std

## Member repositories
- rust-embedded/embedded-hal (main) score 61

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:06.423778+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:19:08.388312+00:00, confidence not recorded.
  - readme: https://github.com/rust-embedded/embedded-hal (fetched 2026-08-28T04:07:06.423778+00:00, sha 3cbedda0bd54)
  - registry_crates: https://crates.io/api/v1/crates/embedded-hal (fetched 2026-08-29T10:02:03.349718+00:00, sha 816ff369594e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
