[package]
edition = "2021"
rust-version = "1.75"
name = "openapi-trait"
version = "0.0.2"
authors = ["ndrsg <26137827+ndrsg@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generate typed Rust traits from OpenAPI specifications using a proc-macro attribute"
documentation = "https://docs.rs/openapi-trait"
readme = "README.md"
keywords = [
"openapi",
"codegen",
"proc-macro",
"axum",
"rest-api",
]
categories = [
"api-bindings",
"development-tools::procedural-macro-helpers",
"web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/ndrsg/openapi-trait"
[features]
default = ["reqwest-client"]
reqwest-client = [
"dep:reqwest",
"dep:percent-encoding",
"openapi-trait-client/reqwest-client",
]
[lib]
name = "openapi_trait"
path = "src/lib.rs"
[[test]]
name = "petstore"
path = "tests/petstore.rs"
[[test]]
name = "petstore_client"
path = "tests/petstore_client.rs"
[[test]]
name = "petstore_reqwest_client"
path = "tests/petstore_reqwest_client.rs"
[dependencies.openapi-trait-axum]
version = "0.0.2"
[dependencies.openapi-trait-client]
version = "0.0.2"
[dependencies.percent-encoding]
version = "2.3.2"
optional = true
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"query",
"rustls",
]
optional = true
default-features = false
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.reqwest]
version = "0.13"
features = [
"json",
"query",
"rustls",
]
default-features = false
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[lints.clippy]
all = "deny"
missing_docs_in_private_items = "deny"
nursery = "deny"
pedantic = "deny"
[lints.clippy.cargo]
level = "deny"
priority = 0
[lints.clippy.cargo_common_metadata]
level = "allow"
priority = 1
[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1
[lints.rust]
missing_debug_implementations = "deny"
missing_docs = "deny"
[lints.rustdoc]
all = "deny"
broken_intra_doc_links = "deny"
private_intra_doc_links = "allow"