Cargo Features

[dependencies]
poem-openapi-macro = { version = "0.3.0", default-features = false, features = ["macros", "error", "uni_open_api", "response", "one_response", "uni_response"] }
default = uni_open_api

The uni_open_api feature is set by default whenever poem-openapi-macro is added without default-features = false somewhere in the dependency tree.

macros one_response? response? uni_open_api uni_response?

Enables proc-macro2, quote, and syn ^1.0.98

error one_response?

Enables darling ^0.14.1, syn ^1.0.98, and thiserror ^1.0.31

uni_open_api default = macros

Affects poem-openapi-macro::derive_uni_open_api

response = macros

Affects poem-openapi-macro::response

one_response = error, macros

Enables darling ^0.14.1

Affects poem-openapi-macro::derive_one_response

uni_response = macros

Affects poem-openapi-macro::generate_define_uni_response