# aya-rs/aya

Aya is an eBPF library for the Rust programming language, built with a focus on developer experience and operability.

Repository: https://github.com/aya-rs/aya
Canonical: https://ross.abutalabs.com/products/aya-rs-aya
Homepage: https://aya-rs.dev/book/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: ebpf, bpf, rust, observability, security
Last push: 2026-08-26T17:41:52+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 90, longevity 100
- inputs: {"age_days": 2051, "days_push": 7, "days_rel": 64, "gap_med": 0.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4784, forks 472 (observed 2026-08-28T04:08:59.713677+00:00)

## What it is
Aya is a Rust library for building and loading eBPF programs on Linux, implemented entirely in Rust without libbpf or BCC. It provides BTF-based compile-once-run-everywhere support, async compatibility, and a focus on developer experience.

## Use cases
- write eBPF programs in Rust
- load and manage BPF programs from userspace
- build kernel observability tools without libbpf
- deploy a single eBPF binary across kernel versions
- trace kernel functions with kprobes and tracepoints
- build XDP network packet filters in Rust

## When to choose
- you want to write eBPF programs and userspace loaders in pure Rust
- you need CO-RE portability across Linux kernel versions
- you want no runtime dependency on LLVM, BCC, or libbpf
- you want async (tokio/async-std) support in your loader

## When to avoid
- you need eBPF on non-Linux platforms
- your team works primarily in C and prefers libbpf
- you need mature support for the newest eBPF features that libbpf exposes first

## Facets
- artifact type: library
- maturity: active
- function: developer-tools, monitoring, security, tracing
- domain: developer-tools, operating-systems, security, monitoring
- platform: rust
- tags: ebpf, bpf, btf, kernel, observability, pure-rust, co-re, linux

## Member repositories
- aya-rs/aya (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:59.713677+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-29T18:18:43.126424+00:00, confidence not recorded.
  - readme: https://github.com/aya-rs/aya (fetched 2026-08-28T04:08:59.713677+00:00, sha 04ac64e5c82c)
  - homepage: https://aya-rs.dev/book/ (fetched 2026-08-29T09:01:56.023103+00:00, sha 367375086501)
  - registry_crates: https://crates.io/api/v1/crates/aya (fetched 2026-08-29T09:01:56.025820+00:00, sha 5761188b3c98)
- Data as of 2026-08-30T08:39:29.467469+00:00.
