# Xuanwo/backon

Make retry like a built-in feature provided by Rust.

Repository: https://github.com/Xuanwo/backon
Canonical: https://ross.abutalabs.com/products/backon
Homepage: https://docs.rs/backon/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: async, backoff, rust, retry
Last push: 2026-06-19T13:22:17+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 41, longevity 100
- inputs: {"age_days": 1604, "days_push": 75, "days_rel": 319, "gap_med": 49, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1051, forks 58 (observed 2026-08-28T04:03:23.064230+00:00)

## What it is
BackON is a Rust library that makes retrying fallible functions feel like a built-in language feature, supporting both sync and async code with a fluent API. It provides built-in backoff strategies (exponential, constant, fibonacci), custom strategies, retry conditions, notifications, and works on wasm and no-std targets.

## Use cases
- retry flaky HTTP requests with exponential backoff in Rust
- add retry logic to async functions with tokio
- retry blocking database calls with backoff
- customize which errors should trigger a retry
- implement dynamic backoff using HTTP Retry-After headers
- retry operations in wasm or no-std environments

## When to choose
- you need retry with backoff for sync or async Rust code
- you want fine-grained control over retry conditions and notifications
- you need cross-platform support including wasm and no-std
- you want a simple, ergonomic retry API with minimal dependencies

## When to avoid
- you need distributed rate limiting or circuit-breaker patterns beyond simple retry
- you are not working in Rust
- you need retry policies managed at the infrastructure level (e.g., service mesh or API gateway)

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, concurrency, developer-tools
- domain: developer-tools, backend
- platform: rust, cross-platform, wasm
- tags: retry, backoff, async, no-std, exponential-backoff, algorithms

## Member repositories
- Xuanwo/backon (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:23.064230+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-30T06:59:47.990787+00:00, confidence not recorded.
  - readme: https://github.com/Xuanwo/backon (fetched 2026-08-28T04:03:23.064230+00:00, sha 677a4c3887dd)
  - homepage: https://docs.rs/backon/ (fetched 2026-08-29T13:01:25.498753+00:00, sha 0628727254fa)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T13:01:25.510085+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T13:01:25.508473+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/ (fetched 2026-08-29T13:01:25.501628+00:00, sha f4444a44113e)
  - site_page: https://docs.rs/crate/backon/latest (fetched 2026-08-29T13:01:25.503412+00:00, sha 75d4c2355b5a)
  - site_page: https://docs.rs/crate/backon/latest/features (fetched 2026-08-29T13:01:25.505264+00:00, sha 107258d255e9)
  - site_page: https://docs.rs/about (fetched 2026-08-29T13:01:25.506904+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T13:01:25.511923+00:00, sha 0dcdccb2b2b2)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T13:01:25.513772+00:00, sha 1b1efd93105f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
