# 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"
rust-version = "1.89"
name = "ploidy"
version = "0.5.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An OpenAPI code generator that supports polymorphic schemas"
readme = "README.md"
keywords = [
    "codegen",
    "openapi",
    "swagger",
]
license = "Apache-2.0"
repository = "https://github.com/linabutler/ploidy"
resolver = "2"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.tar.gz"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.zip"
pkg-fmt = "zip"

[features]
mimalloc = ["dep:mimalloc"]

[[bin]]
name = "ploidy"
path = "src/main.rs"

[dependencies.cargo_toml]
version = "0.22"

[dependencies.clap]
version = "4"
features = [
    "cargo",
    "derive",
]

[dependencies.miette]
version = "7"
features = ["fancy"]

[dependencies.mimalloc]
version = "0.1"
optional = true

[dependencies.ploidy-codegen-rust]
version = "0.5.0"

[dependencies.ploidy-core]
version = "0.5.0"

[dependencies.semver]
version = "1"
