rydantic 0.3.1

Type-driven models, validation, JSON Schema and native Cap'n Proto for Rust
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "rydantic"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-driven models, validation, JSON Schema and native Cap'n Proto 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]
capnp = [
    "dep:capnp",
    "rydantic-derive?/capnp",
]
chrono = ["dep:chrono"]
decimal = ["dep:rust_decimal"]
default = ["derive"]
derive = ["dep:rydantic-derive"]
dynamic = ["dep:jsonschema"]

[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 = "borrowed"
path = "examples/borrowed.rs"

[[example]]
name = "dates_decimal"
path = "examples/dates_decimal.rs"
required-features = [
    "chrono",
    "decimal",
]

[[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 = "compile"
path = "tests/compile.rs"

[[test]]
name = "dates_decimal"
path = "tests/dates_decimal.rs"

[[test]]
name = "dynamic"
path = "tests/dynamic.rs"

[[test]]
name = "features"
path = "tests/features.rs"

[[test]]
name = "models"
path = "tests/models.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"

[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.jsonschema]
version = "0.33"
optional = true
default-features = false

[dependencies.regex]
version = "1"

[dependencies.rust_decimal]
version = "1"
features = ["std"]
optional = true
default-features = false

[dependencies.rydantic-derive]
version = "0.3.1"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
features = [
    "raw_value",
    "arbitrary_precision",
]

[dev-dependencies.jsonschema]
version = "0.33"
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]

[dev-dependencies.trybuild]
version = "1"

[lints.clippy]
all = "warn"

[lints.rust]
unsafe_code = "forbid"