# 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 = "2024"
name = "normalize-typegen"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Polyglot type and validator generation from schemas"
readme = false
license = "MIT"
repository = "https://github.com/rhi-zone/normalize"
resolver = "2"

[features]
backend-go = []
backend-graphql = []
backend-jsonschema = []
backend-proto = []
backend-pydantic = []
backend-python = []
backend-rust = []
backend-typescript = []
backend-valibot = []
backend-zod = []
default = [
    "typescript",
    "python",
    "go",
    "rust-types",
    "backend-jsonschema",
    "backend-graphql",
    "backend-proto",
]
go = ["backend-go"]
go-types = ["backend-go"]
input-graphql = [
    "dep:normalize-languages",
    "dep:tree-sitter",
]
input-typescript = [
    "dep:normalize-languages",
    "dep:tree-sitter",
]
pydantic = ["backend-pydantic"]
python = [
    "backend-python",
    "python-validators",
]
python-types = ["backend-python"]
python-validators = ["backend-pydantic"]
rust-types = ["backend-rust"]
typescript = [
    "backend-typescript",
    "typescript-validators",
]
typescript-types = ["backend-typescript"]
typescript-validators = [
    "backend-zod",
    "backend-valibot",
]
valibot = ["backend-valibot"]
yup = ["backend-typescript"]
zod = ["backend-zod"]

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

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

[dependencies.normalize-languages]
version = "0.3.1"
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tree-sitter]
version = "0.26"
optional = true

[dev-dependencies.insta]
version = "1"
features = ["json"]
