# Rahix/avr-hal

embedded-hal abstractions for AVR microcontrollers

Repository: https://github.com/Rahix/avr-hal
Canonical: https://ross.abutalabs.com/products/avr-hal
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust-embedd, rust, arduino, avr, hal-crates
Last push: 2026-01-06T23:59:11+00:00

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

## Adoption (not part of the score)
Stars 1638, forks 258 (observed 2026-08-28T04:05:15.118017+00:00)

## What it is
A Rust Hardware Abstraction Layer (HAL) implementing embedded-hal traits for AVR microcontrollers and common boards like Arduino. It provides board-level crates (arduino-hal, atmega-hal, attiny-hal) built on avr-device for writing embedded firmware in Rust.

## Use cases
- write Rust firmware for Arduino Uno
- blink an LED on an ATmega microcontroller
- program AVR chips with embedded-hal traits
- set up a Rust embedded project for Arduino boards
- flash Rust programs to AVR hardware with cargo
- use Rust instead of C++ for Arduino development

## When to choose
- you want to write Rust code for AVR microcontrollers or Arduino boards
- you need embedded-hal compatible drivers for ATmega or ATtiny chips
- you prefer cargo-based build and flash workflow via ravedude

## When to avoid
- you target ARM Cortex-M or other non-AVR microcontrollers
- you need stable Rust toolchain support (nightly is required)
- you want a batteries-included Arduino IDE experience with libraries and shields

## Facets
- artifact type: library
- maturity: active
- function: embedded, sdk, developer-tools
- domain: embedded-systems, hardware, programming-languages
- platform: embedded, rust, cross-platform
- tags: avr, arduino, embedded-hal, rust, microcontroller, no-std, hardware-abstraction-layer

## Member repositories
- Rahix/avr-hal (main) score 60

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:15.118017+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-30T03:46:32.503554+00:00, confidence not recorded.
  - readme: https://github.com/Rahix/avr-hal (fetched 2026-08-28T04:05:15.118017+00:00, sha d307343692cd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
