From 62e02bd0d7b5b6a944c198baeed3e4762177e1d2 Mon Sep 17 00:00:00 2001 From: gengteng Date: Fri, 4 Aug 2023 22:08:47 +0800 Subject: [PATCH] update README.md --- Cargo.toml | 1 + README.md | 8 ++++---- tarpaulin.toml | 9 +++------ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 852935b..cc7f36d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,3 +67,4 @@ extra_form = ["axum-extra/form"] extra_protobuf = ["axum-extra/protobuf"] extra_all = ["extra", "extra_query", "extra_form", "extra_protobuf"] all_types = ["json", "form", "query", "typed_header", "msgpack", "yaml", "extra_all"] +full = ["all_types", "422", "into_json"] diff --git a/README.md b/README.md index ac82084..6726879 100644 --- a/README.md +++ b/README.md @@ -62,12 +62,12 @@ When validation errors occur, the extractor will automatically return 400 with v | extra | Enables support for `Cached`, `WithRejection` from `axum-extra` | ❌ | ✅ | | extra_query | Enables support for `Query` from `axum-extra` | ❌ | ✅ | | extra_form | Enables support for `Form` from `axum-extra` | ❌ | ✅ | -| extra_protobuf | Enables support for `Protobuf` from `axum-extra` | ❌ | ❌ | -| extra_all | Enables support for all extractors above from `axum-extra` | ❌ | 🚧 | -| all_types | Enables support for all extractors above | ❌ | 🚧 | +| extra_protobuf | Enables support for `Protobuf` from `axum-extra` | ❌ | ✅ | +| extra_all | Enables support for all extractors above from `axum-extra` | ❌ | ✅ | +| all | Enables support for all extractors above | ❌ | 🚧 | | 422 | Use `422 Unprocessable Entity` instead of `400 Bad Request` as the status code when validation fails | ❌ | ✅ | | into_json | Validation errors will be serialized into JSON format and returned as the HTTP body | ❌ | ✅ | - +| full | Enables all features | ❌ | 🚧 | ## License This project is licensed under the MIT License. diff --git a/tarpaulin.toml b/tarpaulin.toml index 9944709..cac6490 100644 --- a/tarpaulin.toml +++ b/tarpaulin.toml @@ -1,13 +1,10 @@ [feature_default] -[feature_all_types] -features = "all_types" - -[feature_into_json] +[feature_all_types_into_json] features = "all_types into_json" -[feature_422] +[feature_all_types_422] features = "all_types 422" -[feature_422_into_json] +[feature_all_types_422_into_json] features = "all_types 422 into_json" \ No newline at end of file