# tokio-rs/toasty

An async ORM for Rust

Repository: https://github.com/tokio-rs/toasty
Canonical: https://ross.abutalabs.com/products/tokio-rs-toasty
Language: Rust
License: MIT
License Family: permissive
Last push: 2026-08-24T18:58:15+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 48
- inputs: {"age_days": 680, "days_push": 9, "days_rel": 21, "gap_med": 17.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3047, forks 134 (observed 2026-08-28T04:07:39.509798+00:00)

## What it is
Toasty is an async ORM for Rust that lets you define data models with Rust structs and derive macros, supporting SQL databases (SQLite, PostgreSQL, MySQL, Turso) and DynamoDB. It exposes database-specific capabilities rather than fully abstracting them, generating query methods only for indexed access patterns.

## Use cases
- async ORM for Rust
- model database records as Rust structs
- use the same ORM with SQL and DynamoDB
- query PostgreSQL/MySQL/SQLite from async Rust code
- avoid inefficient queries by generating indexed access methods
- manage relations like has_many and belongs_to in Rust

## When to choose
- you're building async Rust applications (e.g. with Tokio) that need database access
- you want a type-safe, macro-based ORM rather than raw SQL
- you need to target both SQL databases and DynamoDB with one API
- you prefer an ORM that leans into each database's strengths

## When to avoid
- you need a battle-tested, production-hardened ORM — Toasty is still pre-1.0
- you need full raw SQL control or complex migrations
- you use a database without a Toasty driver
- you prefer synchronous database access

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver
- domain: databases, backend, web-development
- platform: rust, cross-platform
- tags: async, sql, nosql, dynamodb, sqlite, postgresql, mysql, tokio

## Member repositories
- tokio-rs/toasty (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:39.509798+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-30T07:28:56.132332+00:00, confidence not recorded.
  - readme: https://github.com/tokio-rs/toasty (fetched 2026-08-28T04:07:39.509798+00:00, sha 5c821bf4ed94)
  - registry_crates: https://crates.io/api/v1/crates/toasty (fetched 2026-08-29T09:44:04.008530+00:00, sha bf836686e056)
- Data as of 2026-08-30T08:39:29.467469+00:00.
