[package]
edition = "2021"
name = "rydantic"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-driven validation, JSON Schema, Cap'n Proto, Axum and SQLx models for Rust"
homepage = "https://github.com/trotsky1997/Rydantic"
documentation = "https://docs.rs/rydantic"
readme = "README.md"
keywords = [
"validation",
"serde",
"json-schema",
"capnp",
"pydantic",
]
categories = [
"data-structures",
"encoding",
"parsing",
]
license = "MIT"
repository = "https://github.com/trotsky1997/Rydantic"
[package.metadata.docs.rs]
all-features = true
[features]
axum = ["dep:axum"]
capnp = [
"dep:capnp",
"rydantic-derive?/capnp",
]
chrono = ["dep:chrono"]
country = ["dep:rust_iso3166"]
currency = ["dep:iso_currency"]
decimal = ["dep:rust_decimal"]
default = ["derive"]
derive = ["dep:rydantic-derive"]
dynamic = ["dep:jsonschema"]
mysql = [
"sqlx",
"sqlx/mysql-rsa",
"sqlx/tls-rustls-ring",
]
partial-json = ["dep:jiter"]
phone = ["dep:phonenumber"]
postgres = [
"sqlx",
"sqlx/postgres",
"sqlx/tls-rustls-ring",
]
settings = []
sqlite = [
"sqlx",
"sqlx/sqlite-bundled",
]
sqlx = [
"dep:sqlx",
"dep:sha2",
]
[lib]
name = "rydantic"
path = "src/lib.rs"
[[example]]
name = "asynchronous"
path = "examples/asynchronous.rs"
[[example]]
name = "auto_capnp"
path = "examples/auto_capnp.rs"
required-features = [
"derive",
"capnp",
]
[[example]]
name = "automatic_migrations"
path = "examples/automatic_migrations.rs"
required-features = [
"derive",
"sqlite",
]
[[example]]
name = "borrowed"
path = "examples/borrowed.rs"
[[example]]
name = "database_api"
path = "examples/database_api.rs"
required-features = [
"derive",
"axum",
"sqlx",
]
[[example]]
name = "dates_decimal"
path = "examples/dates_decimal.rs"
required-features = [
"chrono",
"decimal",
]
[[example]]
name = "sqlite_api"
path = "examples/sqlite_api.rs"
required-features = [
"derive",
"axum",
"sqlite",
]
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[example]]
name = "tool_call"
path = "examples/tool_call.rs"
[[example]]
name = "user"
path = "examples/user.rs"
[[test]]
name = "async_stream"
path = "tests/async_stream.rs"
[[test]]
name = "axum"
path = "tests/axum.rs"
[[test]]
name = "callback_hygiene"
path = "tests/callback_hygiene.rs"
[[test]]
name = "compile"
path = "tests/compile.rs"
[[test]]
name = "dates_decimal"
path = "tests/dates_decimal.rs"
[[test]]
name = "domain"
path = "tests/domain.rs"
[[test]]
name = "dynamic"
path = "tests/dynamic.rs"
[[test]]
name = "features"
path = "tests/features.rs"
[[test]]
name = "http_sql"
path = "tests/http_sql.rs"
[[test]]
name = "integer_exponents"
path = "tests/integer_exponents.rs"
[[test]]
name = "migration_safety"
path = "tests/migration_safety.rs"
[[test]]
name = "migrations"
path = "tests/migrations.rs"
[[test]]
name = "models"
path = "tests/models.rs"
[[test]]
name = "partial_json"
path = "tests/partial_json.rs"
[[test]]
name = "raw_input"
path = "tests/raw_input.rs"
[[test]]
name = "schema"
path = "tests/schema.rs"
[[test]]
name = "schema_paths"
path = "tests/schema_paths.rs"
[[test]]
name = "server_databases"
path = "tests/server_databases.rs"
[[test]]
name = "settings"
path = "tests/settings.rs"
[[test]]
name = "sql_regressions"
path = "tests/sql_regressions.rs"
[[test]]
name = "sqlite"
path = "tests/sqlite.rs"
[[test]]
name = "validator_execution"
path = "tests/validator_execution.rs"
[dependencies.axum]
version = "0.8.9"
features = [
"json",
"tokio",
"http1",
]
optional = true
default-features = false
[dependencies.capnp]
version = "0.27"
features = ["unaligned"]
optional = true
[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true
default-features = false
[dependencies.email_address]
version = "0.2"
[dependencies.iso_currency]
version = "=0.7.1"
optional = true
default-features = false
[dependencies.jiter]
version = "=0.17.0"
optional = true
default-features = false
[dependencies.jsonschema]
version = "0.33"
optional = true
default-features = false
[dependencies.phonenumber]
version = "=0.3.10"
optional = true
[dependencies.regex]
version = "1"
[dependencies.rust_decimal]
version = "1"
features = ["std"]
optional = true
default-features = false
[dependencies.rust_iso3166]
version = "=0.2.0"
optional = true
default-features = false
[dependencies.rydantic-derive]
version = "=0.7.0"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = [
"raw_value",
"arbitrary_precision",
]
[dependencies.sha2]
version = "0.10"
optional = true
[dependencies.sqlx]
version = "0.9"
features = ["runtime-tokio"]
optional = true
default-features = false
[dev-dependencies.jsonschema]
version = "0.33"
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"time",
"net",
"io-util",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
all = "warn"
[lints.rust]
unsafe_code = "forbid"