# 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"
rust-version = "1.70"
name = "omni-schema-core"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and traits for omni-schema - Universal Schema Generator for Rust"
readme = false
keywords = [
    "schema",
    "json-schema",
    "openapi",
    "graphql",
    "protobuf",
]
categories = [
    "encoding",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ddoemonn/omni-schema"

[features]
all-formats = [
    "json-schema",
    "openapi",
    "graphql",
    "protobuf",
    "typescript",
    "avro",
]
all-types = [
    "uuid-support",
    "chrono-support",
    "url-support",
]
avro = []
chrono-support = ["chrono"]
default = ["json-schema"]
graphql = []
json-schema = []
openapi = ["serde_yaml"]
protobuf = []
serde-compat = []
typescript = []
url-support = ["url"]
uuid-support = ["uuid"]
validator-compat = []

[lib]
name = "omni_schema_core"
path = "src/lib.rs"

[dependencies.chrono]
version = "0.4"
features = ["serde"]
optional = true

[dependencies.indexmap]
version = "2.0"
features = ["serde"]

[dependencies.once_cell]
version = "1.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.thiserror]
version = "1.0"

[dependencies.url]
version = "2.0"
features = ["serde"]
optional = true

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "serde",
]
optional = true

[dev-dependencies.pretty_assertions]
version = "1.0"
