[package] name = "poem-openapi-macro" version = "0.3.0" edition = "2021" authors = ["zihan "] description = "The macro collections for extending the Poem OpenAPI." keywords = ["poem", "open-api", "swagger", "macro"] license = "MIT/Apache-2.0" homepage = "https://github.com/ZihanType/poem-extensions" repository = "https://github.com/ZihanType/poem-extensions" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] proc-macro = true [dependencies] proc-macro2 = { version = "1.0.40", default-features = false, optional = true } quote = { version = "1.0.20", default-features = false, optional = true } syn = { version = "1.0.98", default-features = false, optional = true } darling = { version = "0.14.1", default-features = false, optional = true } thiserror = { version = "1.0.31", default-features = false, optional = true } [features] default = ["uni_open_api"] macros = ["dep:proc-macro2", "dep:quote", "dep:syn"] error = ["dep:thiserror", "dep:darling", "dep:syn"] uni_open_api = ["macros"] response = ["macros"] one_response = ["dep:darling", "macros", "error"] uni_response = ["macros"]