shepmaster/snafu
Easily assign underlying errors into domain-specific errors while adding context observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 93
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2775
- days_rel: n/a
- days_push: 43
- n_releases_24m: 0
Adoption not part of the score
1895 stars · 71 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SNAFU is a Rust library for ergonomically creating domain-specific error types and attaching context to underlying errors. It uses a derive macro to generate error enums with display messages, source chaining, backtraces, and optional no_std and futures support.
Use cases
- define typed error enums for a rust library
- add context to underlying errors in rust
- convert io errors into domain-specific errors
- get backtraces with rust errors
- handle errors in async rust code
- quick ad-hoc error messages with whatever macro
- error handling in no_std embedded rust
When to avoid
- you just need quick stringly-typed errors without custom types
- you prefer another error library like thiserror or anyhow already in your stack
Facets
library · maturity stable
error-handling developer-tools programming-languages rust cross-platform error-derive-macro no-std backtrace context-annotation futures-support
10 sources
- readme: https://github.com/shepmaster/snafu · fetched 2026-08-28 · cc2ca53162bc
- homepage: https://docs.rs/snafu/ · fetched 2026-08-29 · 18bbeae42561
- site_page: https://docs.rs/ · fetched 2026-08-29 · 3bbd16cab5f6
- site_page: https://docs.rs/crate/snafu/latest · fetched 2026-08-29 · f5a26a503a38
- site_page: https://docs.rs/crate/snafu/latest/features · fetched 2026-08-29 · 765f1c69ea75
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shepmaster/snafu | main | 74 |
For agents
markdown · JSON · MCP: product_card(name="shepmaster/snafu")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem