typed-openapi 0.0.1

Typed Rust calls and a clap command tree from one OpenAPI document, with every write behind a dry-run gate.
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 = "2024"
rust-version = "1.88"
name = "typed-openapi"
version = "0.0.1"
authors = ["Stefan Lendl <git@stfl.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed Rust calls and a clap command tree from one OpenAPI document, with every write behind a dry-run gate."
readme = "README.md"
keywords = [
    "openapi",
    "clap",
    "cli",
    "codegen",
    "http",
]
categories = [
    "command-line-interface",
    "api-bindings",
    "web-programming::http-client",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/stfl/typed-openapi"

[package.metadata.docs.rs]
all-features = true

[features]
builder = ["dep:bon"]
clap = ["dep:clap"]
default = ["clap"]
document = [
    "dep:openapiv3",
    "dep:roas-overlay",
    "dep:serde_yaml_ng",
]
generate = [
    "document",
    "dep:heck",
    "dep:prettyplease",
    "dep:proc-macro2",
    "dep:quote",
    "dep:schemars",
    "dep:syn",
    "dep:typify",
]

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

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

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

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

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

[dependencies.bon]
version = "3.8"
optional = true

[dependencies.clap]
version = "4.6"
features = [
    "std",
    "help",
    "usage",
    "error-context",
    "suggestions",
    "wrap_help",
    "string",
]
optional = true
default-features = false

[dependencies.heck]
version = "0.5"
optional = true

[dependencies.http]
version = "1.5"

[dependencies.openapiv3]
version = "2.2"
optional = true

[dependencies.postcard]
version = "1.1"
features = ["use-std"]
default-features = false

[dependencies.prettyplease]
version = "0.3"
optional = true

[dependencies.proc-macro2]
version = "1"
optional = true

[dependencies.quote]
version = "1"
optional = true

[dependencies.regress]
version = "0.12"

[dependencies.roas-overlay]
version = "0.3"
optional = true

[dependencies.schemars]
version = "0.8.22"
optional = true

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

[dependencies.serde_json]
version = "1"
features = ["preserve_order"]

[dependencies.serde_yaml_ng]
version = "0.10"
optional = true

[dependencies.syn]
version = "3"
features = [
    "parsing",
    "printing",
    "full",
    "visit-mut",
]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.typify]
version = "0.8"
optional = true

[dev-dependencies]

[lints.clippy]
allow_attributes_without_reason = "warn"
doc_markdown = "allow"
expect_used = "warn"
indexing_slicing = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
string_slice = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rustdoc]
bare_urls = "warn"
broken_intra_doc_links = "warn"