refactor features
This commit is contained in:
@@ -64,7 +64,10 @@ once_cell = "1.18.0"
|
|||||||
rmp-serde = "1.1.2"
|
rmp-serde = "1.1.2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["json", "form", "query"]
|
default = ["basic", "validator"]
|
||||||
|
basic = ["json", "form", "query"]
|
||||||
|
garde = ["dep:garde"]
|
||||||
|
validator = ["dep:validator"]
|
||||||
json = ["axum/json"]
|
json = ["axum/json"]
|
||||||
form = ["axum/form"]
|
form = ["axum/form"]
|
||||||
query = ["axum/query"]
|
query = ["axum/query"]
|
||||||
@@ -81,4 +84,5 @@ extra_form = ["axum-extra/form"]
|
|||||||
extra_protobuf = ["axum-extra/protobuf"]
|
extra_protobuf = ["axum-extra/protobuf"]
|
||||||
all_extra_types = ["extra", "extra_typed_path", "extra_query", "extra_form", "extra_protobuf"]
|
all_extra_types = ["extra", "extra_typed_path", "extra_query", "extra_form", "extra_protobuf"]
|
||||||
all_types = ["json", "form", "query", "typed_header", "typed_multipart", "msgpack", "yaml", "all_extra_types"]
|
all_types = ["json", "form", "query", "typed_header", "typed_multipart", "msgpack", "yaml", "all_extra_types"]
|
||||||
full = ["all_types", "422", "into_json"]
|
full = ["validator", "all_types", "422", "into_json"]
|
||||||
|
full_garde = ["garde", "all_types", "422", "into_json"]
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
[feature_default]
|
[feature_default]
|
||||||
|
|
||||||
[feature_all_types_into_json]
|
[feature_all_types_into_json]
|
||||||
features = "all_types into_json"
|
features = "validator garde all_types into_json"
|
||||||
|
|
||||||
[feature_all_types_422]
|
[feature_all_types_422]
|
||||||
features = "all_types 422"
|
features = "validator garde all_types 422"
|
||||||
|
|
||||||
[feature_all_types_422_into_json]
|
[feature_all_types_422_into_json]
|
||||||
features = "all_types 422 into_json"
|
features = "validator garde all_types 422 into_json"
|
||||||
Reference in New Issue
Block a user