> ## Documentation Index
> Fetch the complete documentation index at: https://rydantic.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cargo features

> Select only the integrations your application needs.

The default feature is `derive`. Every integration below is opt-in.

| Feature | Provides |
| - | - |
| `derive` | `Model`, `SqlModel` and protocol generation macros |
| `partial-json` | Bounded [partial JSON snapshots](/models/partial-json), not business-validated models |
| `settings` | Explicit ordered [settings sources](/models/settings) with Model validation and redacted source errors |
| `dynamic` | Runtime JSON Schema validation with `DynamicModel` |
| `chrono` | `chrono` date and time support |
| `decimal` | `rust_decimal` support |
| `phone` | [canonical E.164 phone type](/domain-types) (first published in beta.4) |
| `country` | [ISO 3166-1 code types](/domain-types) (first published in beta.4) |
| `currency` | [known currency catalog codes](/domain-types) (first published in beta.4) |
| `capnp` | Native and packed Cap’n Proto serialization |
| `axum` | Axum 0.8 extractors, responses and structured rejections |
| `sqlx` | Shared SQL metadata and API, with no database driver |
| `sqlite` | SQL integration and bundled SQLite |
| `postgres` | SQL integration, PostgreSQL and Rustls TLS |
| `mysql` | SQL integration, MySQL RSA authentication and Rustls TLS |

## Example configurations

These examples target 0.7.0. See the [release notes](/reference/releases) for publication details and migration guidance.

```toml JSON only theme={"system"}
rydantic = "=0.7.0"
```

```toml HTTP + PostgreSQL theme={"system"}
rydantic = { version = "=0.7.0", features = ["axum", "postgres"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "net"] }
```

```toml Binary protocol theme={"system"}
rydantic = { version = "=0.7.0", features = ["capnp"] }
```

Automatic Cap’n Proto binding generation requires the official `capnp` compiler on `PATH`. Use Rust 1.98.1 to match the toolchain tested by this repository.

## API reference

The [0.7.0 Rust API documentation](https://docs.rs/rydantic/0.7.0/rydantic/) lists runtime traits and methods. The [source manifest](https://github.com/trotsky1997/Rydantic/blob/main/crates/rydantic/Cargo.toml) contains the complete dependency and feature definitions. For older deployments, use the [0.6.0 API reference](https://docs.rs/rydantic/0.6.0/rydantic/).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.