From 814a864184affab624f7d1e5314cd1f55d72b90c Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 17 Jul 2025 12:37:14 -0600 Subject: refactor: remove cedar --- Cargo.lock | 952 +- Cargo.toml | 1 - Makefile | 12 +- buf.gen.yaml | 2 - build.rs | 32 +- .../gitlab.com/gitlab-org/gitlab/entities.json | 251 - .../authorization/authzd/entities.json | 285 - .../authorization/sparkled/entities.json | 285 - etc/authzd/policy0.cedar | 16 - etc/authzd/policy1.cedar | 37 - etc/authzd/spice.schema | 10 + .../authorization/sparkle/team/entities.json | 70 - share/man/cedar/README.md | 125 - src/authorization/cedar/authorizer.rs | 179 - src/authorization/cedar/entities.rs | 145 - src/authorization/cedar/mod.rs | 5 - src/authorization/mod.rs | 1 - src/bin/cli.rs | 51 +- src/gitlab/api.rs | 53 - src/gitlab/group.rs | 10 - src/gitlab/member.rs | 9 - src/gitlab/mod.rs | 11 - src/gitlab/namespace.rs | 11 - src/gitlab/project.rs | 11 - src/lib.rs | 2 - src/rpc/authzed.api.materialize.v0.rs | 315 + src/rpc/authzed.api.v1.rs | 2496 ++ tests/authorization/cedar_authorizer_test.rs | 149 - tests/authorization/check_service_test.rs | 4 +- tests/authorization/mod.rs | 1 - tests/support/factory_bot.rs | 24 +- vendor/android-tzdata/.cargo-checksum.json | 1 - vendor/android-tzdata/Cargo.toml | 34 - vendor/android-tzdata/LICENSE-APACHE | 201 - vendor/android-tzdata/LICENSE-MIT | 21 - vendor/android-tzdata/README.md | 20 - vendor/android-tzdata/src/lib.rs | 29 - vendor/android-tzdata/src/tzdata.rs | 166 - .../android_system_properties/.cargo-checksum.json | 1 - vendor/android_system_properties/CONTRIBUTING.md | 40 - vendor/android_system_properties/Cargo.lock | 16 - vendor/android_system_properties/Cargo.toml | 36 - vendor/android_system_properties/LICENSE-APACHE | 13 - vendor/android_system_properties/LICENSE-MIT | 20 - vendor/android_system_properties/README.md | 36 - .../examples/time_zone.rs | 9 - vendor/android_system_properties/src/lib.rs | 221 - vendor/arrayvec/.cargo-checksum.json | 1 - vendor/arrayvec/CHANGELOG.md | 234 - vendor/arrayvec/Cargo.toml | 63 - vendor/arrayvec/LICENSE-APACHE | 201 - vendor/arrayvec/LICENSE-MIT | 25 - vendor/arrayvec/README.md | 24 - vendor/arrayvec/benches/arraystring.rs | 90 - vendor/arrayvec/benches/extend.rs | 78 - vendor/arrayvec/ci/miri.sh | 15 - vendor/arrayvec/custom.css | 25 - vendor/arrayvec/src/array.rs | 151 - vendor/arrayvec/src/array_string.rs | 582 - vendor/arrayvec/src/char.rs | 99 - vendor/arrayvec/src/errors.rs | 49 - vendor/arrayvec/src/lib.rs | 1213 - vendor/arrayvec/src/maybe_uninit.rs | 44 - vendor/arrayvec/tests/serde.rs | 79 - vendor/arrayvec/tests/tests.rs | 688 - vendor/ascii-canvas/.cargo-checksum.json | 1 - vendor/ascii-canvas/Cargo.toml | 36 - vendor/ascii-canvas/LICENSE-APACHE | 201 - vendor/ascii-canvas/LICENSE-MIT | 25 - vendor/ascii-canvas/README.md | 8 - vendor/ascii-canvas/src/lib.rs | 336 - vendor/ascii-canvas/src/row.rs | 44 - vendor/ascii-canvas/src/style.rs | 206 - vendor/ascii-canvas/src/test.rs | 81 - vendor/ascii-canvas/src/test_util.rs | 36 - vendor/autocfg/.cargo-checksum.json | 1 - vendor/autocfg/Cargo.lock | 6 - vendor/autocfg/Cargo.toml | 76 - vendor/autocfg/LICENSE-APACHE | 201 - vendor/autocfg/LICENSE-MIT | 25 - vendor/autocfg/README.md | 117 - vendor/autocfg/examples/integers.rs | 9 - vendor/autocfg/examples/nightly.rs | 18 - vendor/autocfg/examples/paths.rs | 22 - vendor/autocfg/examples/traits.rs | 26 - vendor/autocfg/examples/versions.rs | 9 - vendor/autocfg/src/error.rs | 81 - vendor/autocfg/src/lib.rs | 636 - vendor/autocfg/src/rustc.rs | 89 - vendor/autocfg/src/tests.rs | 54 - vendor/autocfg/src/version.rs | 65 - vendor/autocfg/tests/no_std.rs | 28 - vendor/autocfg/tests/rustflags.rs | 34 - vendor/autocfg/tests/support/mod.rs | 21 - vendor/autocfg/tests/tests.rs | 189 - vendor/autocfg/tests/wrap_ignored | 12 - vendor/autocfg/tests/wrappers.rs | 56 - vendor/beef/.cargo-checksum.json | 1 - vendor/beef/Cargo.toml | 55 - vendor/beef/LICENSE-APACHE | 201 - vendor/beef/LICENSE-MIT | 21 - vendor/beef/README.md | 121 - vendor/beef/benches/bench.rs | 181 - vendor/beef/ci/miri.sh | 12 - vendor/beef/src/generic.rs | 553 - vendor/beef/src/lean.rs | 69 - vendor/beef/src/lib.rs | 285 - vendor/beef/src/serde.rs | 149 - vendor/beef/src/traits.rs | 175 - vendor/beef/src/wide.rs | 42 - vendor/bit-set/.cargo-checksum.json | 1 - vendor/bit-set/Cargo.toml | 62 - vendor/bit-set/LICENSE-APACHE | 201 - vendor/bit-set/LICENSE-MIT | 25 - vendor/bit-set/README.md | 111 - vendor/bit-set/RELEASES.md | 10 - vendor/bit-set/benches/bench.rs | 65 - vendor/bit-set/src/lib.rs | 1681 - vendor/bit-vec/.cargo-checksum.json | 1 - vendor/bit-vec/Cargo.toml | 89 - vendor/bit-vec/LICENSE-APACHE | 201 - vendor/bit-vec/LICENSE-MIT | 25 - vendor/bit-vec/README.md | 148 - vendor/bit-vec/RELEASES.md | 8 - vendor/bit-vec/benches/bench.rs | 262 - vendor/bit-vec/crusader.sh | 11 - vendor/bit-vec/src/lib.rs | 3186 -- vendor/block-buffer/.cargo-checksum.json | 1 - vendor/block-buffer/CHANGELOG.md | 53 - vendor/block-buffer/Cargo.toml | 32 - vendor/block-buffer/LICENSE-APACHE | 201 - vendor/block-buffer/LICENSE-MIT | 25 - vendor/block-buffer/README.md | 40 - vendor/block-buffer/src/lib.rs | 350 - vendor/block-buffer/src/sealed.rs | 67 - vendor/block-buffer/tests/mod.rs | 196 - vendor/borsh/.cargo-checksum.json | 1 - vendor/borsh/Cargo.lock | 757 - vendor/borsh/Cargo.toml | 119 - vendor/borsh/README.md | 74 - vendor/borsh/build.rs | 7 - .../migration_guides/v0.10.2_to_v1.0.0_nearcore.md | 418 - .../migration_guides/v0.9_to_v1.0.0_near_sdk_rs.md | 587 - .../docs/rustdoc_include/borsh_crate_top_level.md | 77 - .../docs/rustdoc_include/borsh_deserialize.md | 371 - vendor/borsh/docs/rustdoc_include/borsh_schema.md | 334 - .../borsh/docs/rustdoc_include/borsh_serialize.md | 301 - vendor/borsh/examples/serde_json_value.rs | 333 - vendor/borsh/src/de/hint.rs | 15 - vendor/borsh/src/de/mod.rs | 1074 - vendor/borsh/src/error.rs | 10 - vendor/borsh/src/generate_schema_schema.rs | 16 - vendor/borsh/src/lib.rs | 86 - vendor/borsh/src/nostd_io.rs | 1019 - vendor/borsh/src/schema.rs | 905 - vendor/borsh/src/schema/container_ext.rs | 8 - vendor/borsh/src/schema/container_ext/max_size.rs | 295 - vendor/borsh/src/schema/container_ext/validate.rs | 171 - vendor/borsh/src/schema_helpers.rs | 53 - vendor/borsh/src/ser/helpers.rs | 88 - vendor/borsh/src/ser/mod.rs | 727 - vendor/borsh/tests/common_macro.rs | 145 - .../compile_derives/schema/test_generic_enums.rs | 35 - .../tests/compile_derives/test_generic_enums.rs | 41 - .../tests/compile_derives/test_generic_structs.rs | 98 - .../test_macro_namespace_collisions.rs | 13 - .../compile_derives/test_recursive_structs.rs | 35 - .../tests/custom_reader/test_custom_reader.rs | 143 - .../deserialization_errors/test_ascii_strings.rs | 28 - .../tests/deserialization_errors/test_cells.rs | 13 - .../tests/deserialization_errors/test_initial.rs | 233 - .../test_init_in_deserialize.rs | 53 - .../test_bson_object_ids.rs | 21 - .../test_enum_discriminants.rs | 179 - .../requires_derive_category/test_generic_enums.rs | 29 - .../test_generic_structs.rs | 110 - .../test_recursive_enums.rs | 28 - .../test_recursive_structs.rs | 31 - .../test_serde_with_third_party.rs | 98 - .../requires_derive_category/test_simple_enums.rs | 30 - .../test_ultimate_many_features_combined.rs | 210 - vendor/borsh/tests/roundtrip/test_arrays.rs | 77 - vendor/borsh/tests/roundtrip/test_ascii_strings.rs | 53 - vendor/borsh/tests/roundtrip/test_btree_map.rs | 94 - vendor/borsh/tests/roundtrip/test_cells.rs | 23 - vendor/borsh/tests/roundtrip/test_cow.rs | 71 - vendor/borsh/tests/roundtrip/test_hash_map.rs | 213 - vendor/borsh/tests/roundtrip/test_indexmap.rs | 41 - vendor/borsh/tests/roundtrip/test_ip_addr.rs | 55 - .../borsh/tests/roundtrip/test_nonzero_integers.rs | 32 - vendor/borsh/tests/roundtrip/test_primitives.rs | 25 - vendor/borsh/tests/roundtrip/test_range.rs | 11 - vendor/borsh/tests/roundtrip/test_rc.rs | 37 - vendor/borsh/tests/roundtrip/test_strings.rs | 40 - vendor/borsh/tests/roundtrip/test_tuple.rs | 11 - vendor/borsh/tests/roundtrip/test_vecs.rs | 41 - .../schema/container_extension/test_max_size.rs | 216 - .../container_extension/test_schema_validate.rs | 94 - .../schema/schema_conflict/test_schema_conflict.rs | 166 - vendor/borsh/tests/schema/test_arrays.rs | 48 - vendor/borsh/tests/schema/test_ascii_strings.rs | 32 - vendor/borsh/tests/schema/test_box.rs | 9 - vendor/borsh/tests/schema/test_btree_map.rs | 53 - vendor/borsh/tests/schema/test_cells.rs | 40 - vendor/borsh/tests/schema/test_cow.rs | 68 - .../borsh/tests/schema/test_enum_discriminants.rs | 102 - vendor/borsh/tests/schema/test_generic_enums.rs | 277 - vendor/borsh/tests/schema/test_generic_structs.rs | 232 - vendor/borsh/tests/schema/test_hash_map.rs | 59 - vendor/borsh/tests/schema/test_ip_addr.rs | 11 - vendor/borsh/tests/schema/test_option.rs | 52 - vendor/borsh/tests/schema/test_phantom_data.rs | 47 - vendor/borsh/tests/schema/test_primitives.rs | 33 - vendor/borsh/tests/schema/test_range.rs | 49 - vendor/borsh/tests/schema/test_rc.rs | 53 - vendor/borsh/tests/schema/test_recursive_enums.rs | 52 - .../borsh/tests/schema/test_recursive_structs.rs | 47 - .../tests/schema/test_schema_with_third_party.rs | 132 - vendor/borsh/tests/schema/test_simple_enums.rs | 160 - vendor/borsh/tests/schema/test_simple_structs.rs | 112 - vendor/borsh/tests/schema/test_strings.rs | 36 - vendor/borsh/tests/schema/test_tuple.rs | 70 - vendor/borsh/tests/schema/test_vecs.rs | 97 - vendor/borsh/tests/smoke.rs | 35 - vendor/borsh/tests/tests.rs | 135 - .../test_zero_sized_types_forbidden.rs | 150 - vendor/cedar-policy-core/.cargo-checksum.json | 1 - vendor/cedar-policy-core/Cargo.lock | 1448 - vendor/cedar-policy-core/Cargo.toml | 205 - vendor/cedar-policy-core/README.md | 26 - vendor/cedar-policy-core/build.rs | 28 - vendor/cedar-policy-core/src/ast.rs | 56 - vendor/cedar-policy-core/src/ast/annotation.rs | 158 - vendor/cedar-policy-core/src/ast/entity.rs | 928 - vendor/cedar-policy-core/src/ast/expr.rs | 2191 -- .../src/ast/expr_allows_errors.rs | 462 - vendor/cedar-policy-core/src/ast/expr_iterator.rs | 264 - vendor/cedar-policy-core/src/ast/extension.rs | 533 - vendor/cedar-policy-core/src/ast/id.rs | 402 - vendor/cedar-policy-core/src/ast/integer.rs | 25 - vendor/cedar-policy-core/src/ast/literal.rs | 135 - vendor/cedar-policy-core/src/ast/name.rs | 645 - vendor/cedar-policy-core/src/ast/ops.rs | 132 - vendor/cedar-policy-core/src/ast/partial_value.rs | 216 - vendor/cedar-policy-core/src/ast/pattern.rs | 241 - vendor/cedar-policy-core/src/ast/policy.rs | 2489 -- vendor/cedar-policy-core/src/ast/policy_set.rs | 1139 - vendor/cedar-policy-core/src/ast/request.rs | 655 - .../cedar-policy-core/src/ast/restricted_expr.rs | 769 - vendor/cedar-policy-core/src/ast/types.rs | 94 - vendor/cedar-policy-core/src/ast/value.rs | 833 - vendor/cedar-policy-core/src/authorizer.rs | 705 - vendor/cedar-policy-core/src/authorizer/err.rs | 87 - .../src/authorizer/partial_response.rs | 834 - vendor/cedar-policy-core/src/entities.rs | 3831 -- .../cedar-policy-core/src/entities/conformance.rs | 885 - .../src/entities/conformance/err.rs | 352 - vendor/cedar-policy-core/src/entities/err.rs | 100 - vendor/cedar-policy-core/src/entities/json.rs | 42 - .../cedar-policy-core/src/entities/json/context.rs | 120 - .../src/entities/json/entities.rs | 520 - vendor/cedar-policy-core/src/entities/json/err.rs | 653 - .../cedar-policy-core/src/entities/json/schema.rs | 183 - .../src/entities/json/schema_types.rs | 194 - .../cedar-policy-core/src/entities/json/value.rs | 966 - vendor/cedar-policy-core/src/error_macros.rs | 165 - vendor/cedar-policy-core/src/est.rs | 5010 --- vendor/cedar-policy-core/src/est/annotation.rs | 87 - vendor/cedar-policy-core/src/est/err.rs | 121 - vendor/cedar-policy-core/src/est/expr.rs | 1613 - vendor/cedar-policy-core/src/est/policy_set.rs | 378 - .../cedar-policy-core/src/est/scope_constraints.rs | 1028 - vendor/cedar-policy-core/src/evaluator.rs | 6343 --- vendor/cedar-policy-core/src/evaluator/err.rs | 755 - vendor/cedar-policy-core/src/expr_builder.rs | 325 - vendor/cedar-policy-core/src/extensions.rs | 341 - .../cedar-policy-core/src/extensions/datetime.rs | 1593 - vendor/cedar-policy-core/src/extensions/decimal.rs | 670 - vendor/cedar-policy-core/src/extensions/ipaddr.rs | 1182 - .../src/extensions/partial_evaluation.rs | 46 - .../cedar-policy-core/src/from_normalized_str.rs | 67 - vendor/cedar-policy-core/src/fuzzy_match.rs | 190 - vendor/cedar-policy-core/src/jsonvalue.rs | 171 - vendor/cedar-policy-core/src/lib.rs | 41 - vendor/cedar-policy-core/src/parser.rs | 1231 - vendor/cedar-policy-core/src/parser/cst.rs | 410 - vendor/cedar-policy-core/src/parser/cst_to_ast.rs | 6247 --- .../src/parser/cst_to_ast/to_ref_or_refs.rs | 711 - vendor/cedar-policy-core/src/parser/err.rs | 1003 - vendor/cedar-policy-core/src/parser/fmt.rs | 616 - .../cedar-policy-core/src/parser/grammar.lalrpop | 424 - vendor/cedar-policy-core/src/parser/loc.rs | 99 - vendor/cedar-policy-core/src/parser/node.rs | 194 - .../src/parser/testfiles/policies.cedar | 487 - vendor/cedar-policy-core/src/parser/text_to_cst.rs | 1493 - vendor/cedar-policy-core/src/parser/unescape.rs | 227 - vendor/cedar-policy-core/src/parser/util.rs | 56 - vendor/cedar-policy-core/src/test_utils.rs | 441 - vendor/cedar-policy-core/src/transitive_closure.rs | 756 - .../src/transitive_closure/err.rs | 75 - vendor/cedar-policy-formatter/.cargo-checksum.json | 1 - vendor/cedar-policy-formatter/Cargo.lock | 1322 - vendor/cedar-policy-formatter/Cargo.toml | 126 - vendor/cedar-policy-formatter/README.md | 51 - vendor/cedar-policy-formatter/src/lib.rs | 20 - vendor/cedar-policy-formatter/src/pprint/config.rs | 39 - vendor/cedar-policy-formatter/src/pprint/doc.rs | 863 - vendor/cedar-policy-formatter/src/pprint/fmt.rs | 275 - vendor/cedar-policy-formatter/src/pprint/lexer.rs | 74 - vendor/cedar-policy-formatter/src/pprint/mod.rs | 24 - vendor/cedar-policy-formatter/src/pprint/token.rs | 350 - vendor/cedar-policy-formatter/src/pprint/utils.rs | 208 - .../tests/action_in_set.cedar | 5 - .../cedar-policy-formatter/tests/annotations.cedar | 49 - vendor/cedar-policy-formatter/tests/arith.cedar | 15 - .../cedar-policy-formatter/tests/blank_lines.cedar | 53 - ...le_data_format@sandbox_a__policies_1.cedar.snap | 20 - ...ata_format@sandbox_a__policies_1_bad.cedar.snap | 20 - ...le_data_format@sandbox_a__policies_2.cedar.snap | 20 - ...le_data_format@sandbox_a__policies_3.cedar.snap | 13 - ...le_data_format@sandbox_b__policies_4.cedar.snap | 15 - ...le_data_format@sandbox_b__policies_5.cedar.snap | 19 - ...ata_format@sandbox_b__policies_5_bad.cedar.snap | 19 - ...le_data_format@sandbox_b__policies_6.cedar.snap | 17 - ...mple_data_format@sandbox_c__policies.cedar.snap | 12 - ...ta_format@sandbox_c__policies_edited.cedar.snap | 13 - ...at@tiny_sandboxes__format__formatted.cedar.snap | 10 - ...@tiny_sandboxes__format__unformatted.cedar.snap | 10 - ...rmat@tiny_sandboxes__sample1__policy.cedar.snap | 10 - ...rmat@tiny_sandboxes__sample2__policy.cedar.snap | 11 - ...rmat@tiny_sandboxes__sample3__policy.cedar.snap | 10 - ...rmat@tiny_sandboxes__sample4__policy.cedar.snap | 11 - ...rmat@tiny_sandboxes__sample5__policy.cedar.snap | 22 - ...rmat@tiny_sandboxes__sample6__policy.cedar.snap | 11 - ...rmat@tiny_sandboxes__sample7__policy.cedar.snap | 17 - ...rmat@tiny_sandboxes__sample8__policy.cedar.snap | 15 - ...rmat@tiny_sandboxes__sample9__policy.cedar.snap | 11 - ...@tiny_sandboxes__sample9__policy_bad.cedar.snap | 11 - ...__format_files@sandbox_a__policies_1.cedar.snap | 20 - ...rmat_files@sandbox_a__policies_1_bad.cedar.snap | 20 - ...__format_files@sandbox_a__policies_2.cedar.snap | 20 - ...__format_files@sandbox_a__policies_3.cedar.snap | 13 - ...__format_files@sandbox_b__policies_4.cedar.snap | 15 - ...__format_files@sandbox_b__policies_5.cedar.snap | 19 - ...rmat_files@sandbox_b__policies_5_bad.cedar.snap | 19 - ...__format_files@sandbox_b__policies_6.cedar.snap | 17 - ...ts__format_files@sandbox_c__policies.cedar.snap | 12 - ...mat_files@sandbox_c__policies_edited.cedar.snap | 13 - ...es@tiny_sandboxes__format__formatted.cedar.snap | 10 - ...@tiny_sandboxes__format__unformatted.cedar.snap | 10 - ...es__level-validation__policy-level-0.cedar.snap | 11 - ...es__level-validation__policy-level-1.cedar.snap | 7 - ...es__level-validation__policy-level-2.cedar.snap | 8 - ...iles@tiny_sandboxes__sample1__policy.cedar.snap | 10 - ...iles@tiny_sandboxes__sample2__policy.cedar.snap | 11 - ...iles@tiny_sandboxes__sample3__policy.cedar.snap | 10 - ...iles@tiny_sandboxes__sample4__policy.cedar.snap | 11 - ...iles@tiny_sandboxes__sample5__policy.cedar.snap | 22 - ...iles@tiny_sandboxes__sample6__policy.cedar.snap | 11 - ...iles@tiny_sandboxes__sample7__policy.cedar.snap | 17 - ...iles@tiny_sandboxes__sample8__policy.cedar.snap | 15 - ...iles@tiny_sandboxes__sample9__policy.cedar.snap | 11 - ...@tiny_sandboxes__sample9__policy_bad.cedar.snap | 11 - ..._sandboxes__translate-policy__policy.cedar.snap | 10 - .../tests/comment_euid_elems.cedar | 23 - .../tests/comment_only.cedar | 1 - .../tests/comment_trailing_whitespace.cedar | 29 - vendor/cedar-policy-formatter/tests/empty.cedar | 0 .../cedar-policy-formatter/tests/empty_list.cedar | 9 - .../tests/empty_record.cedar | 10 - .../tests/extended_has.cedar | 43 - vendor/cedar-policy-formatter/tests/index.cedar | 13 - .../cedar-policy-formatter/tests/is_policies.cedar | 60 - .../cedar-policy-formatter/tests/ite_comment.cedar | 9 - vendor/cedar-policy-formatter/tests/like.cedar | 10 - vendor/cedar-policy-formatter/tests/policies.cedar | 98 - ...t__tests__format_files@action_in_set.cedar.snap | 10 - ...fmt__tests__format_files@annotations.cedar.snap | 58 - ...rint__fmt__tests__format_files@arith.cedar.snap | 16 - ...fmt__tests__format_files@blank_lines.cedar.snap | 49 - ...sts__format_files@comment_euid_elems.cedar.snap | 37 - ...mt__tests__format_files@comment_only.cedar.snap | 6 - ...at_files@comment_trailing_whitespace.cedar.snap | 30 - ...rint__fmt__tests__format_files@empty.cedar.snap | 6 - ..._fmt__tests__format_files@empty_list.cedar.snap | 15 - ...mt__tests__format_files@empty_record.cedar.snap | 16 - ...mt__tests__format_files@extended_has.cedar.snap | 55 - ...rint__fmt__tests__format_files@index.cedar.snap | 22 - ...fmt__tests__format_files@is_policies.cedar.snap | 80 - ...fmt__tests__format_files@ite_comment.cedar.snap | 16 - ...print__fmt__tests__format_files@like.cedar.snap | 16 - ...t__fmt__tests__format_files@policies.cedar.snap | 96 - ...print__fmt__tests__format_files@test.cedar.snap | 127 - ...__tests__format_files@trivial_forbid.cedar.snap | 6 - ...__tests__format_files@trivial_permit.cedar.snap | 6 - vendor/cedar-policy-formatter/tests/test.cedar | 115 - .../tests/trivial_forbid.cedar | 1 - .../tests/trivial_permit.cedar | 1 - vendor/cedar-policy-validator/.cargo-checksum.json | 1 - vendor/cedar-policy-validator/Cargo.lock | 1570 - vendor/cedar-policy-validator/Cargo.toml | 206 - vendor/cedar-policy-validator/README.md | 21 - vendor/cedar-policy-validator/build.rs | 28 - .../cedar-policy-validator/experimental_warning.md | 3 - vendor/cedar-policy-validator/src/cedar_schema.rs | 27 - .../cedar-policy-validator/src/cedar_schema/ast.rs | 426 - .../cedar-policy-validator/src/cedar_schema/err.rs | 786 - .../cedar-policy-validator/src/cedar_schema/fmt.rs | 535 - .../src/cedar_schema/grammar.lalrpop | 341 - .../src/cedar_schema/parser.rs | 125 - .../src/cedar_schema/test.rs | 2941 -- .../src/cedar_schema/to_json_schema.rs | 903 - vendor/cedar-policy-validator/src/coreschema.rs | 1162 - vendor/cedar-policy-validator/src/diagnostics.rs | 531 - .../src/diagnostics/validation_errors.rs | 822 - .../src/diagnostics/validation_warnings.rs | 137 - .../cedar-policy-validator/src/entity_manifest.rs | 1631 - .../src/entity_manifest/analysis.rs | 293 - .../src/entity_manifest/loader.rs | 638 - .../src/entity_manifest/slicing.rs | 1169 - .../src/entity_manifest/type_annotations.rs | 177 - vendor/cedar-policy-validator/src/expr_iterator.rs | 425 - .../cedar-policy-validator/src/extension_schema.rs | 136 - vendor/cedar-policy-validator/src/extensions.rs | 169 - .../src/extensions/datetime.rs | 160 - .../src/extensions/decimal.rs | 126 - .../src/extensions/ipaddr.rs | 125 - .../src/extensions/partial_evaluation.rs | 82 - vendor/cedar-policy-validator/src/json_schema.rs | 3988 -- .../cedar-policy-validator/src/level_validate.rs | 977 - vendor/cedar-policy-validator/src/lib.rs | 769 - .../src/partition_nonempty.rs | 27 - vendor/cedar-policy-validator/src/rbac.rs | 1692 - vendor/cedar-policy-validator/src/schema.rs | 5839 --- vendor/cedar-policy-validator/src/schema/action.rs | 319 - .../src/schema/entity_type.rs | 195 - vendor/cedar-policy-validator/src/schema/err.rs | 903 - .../src/schema/namespace_def.rs | 1268 - .../cedar-policy-validator/src/schema/raw_name.rs | 345 - .../cedar-policy-validator/src/schema/test_579.rs | 1984 - vendor/cedar-policy-validator/src/str_checks.rs | 328 - vendor/cedar-policy-validator/src/typecheck.rs | 2536 -- .../cedar-policy-validator/src/typecheck/test.rs | 36 - .../src/typecheck/test/expr.rs | 1579 - .../src/typecheck/test/extensions.rs | 346 - .../src/typecheck/test/namespace.rs | 718 - .../src/typecheck/test/optional_attributes.rs | 804 - .../src/typecheck/test/partial.rs | 711 - .../src/typecheck/test/policy.rs | 1305 - .../src/typecheck/test/strict.rs | 756 - .../src/typecheck/test/tags.rs | 422 - .../src/typecheck/test/test_utils.rs | 433 - .../src/typecheck/test/type_annotation.rs | 202 - .../src/typecheck/test/unspecified_entity.rs | 60 - .../src/typecheck/typecheck_answer.rs | 220 - vendor/cedar-policy-validator/src/types.rs | 2755 -- .../cedar-policy-validator/src/types/capability.rs | 109 - .../src/types/request_env.rs | 150 - vendor/cedar-policy/.cargo-checksum.json | 1 - vendor/cedar-policy/CHANGELOG.md | 5 - vendor/cedar-policy/Cargo.lock | 2189 -- vendor/cedar-policy/Cargo.toml | 287 - vendor/cedar-policy/README.md | 97 - vendor/cedar-policy/benches/attr_errors.rs | 110 - vendor/cedar-policy/benches/cedar_benchmarks.rs | 159 - vendor/cedar-policy/benches/deeply_nested_est.rs | 207 - vendor/cedar-policy/benches/entity_attr_errors.rs | 135 - vendor/cedar-policy/benches/entity_parsing.rs | 29 - .../benches/extension_fn_validation.rs | 56 - vendor/cedar-policy/build.rs | 35 - vendor/cedar-policy/experimental_warning.md | 3 - vendor/cedar-policy/protobuf_schema/core.proto | 293 - .../cedar-policy/protobuf_schema/validator.proto | 82 - vendor/cedar-policy/src/api.rs | 5220 --- vendor/cedar-policy/src/api/err.rs | 1303 - .../cedar-policy/src/api/err/validation_errors.rs | 76 - .../src/api/err/validation_warnings.rs | 64 - vendor/cedar-policy/src/api/id.rs | 436 - vendor/cedar-policy/src/ffi/check_parse.rs | 537 - vendor/cedar-policy/src/ffi/convert.rs | 502 - vendor/cedar-policy/src/ffi/format.rs | 183 - vendor/cedar-policy/src/ffi/is_authorized.rs | 1753 - vendor/cedar-policy/src/ffi/mod.rs | 31 - vendor/cedar-policy/src/ffi/tests.rs | 144 - vendor/cedar-policy/src/ffi/utils.rs | 1207 - vendor/cedar-policy/src/ffi/validate.rs | 680 - vendor/cedar-policy/src/ffi/version.rs | 17 - vendor/cedar-policy/src/lib.rs | 54 - vendor/cedar-policy/src/proto.rs | 55 - vendor/cedar-policy/src/proto/api.rs | 146 - vendor/cedar-policy/src/proto/ast.rs | 892 - vendor/cedar-policy/src/proto/entities.rs | 125 - vendor/cedar-policy/src/proto/policy.rs | 838 - vendor/cedar-policy/src/proto/traits.rs | 55 - vendor/cedar-policy/src/proto/validator.rs | 300 - vendor/cedar-policy/src/test.rs | 26 - .../cedar-policy/src/test/prop_test_policy_set.rs | 286 - vendor/cedar-policy/src/test/test.rs | 7816 ---- vendor/cedar-policy/tests/public_interface.rs | 535 - vendor/cfg_aliases/.cargo-checksum.json | 1 - vendor/cfg_aliases/Cargo.toml | 43 - vendor/cfg_aliases/LICENSE | 9 - vendor/cfg_aliases/NOTICES.md | 26 - vendor/cfg_aliases/README.md | 110 - vendor/cfg_aliases/src/lib.rs | 379 - vendor/cfg_aliases/tests/test.rs | 20 - vendor/chrono/.cargo-checksum.json | 1 - vendor/chrono/CITATION.cff | 33 - vendor/chrono/Cargo.lock | 810 - vendor/chrono/Cargo.toml | 177 - vendor/chrono/LICENSE.txt | 240 - vendor/chrono/src/date.rs | 663 - vendor/chrono/src/datetime/mod.rs | 1941 - vendor/chrono/src/datetime/serde.rs | 1359 - vendor/chrono/src/datetime/tests.rs | 1902 - vendor/chrono/src/format/formatting.rs | 945 - vendor/chrono/src/format/locales.rs | 103 - vendor/chrono/src/format/mod.rs | 557 - vendor/chrono/src/format/parse.rs | 1854 - vendor/chrono/src/format/parsed.rs | 1912 - vendor/chrono/src/format/scan.rs | 432 - vendor/chrono/src/format/strftime.rs | 1249 - vendor/chrono/src/lib.rs | 735 - vendor/chrono/src/month.rs | 472 - vendor/chrono/src/naive/date/mod.rs | 2534 -- vendor/chrono/src/naive/date/tests.rs | 879 - vendor/chrono/src/naive/datetime/mod.rs | 2150 - vendor/chrono/src/naive/datetime/serde.rs | 1304 - vendor/chrono/src/naive/datetime/tests.rs | 408 - vendor/chrono/src/naive/internals.rs | 591 - vendor/chrono/src/naive/isoweek.rs | 233 - vendor/chrono/src/naive/mod.rs | 335 - vendor/chrono/src/naive/time/mod.rs | 1643 - vendor/chrono/src/naive/time/serde.rs | 143 - vendor/chrono/src/naive/time/tests.rs | 393 - vendor/chrono/src/offset/fixed.rs | 236 - vendor/chrono/src/offset/local/mod.rs | 541 - vendor/chrono/src/offset/local/tz_info/mod.rs | 116 - vendor/chrono/src/offset/local/tz_info/parser.rs | 348 - vendor/chrono/src/offset/local/tz_info/rule.rs | 1037 - vendor/chrono/src/offset/local/tz_info/timezone.rs | 1008 - vendor/chrono/src/offset/local/unix.rs | 171 - vendor/chrono/src/offset/local/win_bindings.rs | 59 - vendor/chrono/src/offset/local/win_bindings.txt | 7 - vendor/chrono/src/offset/local/windows.rs | 293 - vendor/chrono/src/offset/mod.rs | 695 - vendor/chrono/src/offset/utc.rs | 152 - vendor/chrono/src/round.rs | 1082 - vendor/chrono/src/time_delta.rs | 1439 - vendor/chrono/src/traits.rs | 415 - vendor/chrono/src/weekday.rs | 408 - vendor/chrono/src/weekday_set.rs | 483 - vendor/chrono/tests/dateutils.rs | 165 - vendor/chrono/tests/wasm.rs | 89 - vendor/chrono/tests/win_bindings.rs | 28 - vendor/cpufeatures/.cargo-checksum.json | 1 - vendor/cpufeatures/CHANGELOG.md | 168 - vendor/cpufeatures/Cargo.lock | 16 - vendor/cpufeatures/Cargo.toml | 71 - vendor/cpufeatures/LICENSE-APACHE | 201 - vendor/cpufeatures/LICENSE-MIT | 25 - vendor/cpufeatures/README.md | 126 - vendor/cpufeatures/src/aarch64.rs | 167 - vendor/cpufeatures/src/lib.rs | 220 - vendor/cpufeatures/src/loongarch64.rs | 106 - vendor/cpufeatures/src/miri.rs | 20 - vendor/cpufeatures/src/x86.rs | 152 - vendor/cpufeatures/tests/aarch64.rs | 17 - vendor/cpufeatures/tests/loongarch64.rs | 20 - vendor/cpufeatures/tests/x86.rs | 17 - vendor/crypto-common/.cargo-checksum.json | 1 - vendor/crypto-common/CHANGELOG.md | 47 - vendor/crypto-common/Cargo.toml | 51 - vendor/crypto-common/LICENSE-APACHE | 201 - vendor/crypto-common/LICENSE-MIT | 25 - vendor/crypto-common/README.md | 53 - vendor/crypto-common/src/lib.rs | 311 - vendor/darling/.cargo-checksum.json | 1 - vendor/darling/CHANGELOG.md | 323 - vendor/darling/Cargo.lock | 284 - vendor/darling/Cargo.toml | 234 - vendor/darling/LICENSE | 21 - vendor/darling/README.md | 151 - vendor/darling/clippy.toml | 2 - vendor/darling/compiletests.sh | 1 - vendor/darling/examples/automatic_bounds.rs | 73 - vendor/darling/examples/consume_fields.rs | 175 - vendor/darling/examples/expr_with.rs | 26 - vendor/darling/examples/fallible_read.rs | 85 - .../examples/heterogeneous_enum_and_word.rs | 79 - vendor/darling/examples/shorthand_or_long_field.rs | 79 - vendor/darling/examples/supports_struct.rs | 61 - vendor/darling/src/lib.rs | 117 - vendor/darling/src/macros_public.rs | 96 - vendor/darling/tests/accrue_errors.rs | 102 - vendor/darling/tests/attrs_with.rs | 80 - .../tests/compile-fail/attrs_with_bad_fn.rs | 15 - .../tests/compile-fail/attrs_with_bad_fn.stderr | 20 - .../compile-fail/attrs_without_forward_attrs.rs | 10 - .../attrs_without_forward_attrs.stderr | 5 - .../tests/compile-fail/default_expr_wrong_type.rs | 12 - .../compile-fail/default_expr_wrong_type.stderr | 16 - .../compile-fail/duplicate_word_across_variants.rs | 12 - .../duplicate_word_across_variants.stderr | 11 - .../compile-fail/duplicate_word_on_variant.rs | 10 - .../compile-fail/duplicate_word_on_variant.stderr | 5 - .../tests/compile-fail/flatten_meta_conflicts.rs | 21 - .../compile-fail/flatten_meta_conflicts.stderr | 17 - .../tests/compile-fail/flatten_multiple_fields.rs | 28 - .../compile-fail/flatten_multiple_fields.stderr | 23 - vendor/darling/tests/compile-fail/from_word.rs | 30 - vendor/darling/tests/compile-fail/from_word.stderr | 17 - .../tests/compile-fail/not_impl_from_meta.rs | 16 - .../tests/compile-fail/not_impl_from_meta.stderr | 33 - .../compile-fail/skip_field_not_impl_default.rs | 18 - .../skip_field_not_impl_default.stderr | 23 - .../tests/compile-fail/with_closure_capture.rs | 21 - .../tests/compile-fail/with_closure_capture.stderr | 30 - .../compile-fail/word_on_wrong_variant_type.rs | 10 - .../compile-fail/word_on_wrong_variant_type.stderr | 5 - vendor/darling/tests/compiletests.rs | 16 - vendor/darling/tests/computed_bound.rs | 42 - vendor/darling/tests/custom_bound.rs | 25 - vendor/darling/tests/data_with.rs | 49 - vendor/darling/tests/defaults.rs | 189 - vendor/darling/tests/enums_default.rs | 44 - vendor/darling/tests/enums_newtype.rs | 127 - vendor/darling/tests/enums_struct.rs | 15 - vendor/darling/tests/enums_unit.rs | 123 - vendor/darling/tests/error.rs | 54 - vendor/darling/tests/flatten.rs | 205 - vendor/darling/tests/flatten_error_accumulation.rs | 45 - vendor/darling/tests/flatten_from_field.rs | 84 - .../tests/forward_attrs_to_from_attributes.rs | 22 - vendor/darling/tests/from_generics.rs | 175 - vendor/darling/tests/from_meta.rs | 304 - vendor/darling/tests/from_type_param.rs | 59 - vendor/darling/tests/from_type_param_default.rs | 53 - vendor/darling/tests/from_variant.rs | 57 - vendor/darling/tests/generics.rs | 23 - vendor/darling/tests/happy_path.rs | 69 - vendor/darling/tests/hash_map.rs | 42 - vendor/darling/tests/meta_with.rs | 33 - vendor/darling/tests/multiple.rs | 30 - vendor/darling/tests/newtype.rs | 26 - vendor/darling/tests/skip.rs | 74 - vendor/darling/tests/spanned_value.rs | 112 - vendor/darling/tests/split_declaration.rs | 67 - vendor/darling/tests/suggestions.rs | 44 - vendor/darling/tests/supports.rs | 90 - vendor/darling/tests/unsupported_attributes.rs | 31 - vendor/darling_core/.cargo-checksum.json | 1 - vendor/darling_core/Cargo.lock | 68 - vendor/darling_core/Cargo.toml | 61 - vendor/darling_core/LICENSE | 21 - vendor/darling_core/src/ast/data.rs | 517 - vendor/darling_core/src/ast/generics.rs | 192 - vendor/darling_core/src/ast/mod.rs | 7 - vendor/darling_core/src/codegen/attr_extractor.rs | 110 - vendor/darling_core/src/codegen/attrs_field.rs | 107 - vendor/darling_core/src/codegen/default_expr.rs | 53 - vendor/darling_core/src/codegen/error.rs | 46 - vendor/darling_core/src/codegen/field.rs | 274 - .../src/codegen/from_attributes_impl.rs | 113 - .../darling_core/src/codegen/from_derive_impl.rs | 152 - vendor/darling_core/src/codegen/from_field.rs | 114 - vendor/darling_core/src/codegen/from_meta_impl.rs | 166 - vendor/darling_core/src/codegen/from_type_param.rs | 111 - .../darling_core/src/codegen/from_variant_impl.rs | 134 - vendor/darling_core/src/codegen/mod.rs | 32 - vendor/darling_core/src/codegen/outer_from_impl.rs | 62 - .../darling_core/src/codegen/postfix_transform.rs | 30 - vendor/darling_core/src/codegen/trait_impl.rs | 145 - vendor/darling_core/src/codegen/variant.rs | 193 - vendor/darling_core/src/codegen/variant_data.rs | 105 - vendor/darling_core/src/derive.rs | 61 - vendor/darling_core/src/error/child.rs | 82 - vendor/darling_core/src/error/kind.rs | 229 - vendor/darling_core/src/error/mod.rs | 1035 - vendor/darling_core/src/from_attributes.rs | 27 - vendor/darling_core/src/from_derive_input.rs | 26 - vendor/darling_core/src/from_field.rs | 38 - vendor/darling_core/src/from_generic_param.rs | 19 - vendor/darling_core/src/from_generics.rs | 27 - vendor/darling_core/src/from_meta.rs | 1236 - vendor/darling_core/src/from_type_param.rs | 32 - vendor/darling_core/src/from_variant.rs | 33 - vendor/darling_core/src/lib.rs | 43 - vendor/darling_core/src/macros_private.rs | 6 - vendor/darling_core/src/macros_public.rs | 96 - vendor/darling_core/src/options/core.rs | 197 - vendor/darling_core/src/options/forward_attrs.rs | 30 - vendor/darling_core/src/options/forwarded_field.rs | 43 - vendor/darling_core/src/options/from_attributes.rs | 74 - vendor/darling_core/src/options/from_derive.rs | 100 - vendor/darling_core/src/options/from_field.rs | 76 - vendor/darling_core/src/options/from_meta.rs | 153 - vendor/darling_core/src/options/from_type_param.rs | 76 - vendor/darling_core/src/options/from_variant.rs | 82 - vendor/darling_core/src/options/input_field.rs | 241 - vendor/darling_core/src/options/input_variant.rs | 125 - vendor/darling_core/src/options/mod.rs | 160 - vendor/darling_core/src/options/outer_from.rs | 111 - vendor/darling_core/src/options/shape.rs | 259 - vendor/darling_core/src/usage/generics_ext.rs | 24 - vendor/darling_core/src/usage/ident_set.rs | 8 - vendor/darling_core/src/usage/lifetimes.rs | 351 - vendor/darling_core/src/usage/mod.rs | 111 - vendor/darling_core/src/usage/options.rs | 58 - vendor/darling_core/src/usage/type_params.rs | 364 - vendor/darling_core/src/util/callable.rs | 62 - vendor/darling_core/src/util/flag.rs | 99 - vendor/darling_core/src/util/ident_string.rs | 157 - vendor/darling_core/src/util/ignored.rs | 50 - vendor/darling_core/src/util/mod.rs | 26 - vendor/darling_core/src/util/over_ride.rs | 163 - vendor/darling_core/src/util/parse_attribute.rs | 86 - vendor/darling_core/src/util/parse_expr.rs | 86 - vendor/darling_core/src/util/path_list.rs | 105 - vendor/darling_core/src/util/path_to_string.rs | 36 - vendor/darling_core/src/util/shape.rs | 285 - vendor/darling_core/src/util/spanned_value.rs | 145 - vendor/darling_core/src/util/with_original.rs | 35 - vendor/darling_macro/.cargo-checksum.json | 1 - vendor/darling_macro/Cargo.lock | 72 - vendor/darling_macro/Cargo.toml | 44 - vendor/darling_macro/LICENSE | 21 - vendor/darling_macro/src/lib.rs | 40 - vendor/deranged/.cargo-checksum.json | 1 - vendor/deranged/Cargo.lock | 347 - vendor/deranged/Cargo.toml | 203 - vendor/deranged/LICENSE-Apache | 202 - vendor/deranged/LICENSE-MIT | 19 - vendor/deranged/README.md | 3 - vendor/deranged/src/lib.rs | 1617 - vendor/deranged/src/tests.rs | 716 - vendor/deranged/src/traits.rs | 123 - vendor/deranged/src/unsafe_wrapper.rs | 36 - vendor/digest/.cargo-checksum.json | 1 - vendor/digest/CHANGELOG.md | 137 - vendor/digest/Cargo.toml | 70 - vendor/digest/LICENSE-APACHE | 201 - vendor/digest/LICENSE-MIT | 25 - vendor/digest/README.md | 164 - vendor/digest/src/core_api.rs | 119 - vendor/digest/src/core_api/ct_variable.rs | 204 - vendor/digest/src/core_api/rt_variable.rs | 166 - vendor/digest/src/core_api/wrapper.rs | 290 - vendor/digest/src/core_api/xof_reader.rs | 63 - vendor/digest/src/dev.rs | 78 - vendor/digest/src/dev/fixed.rs | 65 - vendor/digest/src/dev/mac.rs | 159 - vendor/digest/src/dev/rng.rs | 38 - vendor/digest/src/dev/variable.rs | 82 - vendor/digest/src/dev/xof.rs | 51 - vendor/digest/src/digest.rs | 236 - vendor/digest/src/lib.rs | 301 - vendor/digest/src/mac.rs | 305 - vendor/dyn-clone/.cargo-checksum.json | 1 - vendor/dyn-clone/Cargo.lock | 301 - vendor/dyn-clone/Cargo.toml | 74 - vendor/dyn-clone/LICENSE-APACHE | 176 - vendor/dyn-clone/LICENSE-MIT | 23 - vendor/dyn-clone/README.md | 89 - vendor/dyn-clone/examples/readme.rs | 26 - vendor/dyn-clone/src/lib.rs | 215 - vendor/dyn-clone/src/macros.rs | 121 - vendor/dyn-clone/tests/compiletest.rs | 7 - vendor/dyn-clone/tests/macros.rs | 57 - vendor/dyn-clone/tests/trait.rs | 65 - vendor/dyn-clone/tests/ui/missing-supertrait.rs | 5 - .../dyn-clone/tests/ui/missing-supertrait.stderr | 91 - vendor/educe/.cargo-checksum.json | 1 - vendor/educe/Cargo.toml | 102 - vendor/educe/LICENSE | 21 - vendor/educe/README.md | 1689 - vendor/educe/src/common/bound.rs | 57 - vendor/educe/src/common/expr.rs | 109 - vendor/educe/src/common/ident_bool.rs | 161 - vendor/educe/src/common/ident_index.rs | 56 - vendor/educe/src/common/int.rs | 63 - vendor/educe/src/common/mod.rs | 43 - vendor/educe/src/common/path.rs | 43 - vendor/educe/src/common/tools/discriminant_type.rs | 169 - vendor/educe/src/common/tools/hash_type.rs | 100 - vendor/educe/src/common/tools/mod.rs | 11 - vendor/educe/src/common/type.rs | 51 - vendor/educe/src/common/unsafe_punctuated_meta.rs | 35 - vendor/educe/src/common/where_predicates_bool.rs | 122 - vendor/educe/src/lib.rs | 2135 - vendor/educe/src/panic.rs | 130 - vendor/educe/src/supported_traits.rs | 88 - .../educe/src/trait_handlers/clone/clone_enum.rs | 272 - .../educe/src/trait_handlers/clone/clone_struct.rs | 195 - .../educe/src/trait_handlers/clone/clone_union.rs | 73 - vendor/educe/src/trait_handlers/clone/mod.rs | 36 - .../trait_handlers/clone/models/field_attribute.rs | 125 - .../educe/src/trait_handlers/clone/models/mod.rs | 5 - .../trait_handlers/clone/models/type_attribute.rs | 140 - vendor/educe/src/trait_handlers/copy/mod.rs | 94 - .../trait_handlers/copy/models/field_attribute.rs | 57 - vendor/educe/src/trait_handlers/copy/models/mod.rs | 5 - .../trait_handlers/copy/models/type_attribute.rs | 140 - vendor/educe/src/trait_handlers/debug/common.rs | 55 - .../educe/src/trait_handlers/debug/debug_enum.rs | 371 - .../educe/src/trait_handlers/debug/debug_struct.rs | 185 - .../educe/src/trait_handlers/debug/debug_union.rs | 86 - vendor/educe/src/trait_handlers/debug/mod.rs | 38 - .../trait_handlers/debug/models/field_attribute.rs | 224 - .../educe/src/trait_handlers/debug/models/mod.rs | 5 - .../trait_handlers/debug/models/type_attribute.rs | 264 - vendor/educe/src/trait_handlers/debug/panic.rs | 43 - .../src/trait_handlers/default/default_enum.rs | 230 - .../src/trait_handlers/default/default_struct.rs | 149 - .../src/trait_handlers/default/default_union.rs | 153 - vendor/educe/src/trait_handlers/default/mod.rs | 43 - .../default/models/field_attribute.rs | 166 - .../educe/src/trait_handlers/default/models/mod.rs | 5 - .../default/models/type_attribute.rs | 214 - vendor/educe/src/trait_handlers/default/panic.rs | 21 - .../educe/src/trait_handlers/deref/deref_enum.rs | 144 - .../educe/src/trait_handlers/deref/deref_struct.rs | 103 - vendor/educe/src/trait_handlers/deref/mod.rs | 36 - .../trait_handlers/deref/models/field_attribute.rs | 94 - .../educe/src/trait_handlers/deref/models/mod.rs | 5 - .../trait_handlers/deref/models/type_attribute.rs | 87 - vendor/educe/src/trait_handlers/deref/panic.rs | 31 - .../src/trait_handlers/deref_mut/deref_mut_enum.rs | 139 - .../trait_handlers/deref_mut/deref_mut_struct.rs | 92 - vendor/educe/src/trait_handlers/deref_mut/mod.rs | 39 - .../deref_mut/models/field_attribute.rs | 94 - .../src/trait_handlers/deref_mut/models/mod.rs | 5 - .../deref_mut/models/type_attribute.rs | 87 - vendor/educe/src/trait_handlers/deref_mut/panic.rs | 31 - vendor/educe/src/trait_handlers/eq/mod.rs | 106 - .../trait_handlers/eq/models/field_attribute.rs | 57 - vendor/educe/src/trait_handlers/eq/models/mod.rs | 5 - .../src/trait_handlers/eq/models/type_attribute.rs | 140 - vendor/educe/src/trait_handlers/hash/hash_enum.rs | 169 - .../educe/src/trait_handlers/hash/hash_struct.rs | 88 - vendor/educe/src/trait_handlers/hash/hash_union.rs | 54 - vendor/educe/src/trait_handlers/hash/mod.rs | 34 - .../trait_handlers/hash/models/field_attribute.rs | 172 - vendor/educe/src/trait_handlers/hash/models/mod.rs | 5 - .../trait_handlers/hash/models/type_attribute.rs | 154 - vendor/educe/src/trait_handlers/hash/panic.rs | 22 - vendor/educe/src/trait_handlers/into/common.rs | 17 - vendor/educe/src/trait_handlers/into/into_enum.rs | 224 - .../educe/src/trait_handlers/into/into_struct.rs | 168 - vendor/educe/src/trait_handlers/into/mod.rs | 34 - .../trait_handlers/into/models/field_attribute.rs | 152 - vendor/educe/src/trait_handlers/into/models/mod.rs | 5 - .../trait_handlers/into/models/type_attribute.rs | 153 - vendor/educe/src/trait_handlers/into/panic.rs | 27 - vendor/educe/src/trait_handlers/mod.rs | 48 - vendor/educe/src/trait_handlers/ord/mod.rs | 49 - .../trait_handlers/ord/models/field_attribute.rs | 217 - vendor/educe/src/trait_handlers/ord/models/mod.rs | 5 - .../trait_handlers/ord/models/type_attribute.rs | 149 - vendor/educe/src/trait_handlers/ord/ord_enum.rs | 283 - vendor/educe/src/trait_handlers/ord/ord_struct.rs | 123 - vendor/educe/src/trait_handlers/ord/panic.rs | 6 - vendor/educe/src/trait_handlers/partial_eq/mod.rs | 43 - .../partial_eq/models/field_attribute.rs | 181 - .../src/trait_handlers/partial_eq/models/mod.rs | 5 - .../partial_eq/models/type_attribute.rs | 163 - .../educe/src/trait_handlers/partial_eq/panic.rs | 22 - .../trait_handlers/partial_eq/partial_eq_enum.rs | 218 - .../trait_handlers/partial_eq/partial_eq_struct.rs | 103 - .../trait_handlers/partial_eq/partial_eq_union.rs | 63 - vendor/educe/src/trait_handlers/partial_ord/mod.rs | 58 - .../partial_ord/models/field_attribute.rs | 208 - .../src/trait_handlers/partial_ord/models/mod.rs | 5 - .../partial_ord/models/type_attribute.rs | 140 - .../educe/src/trait_handlers/partial_ord/panic.rs | 6 - .../trait_handlers/partial_ord/partial_ord_enum.rs | 276 - .../partial_ord/partial_ord_struct.rs | 113 - vendor/ena/.cargo-checksum.json | 1 - vendor/ena/Cargo.toml | 35 - vendor/ena/LICENSE-APACHE | 201 - vendor/ena/LICENSE-MIT | 25 - vendor/ena/README.md | 22 - vendor/ena/measurements.txt | 6 - vendor/ena/src/bitvec.rs | 301 - vendor/ena/src/lib.rs | 24 - vendor/ena/src/snapshot_vec.rs | 441 - vendor/ena/src/undo_log.rs | 247 - vendor/ena/src/unify/backing_vec.rs | 263 - vendor/ena/src/unify/mod.rs | 598 - vendor/ena/src/unify/tests.rs | 486 - vendor/ena/tests/external_undo_log.rs | 202 - vendor/enum-ordinalize-derive/.cargo-checksum.json | 1 - vendor/enum-ordinalize-derive/Cargo.toml | 53 - vendor/enum-ordinalize-derive/LICENSE | 21 - vendor/enum-ordinalize-derive/README.md | 20 - vendor/enum-ordinalize-derive/src/int128.rs | 167 - vendor/enum-ordinalize-derive/src/int_wrapper.rs | 57 - vendor/enum-ordinalize-derive/src/lib.rs | 808 - vendor/enum-ordinalize-derive/src/panic.rs | 83 - vendor/enum-ordinalize-derive/src/variant_type.rs | 75 - vendor/enum-ordinalize/.cargo-checksum.json | 1 - vendor/enum-ordinalize/Cargo.toml | 58 - vendor/enum-ordinalize/LICENSE | 21 - vendor/enum-ordinalize/README.md | 190 - vendor/enum-ordinalize/src/lib.rs | 203 - vendor/enum-ordinalize/src/traits.rs | 68 - vendor/generic-array/.cargo-checksum.json | 1 - vendor/generic-array/CHANGELOG.md | 101 - vendor/generic-array/Cargo.toml | 75 - vendor/generic-array/LICENSE | 21 - vendor/generic-array/README.md | 62 - vendor/generic-array/build.rs | 5 - vendor/generic-array/src/arr.rs | 125 - vendor/generic-array/src/functional.rs | 95 - vendor/generic-array/src/hex.rs | 105 - vendor/generic-array/src/impl_serde.rs | 108 - vendor/generic-array/src/impl_zeroize.rs | 24 - vendor/generic-array/src/impls.rs | 269 - vendor/generic-array/src/iter.rs | 251 - vendor/generic-array/src/lib.rs | 690 - vendor/generic-array/src/sequence.rs | 380 - vendor/hashbrown-0.12.3/.cargo-checksum.json | 1 - vendor/hashbrown-0.12.3/CHANGELOG.md | 402 - vendor/hashbrown-0.12.3/Cargo.toml | 113 - vendor/hashbrown-0.12.3/LICENSE-APACHE | 201 - vendor/hashbrown-0.12.3/LICENSE-MIT | 25 - vendor/hashbrown-0.12.3/README.md | 126 - vendor/hashbrown-0.12.3/benches/bench.rs | 331 - .../benches/insert_unique_unchecked.rs | 32 - vendor/hashbrown-0.12.3/clippy.toml | 1 - .../src/external_trait_impls/mod.rs | 4 - .../src/external_trait_impls/rayon/helpers.rs | 27 - .../src/external_trait_impls/rayon/map.rs | 734 - .../src/external_trait_impls/rayon/mod.rs | 4 - .../src/external_trait_impls/rayon/raw.rs | 231 - .../src/external_trait_impls/rayon/set.rs | 659 - .../src/external_trait_impls/serde.rs | 201 - vendor/hashbrown-0.12.3/src/lib.rs | 150 - vendor/hashbrown-0.12.3/src/macros.rs | 70 - vendor/hashbrown-0.12.3/src/map.rs | 8408 ---- vendor/hashbrown-0.12.3/src/raw/alloc.rs | 73 - vendor/hashbrown-0.12.3/src/raw/bitmask.rs | 122 - vendor/hashbrown-0.12.3/src/raw/generic.rs | 154 - vendor/hashbrown-0.12.3/src/raw/mod.rs | 2460 -- vendor/hashbrown-0.12.3/src/raw/sse2.rs | 146 - vendor/hashbrown-0.12.3/src/rustc_entry.rs | 630 - vendor/hashbrown-0.12.3/src/scopeguard.rs | 74 - vendor/hashbrown-0.12.3/src/set.rs | 2790 -- vendor/hashbrown-0.12.3/tests/hasher.rs | 65 - vendor/hashbrown-0.12.3/tests/rayon.rs | 533 - vendor/hashbrown-0.12.3/tests/serde.rs | 65 - vendor/hashbrown-0.12.3/tests/set.rs | 34 - vendor/hex/.cargo-checksum.json | 1 - vendor/hex/Cargo.toml | 63 - vendor/hex/LICENSE-APACHE | 202 - vendor/hex/LICENSE-MIT | 20 - vendor/hex/README.md | 69 - vendor/hex/benches/hex.rs | 61 - vendor/hex/src/error.rs | 59 - vendor/hex/src/lib.rs | 525 - vendor/hex/src/serde.rs | 102 - vendor/hex/tests/serde.rs | 59 - vendor/hex/tests/version-number.rs | 11 - vendor/home/.cargo-checksum.json | 1 - vendor/home/Cargo.lock | 83 - vendor/home/Cargo.toml | 69 - vendor/home/LICENSE-APACHE | 201 - vendor/home/LICENSE-MIT | 23 - vendor/home/README.md | 38 - vendor/home/src/env.rs | 114 - vendor/home/src/lib.rs | 150 - vendor/home/src/windows.rs | 78 - vendor/iana-time-zone-haiku/.cargo-checksum.json | 1 - vendor/iana-time-zone-haiku/Cargo.toml | 34 - vendor/iana-time-zone-haiku/LICENSE-APACHE | 201 - vendor/iana-time-zone-haiku/LICENSE-MIT | 25 - vendor/iana-time-zone-haiku/README.md | 8 - vendor/iana-time-zone-haiku/build.rs | 22 - vendor/iana-time-zone-haiku/src/implementation.cc | 67 - vendor/iana-time-zone-haiku/src/lib.rs | 71 - vendor/iana-time-zone/.cargo-checksum.json | 1 - vendor/iana-time-zone/CHANGELOG.md | 353 - vendor/iana-time-zone/Cargo.lock | 590 - vendor/iana-time-zone/Cargo.toml | 93 - vendor/iana-time-zone/LICENSE-APACHE | 201 - vendor/iana-time-zone/LICENSE-MIT | 25 - vendor/iana-time-zone/README.md | 51 - vendor/iana-time-zone/bindings.txt | 4 - vendor/iana-time-zone/deny.toml | 4 - vendor/iana-time-zone/examples/get_timezone.rs | 6 - .../iana-time-zone/examples/get_timezone_loop.rs | 13 - vendor/iana-time-zone/examples/stress-test.rs | 25 - vendor/iana-time-zone/src/ffi_utils.rs | 718 - vendor/iana-time-zone/src/lib.rs | 119 - vendor/iana-time-zone/src/platform.rs | 9 - vendor/iana-time-zone/src/tz_aix.rs | 7 - vendor/iana-time-zone/src/tz_android.rs | 27 - vendor/iana-time-zone/src/tz_darwin.rs | 179 - vendor/iana-time-zone/src/tz_freebsd.rs | 7 - vendor/iana-time-zone/src/tz_haiku.rs | 3 - vendor/iana-time-zone/src/tz_illumos.rs | 22 - vendor/iana-time-zone/src/tz_linux.rs | 184 - vendor/iana-time-zone/src/tz_netbsd.rs | 25 - vendor/iana-time-zone/src/tz_ohos.rs | 47 - vendor/iana-time-zone/src/tz_wasm32_unknown.rs | 21 - vendor/iana-time-zone/src/tz_windows.rs | 16 - vendor/iana-time-zone/src/windows_bindings.rs | 1630 - vendor/ident_case/.cargo-checksum.json | 1 - vendor/ident_case/CHANGELOG.md | 2 - vendor/ident_case/Cargo.toml | 23 - vendor/ident_case/LICENSE | 19 - vendor/ident_case/README.md | 15 - vendor/ident_case/src/lib.rs | 168 - vendor/indexmap-1.9.3/.cargo-checksum.json | 1 - vendor/indexmap-1.9.3/Cargo.toml | 108 - vendor/indexmap-1.9.3/LICENSE-APACHE | 201 - vendor/indexmap-1.9.3/LICENSE-MIT | 25 - vendor/indexmap-1.9.3/README.md | 55 - vendor/indexmap-1.9.3/RELEASES.md | 388 - vendor/indexmap-1.9.3/benches/bench.rs | 763 - vendor/indexmap-1.9.3/benches/faststring.rs | 185 - vendor/indexmap-1.9.3/build.rs | 8 - vendor/indexmap-1.9.3/src/arbitrary.rs | 75 - vendor/indexmap-1.9.3/src/equivalent.rs | 27 - vendor/indexmap-1.9.3/src/lib.rs | 194 - vendor/indexmap-1.9.3/src/macros.rs | 178 - vendor/indexmap-1.9.3/src/map.rs | 1947 - vendor/indexmap-1.9.3/src/map/core.rs | 700 - vendor/indexmap-1.9.3/src/map/core/raw.rs | 191 - vendor/indexmap-1.9.3/src/mutable_keys.rs | 75 - vendor/indexmap-1.9.3/src/rayon/map.rs | 583 - vendor/indexmap-1.9.3/src/rayon/mod.rs | 27 - vendor/indexmap-1.9.3/src/rayon/set.rs | 741 - vendor/indexmap-1.9.3/src/rustc.rs | 158 - vendor/indexmap-1.9.3/src/serde.rs | 155 - vendor/indexmap-1.9.3/src/serde_seq.rs | 112 - vendor/indexmap-1.9.3/src/set.rs | 1912 - vendor/indexmap-1.9.3/src/util.rs | 31 - vendor/indexmap-1.9.3/tests/equivalent_trait.rs | 53 - vendor/indexmap-1.9.3/tests/macros_full_path.rs | 19 - vendor/indexmap-1.9.3/tests/quick.rs | 573 - vendor/indexmap-1.9.3/tests/tests.rs | 28 - vendor/keccak/.cargo-checksum.json | 1 - vendor/keccak/CHANGELOG.md | 45 - vendor/keccak/Cargo.toml | 43 - vendor/keccak/LICENSE-APACHE | 201 - vendor/keccak/LICENSE-MIT | 25 - vendor/keccak/README.md | 66 - vendor/keccak/benches/mod.rs | 43 - vendor/keccak/src/armv8.rs | 192 - vendor/keccak/src/lib.rs | 498 - vendor/keccak/src/unroll.rs | 62 - vendor/lalrpop-util/.cargo-checksum.json | 1 - vendor/lalrpop-util/Cargo.lock | 49 - vendor/lalrpop-util/Cargo.toml | 65 - vendor/lalrpop-util/LICENSE-APACHE | 201 - vendor/lalrpop-util/LICENSE-MIT | 25 - vendor/lalrpop-util/README.md | 64 - vendor/lalrpop-util/src/lexer.rs | 154 - vendor/lalrpop-util/src/lib.rs | 296 - vendor/lalrpop-util/src/state_machine.rs | 684 - vendor/lalrpop/.cargo-checksum.json | 1 - vendor/lalrpop/Cargo.lock | 637 - vendor/lalrpop/Cargo.toml | 134 - vendor/lalrpop/LICENSE-APACHE | 201 - vendor/lalrpop/LICENSE-MIT | 25 - vendor/lalrpop/README.md | 64 - vendor/lalrpop/src/api/mod.rs | 293 - vendor/lalrpop/src/build/action.rs | 468 - vendor/lalrpop/src/build/fake_term.rs | 84 - vendor/lalrpop/src/build/mod.rs | 690 - vendor/lalrpop/src/collections/map.rs | 15 - vendor/lalrpop/src/collections/mod.rs | 7 - vendor/lalrpop/src/collections/multimap.rs | 141 - vendor/lalrpop/src/collections/set.rs | 8 - vendor/lalrpop/src/file_text.rs | 146 - vendor/lalrpop/src/generate.rs | 84 - vendor/lalrpop/src/grammar/consts.rs | 29 - vendor/lalrpop/src/grammar/free_variables/mod.rs | 192 - vendor/lalrpop/src/grammar/free_variables/test.rs | 38 - vendor/lalrpop/src/grammar/mod.rs | 8 - vendor/lalrpop/src/grammar/parse_tree.rs | 1229 - vendor/lalrpop/src/grammar/pattern.rs | 128 - vendor/lalrpop/src/grammar/repr.rs | 748 - vendor/lalrpop/src/grammar/token/mod.rs | 25 - vendor/lalrpop/src/kernel_set.rs | 41 - vendor/lalrpop/src/lexer/dfa/interpret.rs | 41 - vendor/lalrpop/src/lexer/dfa/mod.rs | 342 - vendor/lalrpop/src/lexer/dfa/overlap.rs | 178 - vendor/lalrpop/src/lexer/dfa/test.rs | 77 - vendor/lalrpop/src/lexer/intern_token/mod.rs | 76 - vendor/lalrpop/src/lexer/mod.rs | 8 - vendor/lalrpop/src/lexer/nfa/interpret.rs | 72 - vendor/lalrpop/src/lexer/nfa/mod.rs | 619 - vendor/lalrpop/src/lexer/nfa/test.rs | 161 - vendor/lalrpop/src/lexer/re/mod.rs | 29 - vendor/lalrpop/src/lexer/re/test.rs | 11 - vendor/lalrpop/src/lib.rs | 51 - vendor/lalrpop/src/log.rs | 67 - vendor/lalrpop/src/lr1/build/mod.rs | 354 - vendor/lalrpop/src/lr1/build/test.rs | 358 - vendor/lalrpop/src/lr1/build_lalr/mod.rs | 155 - vendor/lalrpop/src/lr1/build_lalr/test.rs | 49 - vendor/lalrpop/src/lr1/codegen/ascent.rs | 1004 - vendor/lalrpop/src/lr1/codegen/base.rs | 379 - vendor/lalrpop/src/lr1/codegen/mod.rs | 4 - vendor/lalrpop/src/lr1/codegen/parse_table.rs | 1682 - vendor/lalrpop/src/lr1/codegen/test_all.rs | 152 - vendor/lalrpop/src/lr1/core/mod.rs | 326 - vendor/lalrpop/src/lr1/error/mod.rs | 935 - vendor/lalrpop/src/lr1/error/test.rs | 267 - vendor/lalrpop/src/lr1/example/mod.rs | 409 - vendor/lalrpop/src/lr1/example/test.rs | 202 - vendor/lalrpop/src/lr1/first/mod.rs | 105 - vendor/lalrpop/src/lr1/first/test.rs | 98 - vendor/lalrpop/src/lr1/interpret.rs | 206 - vendor/lalrpop/src/lr1/lane_table/README.md | 417 - .../lalrpop/src/lr1/lane_table/construct/merge.rs | 217 - vendor/lalrpop/src/lr1/lane_table/construct/mod.rs | 255 - .../src/lr1/lane_table/construct/state_set.rs | 46 - vendor/lalrpop/src/lr1/lane_table/lane/mod.rs | 151 - vendor/lalrpop/src/lr1/lane_table/mod.rs | 24 - .../src/lr1/lane_table/table/context_set/mod.rs | 96 - .../src/lr1/lane_table/table/context_set/test.rs | 1 - vendor/lalrpop/src/lr1/lane_table/table/mod.rs | 205 - vendor/lalrpop/src/lr1/lane_table/test.rs | 421 - vendor/lalrpop/src/lr1/lookahead.rs | 317 - vendor/lalrpop/src/lr1/mod.rs | 78 - vendor/lalrpop/src/lr1/report/mod.rs | 406 - vendor/lalrpop/src/lr1/report/test.rs | 40 - vendor/lalrpop/src/lr1/state_graph.rs | 95 - vendor/lalrpop/src/lr1/tls.rs | 32 - vendor/lalrpop/src/lr1/trace/mod.rs | 31 - vendor/lalrpop/src/lr1/trace/reduce/mod.rs | 111 - vendor/lalrpop/src/lr1/trace/reduce/test.rs | 375 - vendor/lalrpop/src/lr1/trace/shift/mod.rs | 100 - vendor/lalrpop/src/lr1/trace/shift/test.rs | 80 - vendor/lalrpop/src/lr1/trace/trace_graph/mod.rs | 455 - vendor/lalrpop/src/lr1/trace/trace_graph/test.rs | 164 - vendor/lalrpop/src/main.rs | 227 - vendor/lalrpop/src/message/builder.rs | 304 - vendor/lalrpop/src/message/horiz.rs | 37 - vendor/lalrpop/src/message/indent.rs | 29 - vendor/lalrpop/src/message/message.rs | 85 - vendor/lalrpop/src/message/mod.rs | 83 - vendor/lalrpop/src/message/styled.rs | 38 - vendor/lalrpop/src/message/test.rs | 83 - vendor/lalrpop/src/message/text.rs | 37 - vendor/lalrpop/src/message/vert.rs | 36 - vendor/lalrpop/src/message/wrap.rs | 54 - vendor/lalrpop/src/normalize/cond_comp/mod.rs | 65 - vendor/lalrpop/src/normalize/cond_comp/test.rs | 74 - vendor/lalrpop/src/normalize/inline/graph/mod.rs | 118 - vendor/lalrpop/src/normalize/inline/graph/test.rs | 55 - vendor/lalrpop/src/normalize/inline/mod.rs | 155 - vendor/lalrpop/src/normalize/inline/test.rs | 104 - vendor/lalrpop/src/normalize/lower/mod.rs | 504 - vendor/lalrpop/src/normalize/macro_expand/mod.rs | 650 - vendor/lalrpop/src/normalize/macro_expand/test.rs | 147 - vendor/lalrpop/src/normalize/mod.rs | 124 - vendor/lalrpop/src/normalize/norm_util.rs | 154 - vendor/lalrpop/src/normalize/precedence/mod.rs | 379 - vendor/lalrpop/src/normalize/precedence/test.rs | 305 - vendor/lalrpop/src/normalize/prevalidate/mod.rs | 450 - vendor/lalrpop/src/normalize/prevalidate/test.rs | 233 - vendor/lalrpop/src/normalize/resolve/mod.rs | 293 - vendor/lalrpop/src/normalize/resolve/test.rs | 82 - vendor/lalrpop/src/normalize/token_check/mod.rs | 426 - vendor/lalrpop/src/normalize/token_check/test.rs | 243 - vendor/lalrpop/src/normalize/tyinfer/mod.rs | 391 - vendor/lalrpop/src/normalize/tyinfer/test.rs | 244 - vendor/lalrpop/src/parser/lrgrammar.lalrpop | 526 - vendor/lalrpop/src/parser/lrgrammar.rs | 39368 ------------------- vendor/lalrpop/src/parser/mod.rs | 74 - vendor/lalrpop/src/parser/test.rs | 171 - vendor/lalrpop/src/rust/mod.rs | 309 - vendor/lalrpop/src/session.rs | 181 - vendor/lalrpop/src/test_util.rs | 73 - vendor/lalrpop/src/tls/mod.rs | 73 - vendor/lalrpop/src/tok/mod.rs | 870 - vendor/lalrpop/src/tok/test.rs | 891 - vendor/lalrpop/src/util.rs | 50 - vendor/lock_api/.cargo-checksum.json | 1 - vendor/lock_api/Cargo.lock | 95 - vendor/lock_api/Cargo.toml | 71 - vendor/lock_api/LICENSE-APACHE | 201 - vendor/lock_api/LICENSE-MIT | 25 - vendor/lock_api/build.rs | 9 - vendor/lock_api/src/lib.rs | 117 - vendor/lock_api/src/mutex.rs | 964 - vendor/lock_api/src/remutex.rs | 1057 - vendor/lock_api/src/rwlock.rs | 2886 -- vendor/logos-codegen/.cargo-checksum.json | 1 - vendor/logos-codegen/Cargo.toml | 90 - vendor/logos-codegen/LICENSE-APACHE | 201 - vendor/logos-codegen/LICENSE-MIT | 21 - vendor/logos-codegen/README.md | 115 - vendor/logos-codegen/build.rs | 21 - vendor/logos-codegen/src/error.rs | 110 - vendor/logos-codegen/src/generator/context.rs | 128 - vendor/logos-codegen/src/generator/fork.rs | 216 - vendor/logos-codegen/src/generator/leaf.rs | 67 - vendor/logos-codegen/src/generator/mod.rs | 268 - vendor/logos-codegen/src/generator/rope.rs | 39 - vendor/logos-codegen/src/generator/tables.rs | 77 - vendor/logos-codegen/src/graph/fork.rs | 267 - vendor/logos-codegen/src/graph/impls.rs | 220 - vendor/logos-codegen/src/graph/meta.rs | 174 - vendor/logos-codegen/src/graph/mod.rs | 566 - vendor/logos-codegen/src/graph/range.rs | 144 - vendor/logos-codegen/src/graph/regex.rs | 295 - vendor/logos-codegen/src/graph/rope.rs | 330 - vendor/logos-codegen/src/leaf.rs | 118 - vendor/logos-codegen/src/lib.rs | 391 - vendor/logos-codegen/src/macros.rs | 12 - vendor/logos-codegen/src/mir.rs | 235 - vendor/logos-codegen/src/parser/definition.rs | 193 - vendor/logos-codegen/src/parser/ignore_flags.rs | 499 - vendor/logos-codegen/src/parser/mod.rs | 331 - vendor/logos-codegen/src/parser/nested.rs | 146 - vendor/logos-codegen/src/parser/subpattern.rs | 97 - vendor/logos-codegen/src/parser/type_params.rs | 200 - vendor/logos-codegen/src/util.rs | 64 - vendor/logos-codegen/tests/codegen.rs | 31 - .../logos-codegen/tests/data/no_error_lut/input.rs | 10 - .../tests/data/no_error_lut/output.rs | 1 - vendor/logos-codegen/tests/data/simple/input.rs | 5 - vendor/logos-codegen/tests/data/simple/output.rs | 1 - vendor/logos-derive/.cargo-checksum.json | 1 - vendor/logos-derive/Cargo.toml | 58 - vendor/logos-derive/LICENSE-APACHE | 201 - vendor/logos-derive/LICENSE-MIT | 21 - vendor/logos-derive/README.md | 115 - vendor/logos-derive/src/lib.rs | 6 - vendor/logos/.cargo-checksum.json | 1 - vendor/logos/Cargo.lock | 444 - vendor/logos/Cargo.toml | 122 - vendor/logos/LICENSE-APACHE | 201 - vendor/logos/LICENSE-MIT | 21 - vendor/logos/README.md | 115 - vendor/logos/RELEASE-PROCESS.md | 25 - vendor/logos/book/book.toml | 15 - vendor/logos/book/mdbook-admonish.css | 348 - vendor/logos/book/src/SUMMARY.md | 23 - .../book/src/assets/calculator_example_flow.png | Bin 45694 -> 0 bytes .../calculator_example_how_evaluator_works.png | Bin 48615 -> 0 bytes vendor/logos/book/src/attributes.md | 17 - vendor/logos/book/src/attributes/logos.md | 60 - .../logos/book/src/attributes/token_and_regex.md | 31 - vendor/logos/book/src/callbacks.md | 69 - vendor/logos/book/src/common-regex.md | 57 - vendor/logos/book/src/contributing.md | 32 - vendor/logos/book/src/contributing/fuzzing.md | 51 - vendor/logos/book/src/contributing/internals.md | 27 - vendor/logos/book/src/contributing/setup.md | 117 - vendor/logos/book/src/debugging.md | 108 - vendor/logos/book/src/examples.md | 11 - vendor/logos/book/src/examples/brainfuck.md | 31 - vendor/logos/book/src/examples/calculator.md | 143 - vendor/logos/book/src/examples/json.md | 58 - vendor/logos/book/src/examples/json_borrowed.md | 55 - vendor/logos/book/src/extras.md | 47 - vendor/logos/book/src/getting-help.md | 17 - vendor/logos/book/src/getting-started.md | 70 - vendor/logos/book/src/intro.md | 27 - vendor/logos/book/src/token-disambiguation.md | 34 - vendor/logos/book/src/unsafe.md | 36 - vendor/logos/examples/brainfuck.rs | 161 - vendor/logos/examples/calculator.rs | 174 - vendor/logos/examples/custom_error.rs | 69 - vendor/logos/examples/example.json | 54 - vendor/logos/examples/extras.rs | 73 - vendor/logos/examples/hello_world.bf | 43 - vendor/logos/examples/json.rs | 232 - vendor/logos/examples/json_borrowed.rs | 228 - vendor/logos/logos.png | Bin 1396682 -> 0 bytes vendor/logos/logos.svg | 1 - vendor/logos/release.toml | 3 - vendor/logos/src/internal.rs | 227 - vendor/logos/src/lexer.rs | 411 - vendor/logos/src/lib.rs | 270 - vendor/logos/src/source.rs | 340 - vendor/miette-derive/.cargo-checksum.json | 1 - vendor/miette-derive/Cargo.lock | 47 - vendor/miette-derive/Cargo.toml | 40 - vendor/miette-derive/LICENSE | 229 - vendor/miette-derive/src/code.rs | 80 - vendor/miette-derive/src/diagnostic.rs | 397 - vendor/miette-derive/src/diagnostic_arg.rs | 42 - vendor/miette-derive/src/diagnostic_source.rs | 78 - vendor/miette-derive/src/fmt.rs | 235 - vendor/miette-derive/src/forward.rs | 161 - vendor/miette-derive/src/help.rs | 146 - vendor/miette-derive/src/label.rs | 333 - vendor/miette-derive/src/lib.rs | 32 - vendor/miette-derive/src/related.rs | 79 - vendor/miette-derive/src/severity.rs | 89 - vendor/miette-derive/src/source_code.rs | 117 - vendor/miette-derive/src/url.rs | 139 - vendor/miette-derive/src/utils.rs | 140 - vendor/miette/.cargo-checksum.json | 1 - vendor/miette/CHANGELOG.md | 1091 - vendor/miette/CODE_OF_CONDUCT.md | 150 - vendor/miette/CONTRIBUTING.md | 257 - vendor/miette/Cargo.lock | 927 - vendor/miette/Cargo.toml | 168 - vendor/miette/LICENSE | 202 - vendor/miette/Makefile.toml | 17 - vendor/miette/README.md | 819 - vendor/miette/README.tpl | 18 - vendor/miette/cliff.toml | 62 - vendor/miette/clippy.toml | 1 - vendor/miette/examples/serde_json.rs | 48 - vendor/miette/rustfmt.toml | 1 - vendor/miette/src/chain.rs | 118 - vendor/miette/src/diagnostic_chain.rs | 93 - vendor/miette/src/diagnostic_impls.rs | 55 - vendor/miette/src/error.rs | 125 - vendor/miette/src/eyreish/context.rs | 255 - vendor/miette/src/eyreish/error.rs | 823 - vendor/miette/src/eyreish/fmt.rs | 20 - vendor/miette/src/eyreish/into_diagnostic.rs | 68 - vendor/miette/src/eyreish/kind.rs | 114 - vendor/miette/src/eyreish/macros.rs | 300 - vendor/miette/src/eyreish/mod.rs | 485 - vendor/miette/src/eyreish/ptr.rs | 188 - vendor/miette/src/eyreish/wrapper.rs | 302 - vendor/miette/src/handler.rs | 628 - vendor/miette/src/handlers/debug.rs | 71 - vendor/miette/src/handlers/graphical.rs | 1506 - vendor/miette/src/handlers/json.rs | 182 - vendor/miette/src/handlers/mod.rs | 24 - vendor/miette/src/handlers/narratable.rs | 423 - vendor/miette/src/handlers/theme.rs | 277 - vendor/miette/src/highlighters/blank.rs | 36 - vendor/miette/src/highlighters/mod.rs | 116 - vendor/miette/src/highlighters/syntect.rs | 171 - vendor/miette/src/lib.rs | 838 - vendor/miette/src/macro_helpers.rs | 61 - vendor/miette/src/miette_diagnostic.rs | 369 - vendor/miette/src/named_source.rs | 78 - vendor/miette/src/panic.rs | 132 - vendor/miette/src/protocol.rs | 770 - vendor/miette/src/source_impls.rs | 296 - vendor/new_debug_unreachable/.cargo-checksum.json | 1 - vendor/new_debug_unreachable/Cargo.lock | 7 - vendor/new_debug_unreachable/Cargo.toml | 36 - vendor/new_debug_unreachable/LICENSE-MIT | 25 - vendor/new_debug_unreachable/README.md | 42 - vendor/new_debug_unreachable/examples/simple.rs | 10 - vendor/new_debug_unreachable/src/lib.rs | 39 - vendor/new_debug_unreachable/tests/check.rs | 7 - vendor/nonempty/.cargo-checksum.json | 1 - vendor/nonempty/Cargo.toml | 37 - vendor/nonempty/LICENSE | 19 - vendor/nonempty/README.md | 20 - vendor/nonempty/deny.toml | 2 - vendor/nonempty/flake.lock | 121 - vendor/nonempty/flake.nix | 148 - vendor/nonempty/src/lib.rs | 1206 - vendor/nonempty/src/nonzero.rs | 96 - vendor/num-conv/.cargo-checksum.json | 1 - vendor/num-conv/Cargo.toml | 55 - vendor/num-conv/LICENSE-Apache | 202 - vendor/num-conv/LICENSE-MIT | 19 - vendor/num-conv/src/lib.rs | 329 - vendor/num-traits/.cargo-checksum.json | 1 - vendor/num-traits/Cargo.toml | 54 - vendor/num-traits/LICENSE-APACHE | 201 - vendor/num-traits/LICENSE-MIT | 25 - vendor/num-traits/README.md | 58 - vendor/num-traits/RELEASES.md | 307 - vendor/num-traits/build.rs | 7 - vendor/num-traits/src/bounds.rs | 148 - vendor/num-traits/src/cast.rs | 770 - vendor/num-traits/src/float.rs | 2513 -- vendor/num-traits/src/identities.rs | 238 - vendor/num-traits/src/int.rs | 562 - vendor/num-traits/src/lib.rs | 635 - vendor/num-traits/src/macros.rs | 44 - vendor/num-traits/src/ops/bytes.rs | 317 - vendor/num-traits/src/ops/checked.rs | 261 - vendor/num-traits/src/ops/euclid.rs | 278 - vendor/num-traits/src/ops/inv.rs | 47 - vendor/num-traits/src/ops/mod.rs | 8 - vendor/num-traits/src/ops/mul_add.rs | 149 - vendor/num-traits/src/ops/overflowing.rs | 96 - vendor/num-traits/src/ops/saturating.rs | 130 - vendor/num-traits/src/ops/wrapping.rs | 327 - vendor/num-traits/src/pow.rs | 242 - vendor/num-traits/src/real.rs | 834 - vendor/num-traits/src/sign.rs | 216 - vendor/num-traits/tests/cast.rs | 387 - vendor/parking_lot/.cargo-checksum.json | 1 - vendor/parking_lot/CHANGELOG.md | 277 - vendor/parking_lot/Cargo.lock | 441 - vendor/parking_lot/Cargo.toml | 87 - vendor/parking_lot/LICENSE-APACHE | 201 - vendor/parking_lot/LICENSE-MIT | 25 - vendor/parking_lot/README.md | 151 - vendor/parking_lot/bors.toml | 4 - vendor/parking_lot/release-plz.toml | 19 - vendor/parking_lot/src/condvar.rs | 1270 - vendor/parking_lot/src/deadlock.rs | 232 - vendor/parking_lot/src/elision.rs | 116 - vendor/parking_lot/src/fair_mutex.rs | 274 - vendor/parking_lot/src/lib.rs | 59 - vendor/parking_lot/src/mutex.rs | 311 - vendor/parking_lot/src/once.rs | 452 - vendor/parking_lot/src/raw_fair_mutex.rs | 65 - vendor/parking_lot/src/raw_mutex.rs | 331 - vendor/parking_lot/src/raw_rwlock.rs | 1157 - vendor/parking_lot/src/remutex.rs | 171 - vendor/parking_lot/src/rwlock.rs | 659 - vendor/parking_lot/src/util.rs | 38 - vendor/parking_lot/tests/issue_203.rs | 26 - vendor/parking_lot/tests/issue_392.rs | 15 - vendor/parking_lot_core/.cargo-checksum.json | 1 - vendor/parking_lot_core/Cargo.lock | 250 - vendor/parking_lot_core/Cargo.toml | 77 - vendor/parking_lot_core/LICENSE-APACHE | 201 - vendor/parking_lot_core/LICENSE-MIT | 25 - vendor/parking_lot_core/build.rs | 11 - vendor/parking_lot_core/src/lib.rs | 67 - vendor/parking_lot_core/src/parking_lot.rs | 1700 - vendor/parking_lot_core/src/spinwait.rs | 74 - .../parking_lot_core/src/thread_parker/generic.rs | 79 - vendor/parking_lot_core/src/thread_parker/linux.rs | 156 - vendor/parking_lot_core/src/thread_parker/mod.rs | 85 - vendor/parking_lot_core/src/thread_parker/redox.rs | 139 - vendor/parking_lot_core/src/thread_parker/sgx.rs | 94 - vendor/parking_lot_core/src/thread_parker/unix.rs | 242 - vendor/parking_lot_core/src/thread_parker/wasm.rs | 54 - .../src/thread_parker/wasm_atomic.rs | 97 - .../src/thread_parker/windows/bindings.rs | 31 - .../src/thread_parker/windows/keyed_event.rs | 194 - .../src/thread_parker/windows/mod.rs | 175 - .../src/thread_parker/windows/waitaddress.rs | 125 - vendor/parking_lot_core/src/util.rs | 31 - vendor/parking_lot_core/src/word_lock.rs | 327 - vendor/phf_shared/.cargo-checksum.json | 1 - vendor/phf_shared/CHANGELOG.md | 294 - vendor/phf_shared/Cargo.lock | 39 - vendor/phf_shared/Cargo.toml | 50 - vendor/phf_shared/LICENSE | 20 - vendor/phf_shared/README.md | 5 - vendor/phf_shared/src/lib.rs | 445 - vendor/pico-args/.cargo-checksum.json | 1 - vendor/pico-args/CHANGELOG.md | 95 - vendor/pico-args/Cargo.lock | 7 - vendor/pico-args/Cargo.toml | 32 - vendor/pico-args/LICENSE | 20 - vendor/pico-args/README.md | 71 - vendor/pico-args/examples/app.rs | 81 - vendor/pico-args/examples/dash_dash.rs | 48 - vendor/pico-args/src/lib.rs | 808 - vendor/pico-args/tests/tests.rs | 495 - vendor/powerfmt/.cargo-checksum.json | 1 - vendor/powerfmt/Cargo.toml | 59 - vendor/powerfmt/LICENSE-Apache | 202 - vendor/powerfmt/LICENSE-MIT | 19 - vendor/powerfmt/README.md | 45 - vendor/powerfmt/src/buf.rs | 198 - vendor/powerfmt/src/ext.rs | 54 - vendor/powerfmt/src/lib.rs | 15 - vendor/powerfmt/src/smart_display.rs | 695 - vendor/powerfmt/src/smart_display_impls.rs | 303 - vendor/precomputed-hash/.cargo-checksum.json | 1 - vendor/precomputed-hash/Cargo.toml | 21 - vendor/precomputed-hash/LICENSE | 21 - vendor/precomputed-hash/src/lib.rs | 22 - vendor/pretty/.cargo-checksum.json | 1 - vendor/pretty/CHANGELOG.md | 134 - vendor/pretty/Cargo.lock | 761 - vendor/pretty/Cargo.toml | 82 - vendor/pretty/LICENSE | 20 - vendor/pretty/README.md | 45 - vendor/pretty/benches/trees.rs | 129 - vendor/pretty/examples/colored.rs | 32 - vendor/pretty/examples/trees.rs | 116 - vendor/pretty/release.sh | 15 - vendor/pretty/src/block.rs | 201 - vendor/pretty/src/lib.rs | 2192 -- vendor/pretty/src/render.rs | 572 - vendor/psm/.cargo-checksum.json | 1 - vendor/psm/Cargo.lock | 25 - vendor/psm/Cargo.toml | 72 - vendor/psm/LICENSE-APACHE | 201 - vendor/psm/LICENSE-MIT | 16 - vendor/psm/README.mkd | 520 - vendor/psm/build.rs | 119 - vendor/psm/examples/info.rs | 20 - vendor/psm/examples/on_stack_fibo.rs | 77 - .../psm/examples/on_stack_fibo_alloc_each_frame.rs | 53 - vendor/psm/examples/panics.rs | 52 - vendor/psm/examples/replace_stack_1.rs | 33 - vendor/psm/examples/thread.rs | 60 - vendor/psm/src/arch/aarch64_armasm.asm | 38 - vendor/psm/src/arch/aarch_aapcs64.s | 88 - vendor/psm/src/arch/arm_aapcs.s | 106 - vendor/psm/src/arch/arm_armasm.asm | 39 - vendor/psm/src/arch/loongarch64.s | 63 - vendor/psm/src/arch/mips64_eabi.s | 87 - vendor/psm/src/arch/mips_eabi.s | 88 - vendor/psm/src/arch/powerpc32.s | 76 - vendor/psm/src/arch/powerpc64.s | 90 - vendor/psm/src/arch/powerpc64_aix.s | 137 - vendor/psm/src/arch/powerpc64_openpower.s | 86 - vendor/psm/src/arch/psm.h | 10 - vendor/psm/src/arch/riscv.s | 63 - vendor/psm/src/arch/riscv64.s | 63 - vendor/psm/src/arch/sparc64.s | 67 - vendor/psm/src/arch/sparc_sysv.s | 65 - vendor/psm/src/arch/wasm32.o | Bin 389 -> 0 bytes vendor/psm/src/arch/wasm32.s | 60 - vendor/psm/src/arch/x86.s | 91 - vendor/psm/src/arch/x86_64.s | 85 - vendor/psm/src/arch/x86_64_msvc.asm | 61 - vendor/psm/src/arch/x86_64_windows_gnu.s | 95 - vendor/psm/src/arch/x86_msvc.asm | 70 - vendor/psm/src/arch/x86_windows_gnu.s | 94 - vendor/psm/src/arch/zseries_linux.s | 75 - vendor/psm/src/lib.rs | 406 - vendor/psm/tests/stack_direction.rs | 6 - vendor/psm/tests/stack_direction_2.rs | 29 - vendor/redox_syscall/.cargo-checksum.json | 1 - vendor/redox_syscall/Cargo.lock | 456 - vendor/redox_syscall/Cargo.toml | 51 - vendor/redox_syscall/LICENSE | 22 - vendor/redox_syscall/README.md | 6 - vendor/redox_syscall/src/arch/aarch64.rs | 201 - vendor/redox_syscall/src/arch/riscv64.rs | 200 - vendor/redox_syscall/src/arch/x86.rs | 243 - vendor/redox_syscall/src/arch/x86_64.rs | 188 - vendor/redox_syscall/src/call.rs | 252 - vendor/redox_syscall/src/data.rs | 409 - vendor/redox_syscall/src/dirent.rs | 229 - vendor/redox_syscall/src/error.rs | 327 - vendor/redox_syscall/src/flag.rs | 326 - vendor/redox_syscall/src/io/io.rs | 73 - vendor/redox_syscall/src/io/mmio.rs | 165 - vendor/redox_syscall/src/io/mod.rs | 12 - vendor/redox_syscall/src/io/pio.rs | 89 - vendor/redox_syscall/src/lib.rs | 56 - vendor/redox_syscall/src/number.rs | 75 - vendor/redox_syscall/src/scheme/generate.sh | 25 - vendor/redox_syscall/src/scheme/mod.rs | 73 - vendor/redox_syscall/src/scheme/scheme.rs | 248 - vendor/redox_syscall/src/scheme/scheme_block.rs | 248 - .../redox_syscall/src/scheme/scheme_block_mut.rs | 248 - vendor/redox_syscall/src/scheme/scheme_mut.rs | 248 - vendor/redox_syscall/src/scheme/seek.rs | 41 - vendor/redox_syscall/src/schemev2.rs | 181 - vendor/redox_syscall/src/sigabi.rs | 331 - vendor/ref-cast-impl/.cargo-checksum.json | 1 - vendor/ref-cast-impl/Cargo.lock | 68 - vendor/ref-cast-impl/Cargo.toml | 55 - vendor/ref-cast-impl/LICENSE-APACHE | 176 - vendor/ref-cast-impl/LICENSE-MIT | 23 - vendor/ref-cast-impl/src/lib.rs | 540 - vendor/ref-cast/.cargo-checksum.json | 1 - vendor/ref-cast/Cargo.lock | 320 - vendor/ref-cast/Cargo.toml | 71 - vendor/ref-cast/LICENSE-APACHE | 176 - vendor/ref-cast/LICENSE-MIT | 23 - vendor/ref-cast/README.md | 123 - vendor/ref-cast/build.rs | 36 - vendor/ref-cast/src/custom.rs | 57 - vendor/ref-cast/src/layout.rs | 60 - vendor/ref-cast/src/lib.rs | 194 - vendor/ref-cast/src/trivial.rs | 15 - vendor/ref-cast/tests/compiletest.rs | 7 - vendor/ref-cast/tests/test_custom.rs | 18 - vendor/ref-cast/tests/test_trivial.rs | 52 - vendor/ref-cast/tests/ui/cross-crate.rs | 10 - vendor/ref-cast/tests/ui/cross-crate.stderr | 11 - vendor/ref-cast/tests/ui/dst-before-trivial.rs | 12 - vendor/ref-cast/tests/ui/dst-before-trivial.stderr | 17 - vendor/ref-cast/tests/ui/extra-arg.rs | 12 - vendor/ref-cast/tests/ui/extra-arg.stderr | 13 - vendor/ref-cast/tests/ui/function-body.rs | 12 - vendor/ref-cast/tests/ui/function-body.stderr | 13 - vendor/ref-cast/tests/ui/impl-trait.rs | 15 - vendor/ref-cast/tests/ui/impl-trait.stderr | 31 - vendor/ref-cast/tests/ui/no-custom.rs | 11 - vendor/ref-cast/tests/ui/no-custom.stderr | 35 - vendor/ref-cast/tests/ui/no-repr.rs | 8 - vendor/ref-cast/tests/ui/no-repr.stderr | 7 - vendor/ref-cast/tests/ui/not-trivial.rs | 11 - vendor/ref-cast/tests/ui/not-trivial.stderr | 15 - vendor/ref-cast/tests/ui/private.rs | 19 - vendor/ref-cast/tests/ui/private.stderr | 10 - vendor/ref-cast/tests/ui/repr-align.rs | 9 - vendor/ref-cast/tests/ui/repr-align.stderr | 17 - vendor/ref-cast/tests/ui/short-lifetime.rs | 12 - vendor/ref-cast/tests/ui/short-lifetime.stderr | 7 - vendor/ref-cast/tests/ui/unrecognized-repr.rs | 9 - vendor/ref-cast/tests/ui/unrecognized-repr.stderr | 39 - vendor/rustc_lexer/.cargo-checksum.json | 1 - vendor/rustc_lexer/Cargo.toml | 26 - vendor/rustc_lexer/src/cursor.rs | 57 - vendor/rustc_lexer/src/lib.rs | 562 - vendor/rustc_lexer/src/unescape.rs | 305 - vendor/rustc_lexer/src/unescape/tests.rs | 271 - vendor/rustc_version/.cargo-checksum.json | 1 - vendor/rustc_version/Cargo.toml | 44 - vendor/rustc_version/LICENSE-APACHE | 201 - vendor/rustc_version/LICENSE-MIT | 25 - vendor/rustc_version/README.md | 81 - vendor/rustc_version/deny.toml | 2 - vendor/rustc_version/src/lib.rs | 424 - vendor/rustc_version/tests/all.rs | 456 - vendor/same-file/.cargo-checksum.json | 1 - vendor/same-file/COPYING | 3 - vendor/same-file/Cargo.lock | 48 - vendor/same-file/Cargo.toml | 29 - vendor/same-file/LICENSE-MIT | 21 - vendor/same-file/README.md | 49 - vendor/same-file/UNLICENSE | 24 - vendor/same-file/examples/is_same_file.rs | 11 - vendor/same-file/examples/is_stderr.rs | 31 - vendor/same-file/rustfmt.toml | 2 - vendor/same-file/src/lib.rs | 572 - vendor/same-file/src/unix.rs | 112 - vendor/same-file/src/unknown.rs | 52 - vendor/same-file/src/win.rs | 172 - vendor/schemars/.cargo-checksum.json | 1 - vendor/schemars/Cargo.lock | 1636 - vendor/schemars/Cargo.toml | 328 - vendor/schemars/LICENSE | 21 - vendor/schemars/README.md | 288 - vendor/schemars/docs-rs-custom.css | 4 - vendor/schemars/examples/custom_serialization.rs | 61 - .../examples/custom_serialization.schema.json | 25 - vendor/schemars/examples/custom_settings.rs | 24 - .../schemars/examples/custom_settings.schema.json | 64 - vendor/schemars/examples/doc_comments.rs | 33 - vendor/schemars/examples/doc_comments.schema.json | 79 - vendor/schemars/examples/enum_repr.rs | 15 - vendor/schemars/examples/enum_repr.schema.json | 11 - vendor/schemars/examples/from_value.rs | 24 - vendor/schemars/examples/from_value.schema.json | 23 - vendor/schemars/examples/main.rs | 19 - vendor/schemars/examples/main.schema.json | 70 - vendor/schemars/examples/remote_derive.rs | 42 - vendor/schemars/examples/remote_derive.schema.json | 43 - vendor/schemars/examples/schemars_attrs.rs | 34 - .../schemars/examples/schemars_attrs.schema.json | 67 - vendor/schemars/examples/serde_attrs.rs | 24 - vendor/schemars/examples/serde_attrs.schema.json | 54 - vendor/schemars/examples/serialize_contract.rs | 29 - .../examples/serialize_contract.schema.json | 27 - vendor/schemars/examples/validate.rs | 24 - vendor/schemars/examples/validate.schema.json | 64 - vendor/schemars/src/_private/mod.rs | 412 - vendor/schemars/src/_private/regex_syntax.rs | 54 - vendor/schemars/src/_private/rustdoc.rs | 94 - vendor/schemars/src/consts.rs | 26 - vendor/schemars/src/generate.rs | 777 - vendor/schemars/src/json_schema_impls/array.rs | 58 - .../schemars/src/json_schema_impls/arrayvec07.rs | 27 - vendor/schemars/src/json_schema_impls/atomic.rs | 60 - vendor/schemars/src/json_schema_impls/bytes1.rs | 29 - vendor/schemars/src/json_schema_impls/chrono04.rs | 62 - vendor/schemars/src/json_schema_impls/core.rs | 128 - vendor/schemars/src/json_schema_impls/decimal.rs | 37 - vendor/schemars/src/json_schema_impls/either1.rs | 44 - vendor/schemars/src/json_schema_impls/ffi.rs | 68 - vendor/schemars/src/json_schema_impls/indexmap2.rs | 6 - vendor/schemars/src/json_schema_impls/jiff02.rs | 38 - vendor/schemars/src/json_schema_impls/maps.rs | 34 - vendor/schemars/src/json_schema_impls/mod.rs | 93 - vendor/schemars/src/json_schema_impls/nonzero.rs | 64 - .../schemars/src/json_schema_impls/primitives.rs | 137 - vendor/schemars/src/json_schema_impls/semver1.rs | 22 - vendor/schemars/src/json_schema_impls/sequences.rs | 68 - vendor/schemars/src/json_schema_impls/serdejson.rs | 37 - vendor/schemars/src/json_schema_impls/std_time.rs | 46 - vendor/schemars/src/json_schema_impls/tuple.rs | 58 - vendor/schemars/src/json_schema_impls/url2.rs | 23 - vendor/schemars/src/json_schema_impls/uuid1.rs | 23 - vendor/schemars/src/json_schema_impls/wrapper.rs | 25 - vendor/schemars/src/lib.rs | 210 - vendor/schemars/src/macros.rs | 113 - vendor/schemars/src/schema.rs | 440 - vendor/schemars/src/ser.rs | 443 - vendor/schemars/src/transform.rs | 760 - vendor/schemars/tests/integration/arrayvec.rs | 36 - vendor/schemars/tests/integration/bound.rs | 35 - vendor/schemars/tests/integration/bytes.rs | 15 - vendor/schemars/tests/integration/chrono.rs | 42 - vendor/schemars/tests/integration/contract.rs | 254 - vendor/schemars/tests/integration/crate_alias.rs | 19 - vendor/schemars/tests/integration/decimal.rs | 19 - vendor/schemars/tests/integration/default.rs | 95 - vendor/schemars/tests/integration/deprecated.rs | 70 - vendor/schemars/tests/integration/docs.rs | 85 - vendor/schemars/tests/integration/either.rs | 14 - vendor/schemars/tests/integration/enum_repr.rs | 37 - vendor/schemars/tests/integration/enums.rs | 360 - .../tests/integration/enums_deny_unknown_fields.rs | 209 - .../schemars/tests/integration/enums_flattened.rs | 135 - vendor/schemars/tests/integration/examples.rs | 16 - vendor/schemars/tests/integration/extend.rs | 170 - vendor/schemars/tests/integration/flatten.rs | 93 - vendor/schemars/tests/integration/from_value.rs | 88 - vendor/schemars/tests/integration/garde.rs | 160 - vendor/schemars/tests/integration/indexmap.rs | 19 - .../tests/integration/inline_subschemas.rs | 61 - vendor/schemars/tests/integration/jiff.rs | 56 - vendor/schemars/tests/integration/macros.rs | 67 - vendor/schemars/tests/integration/main.rs | 96 - vendor/schemars/tests/integration/remote_derive.rs | 91 - vendor/schemars/tests/integration/same_name.rs | 44 - vendor/schemars/tests/integration/schema_name.rs | 82 - vendor/schemars/tests/integration/schema_with.rs | 46 - vendor/schemars/tests/integration/semver.rs | 32 - vendor/schemars/tests/integration/settings.rs | 143 - vendor/schemars/tests/integration/skip.rs | 41 - vendor/schemars/tests/integration/smallvec.rs | 10 - vendor/schemars/tests/integration/smol_str.rs | 11 - .../tests/integration/arrayvec.rs~arrayvec07.json | 10 - .../integration/bound.rs~manual_bound_set.json | 17 - .../tests/integration/bytes.rs~bytes.de.json | 14 - .../tests/integration/bytes.rs~bytes.ser.json | 11 - .../tests/integration/chrono.rs~chrono.json | 42 - .../contract.rs~adjacently_tagged_enum.de.json | 79 - .../contract.rs~adjacently_tagged_enum.ser.json | 78 - .../contract.rs~externally_tagged_enum.de.json | 54 - .../contract.rs~externally_tagged_enum.ser.json | 53 - .../contract.rs~internally_tagged_enum.de.json | 63 - .../contract.rs~internally_tagged_enum.ser.json | 62 - ...contract.rs~struct_allow_unknown_fields.de.json | 32 - ...ontract.rs~struct_allow_unknown_fields.ser.json | 34 - .../contract.rs~struct_deny_unknown_fields.de.json | 33 - ...contract.rs~struct_deny_unknown_fields.ser.json | 35 - .../integration/contract.rs~tuple_struct.de.json | 22 - .../integration/contract.rs~tuple_struct.ser.json | 22 - .../integration/contract.rs~untagged_enum.de.json | 35 - .../integration/contract.rs~untagged_enum.ser.json | 34 - .../integration/decimal.rs~decimal_types.de.json | 9 - .../integration/decimal.rs~decimal_types.ser.json | 6 - .../integration/default.rs~default_fields.de.json | 44 - .../integration/default.rs~default_fields.ser.json | 38 - .../integration/deprecated.rs~deprecated_enum.json | 45 - .../deprecated.rs~deprecated_struct.json | 20 - .../integration/docs.rs~doc_comments_enum.de.json | 43 - .../integration/docs.rs~doc_comments_enum.ser.json | 46 - .../integration/docs.rs~doc_comments_override.json | 27 - .../integration/docs.rs~doc_comments_struct.json | 37 - .../tests/integration/either.rs~either.json | 56 - .../tests/integration/enum_repr.rs~enum_repr.json | 13 - .../enums.rs~adjacently_tagged_enum.json | 193 - .../enums.rs~externally_tagged_enum.json | 148 - .../enums.rs~internally_tagged_enum.json | 109 - .../tests/integration/enums.rs~no_variants.json | 5 - .../tests/integration/enums.rs~renamed.json | 46 - .../enums.rs~unit_variants_with_doc_comments.json | 22 - .../tests/integration/enums.rs~untagged_enum.json | 84 - ...y_unknown_fields.rs~adjacently_tagged_enum.json | 139 - ...y_unknown_fields.rs~externally_tagged_enum.json | 112 - ...y_unknown_fields.rs~internally_tagged_enum.json | 109 - ...enums_deny_unknown_fields.rs~untagged_enum.json | 73 - .../enums_flattened.rs~enums_flattened.json | 150 - ...ned.rs~enums_flattened_deny_unknown_fields.json | 151 - ...nums_flattened_deny_unknown_fields_draft07.json | 161 - .../tests/integration/examples.rs~examples.de.json | 40 - .../integration/examples.rs~examples.ser.json | 41 - .../extend.rs~extend_adjacently_tagged_enum.json | 93 - .../extend.rs~extend_externally_tagged_enum.json | 73 - .../extend.rs~extend_internally_tagged_enum.json | 55 - .../tests/integration/extend.rs~extend_struct.json | 29 - .../integration/extend.rs~extend_tuple_struct.json | 28 - .../extend.rs~extend_untagged_enum.json | 46 - .../integration/flatten.rs~flattened_struct.json | 29 - .../integration/flatten.rs~flattened_value.json | 14 - .../integration/from_value.rs~custom_struct.json | 77 - .../from_value.rs~custom_struct_openapi3.json | 75 - .../integration/from_value.rs~json_value.json | 49 - .../tests/integration/garde.rs~garde_attrs.json | 70 - .../integration/garde.rs~garde_attrs_newtype.json | 8 - .../integration/garde.rs~garde_attrs_tuple.json | 18 - .../inline_subschemas.rs~struct_normal.json | 23 - .../inline_subschemas.rs~struct_recursive.de.json | 62 - .../inline_subschemas.rs~struct_recursive.ser.json | 70 - .../schemars/tests/integration/jiff.rs~jiff.json | 44 - .../remote_derive.rs~lifetime_param.json | 18 - .../tests/integration/remote_derive.rs~simple.json | 32 - .../integration/remote_derive.rs~type_param.json | 42 - .../tests/integration/same_name.rs~same_name.json | 56 - .../integration/schema_with.rs~schema_with.json | 14 - .../tests/integration/semver.rs~semver.json | 6 - .../tests/integration/settings.rs~draft07.de.json | 90 - .../tests/integration/settings.rs~draft07.ser.json | 92 - .../integration/settings.rs~draft2019_09.de.json | 90 - .../integration/settings.rs~draft2019_09.ser.json | 92 - .../integration/settings.rs~draft2020_12.de.json | 90 - .../integration/settings.rs~draft2020_12.ser.json | 92 - .../settings.rs~include_type_name.de.json | 105 - .../settings.rs~include_type_name.ser.json | 107 - .../tests/integration/settings.rs~openapi3.de.json | 92 - .../integration/settings.rs~openapi3.ser.json | 94 - .../integration/skip.rs~skip_enum_variants.json | 9 - .../integration/skip.rs~skip_struct_field.json | 14 - .../structs.rs~deny_unknown_fields.json | 18 - .../tests/integration/structs.rs~newtype.json | 5 - .../tests/integration/structs.rs~normal.json | 17 - .../integration/structs.rs~renamed_fields.json | 19 - .../tests/integration/structs.rs~tuple.json | 15 - .../tests/integration/structs.rs~unit.json | 5 - .../integration/transform.rs~transform_enum.json | 25 - .../integration/transform.rs~transform_struct.json | 20 - .../schemars/tests/integration/url.rs~url.json | 6 - .../schemars/tests/integration/uuid.rs~uuid.json | 6 - .../integration/validator.rs~validate_attrs.json | 69 - vendor/schemars/tests/integration/std_types.rs | 192 - vendor/schemars/tests/integration/structs.rs | 89 - vendor/schemars/tests/integration/test_helper.rs | 431 - vendor/schemars/tests/integration/transform.rs | 69 - vendor/schemars/tests/integration/transparent.rs | 27 - vendor/schemars/tests/integration/url.rs | 14 - vendor/schemars/tests/integration/uuid.rs | 12 - vendor/schemars/tests/integration/validator.rs | 135 - vendor/schemars/tests/ui.rs | 5 - vendor/schemars/tests/ui/example_fn.rs | 9 - vendor/schemars/tests/ui/example_fn.stderr | 7 - vendor/schemars/tests/ui/invalid_attrs.rs | 27 - vendor/schemars/tests/ui/invalid_attrs.stderr | 41 - vendor/schemars/tests/ui/invalid_extend.rs | 11 - vendor/schemars/tests/ui/invalid_extend.stderr | 35 - .../schemars/tests/ui/invalid_validation_attrs.rs | 42 - .../tests/ui/invalid_validation_attrs.stderr | 113 - vendor/schemars/tests/ui/repr_missing.rs | 8 - vendor/schemars/tests/ui/repr_missing.stderr | 7 - vendor/schemars/tests/ui/repr_non_unit_variant.rs | 10 - .../schemars/tests/ui/repr_non_unit_variant.stderr | 5 - vendor/schemars/tests/ui/schema_for_arg_value.rs | 5 - .../schemars/tests/ui/schema_for_arg_value.stderr | 7 - vendor/schemars/tests/ui/transform_str.rs | 7 - vendor/schemars/tests/ui/transform_str.stderr | 6 - vendor/scopeguard/.cargo-checksum.json | 1 - vendor/scopeguard/Cargo.lock | 7 - vendor/scopeguard/Cargo.toml | 43 - vendor/scopeguard/LICENSE-APACHE | 201 - vendor/scopeguard/LICENSE-MIT | 25 - vendor/scopeguard/README.md | 102 - vendor/scopeguard/examples/readme.rs | 29 - vendor/scopeguard/src/lib.rs | 595 - vendor/semver/.cargo-checksum.json | 1 - vendor/semver/Cargo.lock | 65 - vendor/semver/Cargo.toml | 78 - vendor/semver/LICENSE-APACHE | 176 - vendor/semver/LICENSE-MIT | 23 - vendor/semver/README.md | 84 - vendor/semver/benches/parse.rs | 24 - vendor/semver/build.rs | 87 - vendor/semver/src/backport.rs | 23 - vendor/semver/src/display.rs | 165 - vendor/semver/src/error.rs | 126 - vendor/semver/src/eval.rs | 181 - vendor/semver/src/identifier.rs | 426 - vendor/semver/src/impls.rs | 163 - vendor/semver/src/lib.rs | 580 - vendor/semver/src/parse.rs | 409 - vendor/semver/src/serde.rs | 109 - vendor/semver/tests/node/mod.rs | 43 - vendor/semver/tests/test_autotrait.rs | 14 - vendor/semver/tests/test_identifier.rs | 51 - vendor/semver/tests/test_version.rs | 250 - vendor/semver/tests/test_version_req.rs | 485 - vendor/semver/tests/util/mod.rs | 54 - vendor/serde_with/.cargo-checksum.json | 1 - vendor/serde_with/CHANGELOG.md | 1264 - vendor/serde_with/Cargo.lock | 1587 - vendor/serde_with/Cargo.toml | 460 - vendor/serde_with/LICENSE-APACHE | 201 - vendor/serde_with/LICENSE-MIT | 25 - vendor/serde_with/README.md | 213 - vendor/serde_with/src/base64.rs | 231 - vendor/serde_with/src/chrono_0_4.rs | 655 - vendor/serde_with/src/content/de.rs | 1931 - vendor/serde_with/src/content/mod.rs | 8 - vendor/serde_with/src/content/ser.rs | 620 - vendor/serde_with/src/de/duplicates.rs | 228 - vendor/serde_with/src/de/impls.rs | 2010 - vendor/serde_with/src/de/mod.rs | 160 - vendor/serde_with/src/de/skip_error.rs | 145 - .../src/duplicate_key_impls/error_on_duplicate.rs | 245 - .../src/duplicate_key_impls/first_value_wins.rs | 171 - .../src/duplicate_key_impls/last_value_wins.rs | 129 - vendor/serde_with/src/duplicate_key_impls/mod.rs | 9 - vendor/serde_with/src/enum_map.rs | 917 - vendor/serde_with/src/flatten_maybe.rs | 90 - vendor/serde_with/src/formats.rs | 160 - vendor/serde_with/src/guide.md | 86 - vendor/serde_with/src/guide/feature_flags.rs | 3 - vendor/serde_with/src/guide/serde_as.md | 332 - .../src/guide/serde_as_transformations.md | 637 - vendor/serde_with/src/hex.rs | 143 - vendor/serde_with/src/json.rs | 121 - vendor/serde_with/src/key_value_map.rs | 1293 - vendor/serde_with/src/lib.rs | 2603 -- vendor/serde_with/src/rust.rs | 710 - vendor/serde_with/src/schemars_0_8.rs | 1305 - vendor/serde_with/src/schemars_0_9.rs | 1326 - vendor/serde_with/src/ser/duplicates.rs | 74 - vendor/serde_with/src/ser/impls.rs | 1031 - vendor/serde_with/src/ser/mod.rs | 175 - vendor/serde_with/src/ser/skip_error.rs | 41 - vendor/serde_with/src/serde_conv.rs | 155 - vendor/serde_with/src/time_0_3.rs | 633 - vendor/serde_with/src/utils.rs | 242 - vendor/serde_with/src/utils/duration.rs | 592 - vendor/serde_with/src/with_prefix.rs | 604 - vendor/serde_with/src/with_suffix.rs | 615 - vendor/serde_with/tests/base64.rs | 140 - vendor/serde_with/tests/chrono_0_4.rs | 745 - .../tests/derives/deserialize_fromstr.rs | 96 - vendor/serde_with/tests/derives/lib.rs | 9 - .../serde_with/tests/derives/serialize_display.rs | 39 - vendor/serde_with/tests/hashbrown_0_14.rs | 388 - vendor/serde_with/tests/hashbrown_0_15.rs | 388 - vendor/serde_with/tests/hex.rs | 87 - vendor/serde_with/tests/indexmap_1.rs | 348 - vendor/serde_with/tests/indexmap_2.rs | 348 - vendor/serde_with/tests/json.rs | 56 - vendor/serde_with/tests/rust.rs | 491 - vendor/serde_with/tests/schemars_0_8.rs | 1088 - .../tests/schemars_0_8/schemars_basic.json | 45 - .../schemars_deserialize_only_bug_735.json | 65 - .../tests/schemars_0_8/snapshots/bytes.json | 18 - .../schemars_0_8/snapshots/default_on_null.json | 16 - .../tests/schemars_0_8/snapshots/duration.json | 70 - .../tests/schemars_0_8/snapshots/enum_map.json | 48 - .../tests/schemars_0_8/snapshots/from_into.json | 15 - .../schemars_0_8/snapshots/key_value_map.json | 44 - .../schemars_0_8/snapshots/key_value_map_enum.json | 57 - .../snapshots/key_value_map_flatten.json | 66 - .../tests/schemars_0_8/snapshots/map.json | 18 - .../tests/schemars_0_8/snapshots/map_fixed.json | 18 - .../schemars_0_8/snapshots/one_or_many_nested.json | 33 - .../snapshots/one_or_many_prefer_one.json | 17 - .../tests/schemars_0_8/snapshots/pickfirst.json | 19 - .../schemars_0_8/snapshots/pickfirst_nested.json | 34 - .../snapshots/set_last_value_wins.json | 18 - .../snapshots/set_prevent_duplicates.json | 19 - .../snapshots/string_with_separator.json | 13 - .../tests/schemars_0_8/test_std/map.json | 17 - .../tests/schemars_0_8/test_std/option.json | 14 - .../tests/schemars_0_8/test_std/set.json | 17 - .../tests/schemars_0_8/test_std/tuples.json | 60 - .../tests/schemars_0_8/test_std/vec.json | 16 - .../tests/schemars_0_8/test_std/vec_deque.json | 16 - vendor/serde_with/tests/schemars_0_9/main.rs | 1076 - .../tests/schemars_0_9/schemars_basic.json | 45 - .../schemars_deserialize_only_bug_735.json | 61 - .../tests/schemars_0_9/snapshots/bytes.json | 19 - .../schemars_0_9/snapshots/default_on_null.json | 16 - .../tests/schemars_0_9/snapshots/duration.json | 70 - .../tests/schemars_0_9/snapshots/enum_map.json | 48 - .../tests/schemars_0_9/snapshots/from_into.json | 15 - .../schemars_0_9/snapshots/key_value_map.json | 44 - .../schemars_0_9/snapshots/key_value_map_enum.json | 57 - .../snapshots/key_value_map_flatten.json | 66 - .../tests/schemars_0_9/snapshots/map.json | 18 - .../tests/schemars_0_9/snapshots/map_fixed.json | 18 - .../schemars_0_9/snapshots/one_or_many_nested.json | 33 - .../snapshots/one_or_many_prefer_one.json | 17 - .../tests/schemars_0_9/snapshots/pickfirst.json | 19 - .../schemars_0_9/snapshots/pickfirst_nested.json | 34 - .../snapshots/set_last_value_wins.json | 18 - .../snapshots/set_prevent_duplicates.json | 19 - .../snapshots/string_with_separator.json | 13 - .../tests/schemars_0_9/test_std/map.json | 17 - .../tests/schemars_0_9/test_std/option.json | 14 - .../tests/schemars_0_9/test_std/set.json | 17 - .../tests/schemars_0_9/test_std/tuples.json | 60 - .../tests/schemars_0_9/test_std/vec.json | 16 - .../tests/schemars_0_9/test_std/vec_deque.json | 16 - vendor/serde_with/tests/schemars_0_9/utils.rs | 144 - vendor/serde_with/tests/serde_as/collections.rs | 44 - vendor/serde_with/tests/serde_as/default_on.rs | 130 - vendor/serde_with/tests/serde_as/enum_map.rs | 458 - vendor/serde_with/tests/serde_as/frominto.rs | 186 - vendor/serde_with/tests/serde_as/fromintoref.rs | 186 - vendor/serde_with/tests/serde_as/key_value_map.rs | 350 - vendor/serde_with/tests/serde_as/lib.rs | 1461 - vendor/serde_with/tests/serde_as/map_tuple_list.rs | 689 - vendor/serde_with/tests/serde_as/pickfirst.rs | 146 - vendor/serde_with/tests/serde_as/serde_as_macro.rs | 307 - vendor/serde_with/tests/serde_as/serde_conv.rs | 52 - vendor/serde_with/tests/serde_as/time.rs | 521 - vendor/serde_with/tests/time_0_3.rs | 273 - vendor/serde_with/tests/utils.rs | 135 - vendor/serde_with/tests/version_numbers.rs | 74 - vendor/serde_with/tests/with_prefix.rs | 157 - vendor/serde_with/tests/with_suffix.rs | 157 - vendor/serde_with_macros/.cargo-checksum.json | 1 - vendor/serde_with_macros/CHANGELOG.md | 386 - vendor/serde_with_macros/Cargo.lock | 800 - vendor/serde_with_macros/Cargo.toml | 174 - vendor/serde_with_macros/LICENSE-APACHE | 201 - vendor/serde_with_macros/LICENSE-MIT | 25 - vendor/serde_with_macros/README.md | 213 - vendor/serde_with_macros/src/apply.rs | 312 - vendor/serde_with_macros/src/lazy_bool.rs | 139 - vendor/serde_with_macros/src/lib.rs | 1452 - vendor/serde_with_macros/src/utils.rs | 261 - vendor/serde_with_macros/tests/apply.rs | 249 - .../serde_with_macros/tests/compiler-messages.rs | 11 - .../serde_with_macros/tests/serde_as_issue_267.rs | 11 - .../serde_with_macros/tests/serde_as_issue_538.rs | 30 - .../tests/skip_serializing_null.rs | 157 - vendor/serde_with_macros/tests/version_numbers.rs | 19 - vendor/sha3/.cargo-checksum.json | 1 - vendor/sha3/CHANGELOG.md | 118 - vendor/sha3/Cargo.toml | 56 - vendor/sha3/LICENSE-APACHE | 201 - vendor/sha3/LICENSE-MIT | 28 - vendor/sha3/README.md | 56 - vendor/sha3/benches/mod.rs | 54 - vendor/sha3/src/lib.rs | 217 - vendor/sha3/src/macros.rs | 529 - vendor/sha3/src/state.rs | 51 - vendor/sha3/tests/aliases.rs | 19 - vendor/sha3/tests/cshake.rs | 145 - vendor/sha3/tests/data/cshake128.blb | Bin 165220 -> 0 bytes vendor/sha3/tests/data/cshake256.blb | Bin 165286 -> 0 bytes vendor/sha3/tests/data/keccak_224.blb | Bin 31 -> 0 bytes vendor/sha3/tests/data/keccak_256.blb | Bin 169 -> 0 bytes vendor/sha3/tests/data/keccak_256_full.blb | Bin 3403 -> 0 bytes vendor/sha3/tests/data/keccak_384.blb | Bin 51 -> 0 bytes vendor/sha3/tests/data/keccak_512.blb | Bin 68 -> 0 bytes vendor/sha3/tests/data/sha3_224.blb | Bin 40513 -> 0 bytes vendor/sha3/tests/data/sha3_256.blb | Bin 41537 -> 0 bytes vendor/sha3/tests/data/sha3_384.blb | Bin 45583 -> 0 bytes vendor/sha3/tests/data/sha3_512.blb | Bin 49918 -> 0 bytes vendor/sha3/tests/data/shake128.blb | Bin 164673 -> 0 bytes vendor/sha3/tests/data/shake256.blb | Bin 164673 -> 0 bytes vendor/sha3/tests/data/turboshake128.blb | Bin 603 -> 0 bytes vendor/sha3/tests/data/turboshake256.blb | Bin 964 -> 0 bytes vendor/sha3/tests/mod.rs | 24 - vendor/sha3/tests/turboshake.rs | 108 - vendor/siphasher/.cargo-checksum.json | 1 - vendor/siphasher/COPYING | 7 - vendor/siphasher/Cargo.toml | 54 - vendor/siphasher/README.md | 93 - vendor/siphasher/src/lib.rs | 30 - vendor/siphasher/src/sip.rs | 594 - vendor/siphasher/src/sip128.rs | 696 - vendor/siphasher/src/tests.rs | 332 - vendor/siphasher/src/tests128.rs | 134 - vendor/smol_str/.cargo-checksum.json | 1 - vendor/smol_str/CHANGELOG.md | 24 - vendor/smol_str/Cargo.toml | 78 - vendor/smol_str/LICENSE-APACHE | 201 - vendor/smol_str/LICENSE-MIT | 23 - vendor/smol_str/README.md | 29 - vendor/smol_str/bors.toml | 2 - vendor/smol_str/src/borsh.rs | 42 - vendor/smol_str/src/lib.rs | 826 - vendor/smol_str/src/serde.rs | 96 - vendor/smol_str/tests/test.rs | 444 - vendor/smol_str/tests/tidy.rs | 47 - vendor/stacker/.cargo-checksum.json | 1 - vendor/stacker/Cargo.lock | 123 - vendor/stacker/Cargo.toml | 69 - vendor/stacker/LICENSE-APACHE | 201 - vendor/stacker/LICENSE-MIT | 25 - vendor/stacker/README.md | 44 - vendor/stacker/build.rs | 13 - vendor/stacker/src/alloc_stack_restore_guard.rs | 47 - vendor/stacker/src/arch/asm.h | 5 - vendor/stacker/src/arch/windows.c | 5 - vendor/stacker/src/backends/fallback.rs | 4 - vendor/stacker/src/backends/macos.rs | 6 - vendor/stacker/src/backends/mod.rs | 28 - vendor/stacker/src/backends/openbsd.rs | 9 - vendor/stacker/src/backends/unix.rs | 40 - vendor/stacker/src/backends/windows.rs | 142 - vendor/stacker/src/lib.rs | 181 - vendor/stacker/src/mmap_stack_restore_guard.rs | 105 - vendor/stacker/tests/simple.rs | 28 - vendor/stacker/tests/smoke.rs | 95 - vendor/string_cache/.cargo-checksum.json | 1 - vendor/string_cache/Cargo.lock | 245 - vendor/string_cache/Cargo.toml | 66 - vendor/string_cache/LICENSE-APACHE | 201 - vendor/string_cache/LICENSE-MIT | 25 - vendor/string_cache/README.md | 78 - vendor/string_cache/examples/simple.rs | 26 - vendor/string_cache/src/atom.rs | 415 - vendor/string_cache/src/dynamic_set.rs | 112 - vendor/string_cache/src/lib.rs | 139 - vendor/string_cache/src/static_sets.rs | 64 - vendor/string_cache/src/trivial_impls.rs | 119 - vendor/string_cache/tests/small-stack.rs | 17 - vendor/term/.cargo-checksum.json | 1 - vendor/term/Cargo.lock | 159 - vendor/term/Cargo.toml | 59 - vendor/term/LICENSE-APACHE | 201 - vendor/term/LICENSE-MIT | 25 - vendor/term/README.md | 33 - vendor/term/src/lib.rs | 354 - vendor/term/src/terminfo/mod.rs | 399 - vendor/term/src/terminfo/parm.rs | 746 - vendor/term/src/terminfo/parser/compiled.rs | 204 - vendor/term/src/terminfo/parser/names.rs | 553 - vendor/term/src/terminfo/searcher.rs | 94 - vendor/term/src/win.rs | 426 - vendor/term/tests/data/dumb | Bin 308 -> 0 bytes vendor/term/tests/data/linux | Bin 1780 -> 0 bytes vendor/term/tests/data/linux-16color | Bin 1858 -> 0 bytes vendor/term/tests/data/linux-basic | Bin 1664 -> 0 bytes vendor/term/tests/data/linux-c | Bin 2120 -> 0 bytes vendor/term/tests/data/linux-c-nc | Bin 1766 -> 0 bytes vendor/term/tests/data/linux-koi8 | Bin 1808 -> 0 bytes vendor/term/tests/data/linux-koi8r | Bin 1814 -> 0 bytes vendor/term/tests/data/linux-lat | Bin 1822 -> 0 bytes vendor/term/tests/data/linux-m | Bin 1770 -> 0 bytes vendor/term/tests/data/linux-nic | Bin 1810 -> 0 bytes vendor/term/tests/data/linux-vt | Bin 1702 -> 0 bytes vendor/term/tests/data/linux2.2 | Bin 1788 -> 0 bytes vendor/term/tests/data/linux2.6 | Bin 1785 -> 0 bytes vendor/term/tests/data/linux2.6.26 | Bin 1789 -> 0 bytes vendor/term/tests/data/linux3.0 | Bin 1788 -> 0 bytes vendor/term/tests/data/rxvt | Bin 2285 -> 0 bytes vendor/term/tests/data/rxvt-16color | Bin 2497 -> 0 bytes vendor/term/tests/data/rxvt-256color | Bin 2427 -> 0 bytes vendor/term/tests/data/rxvt-88color | Bin 2425 -> 0 bytes vendor/term/tests/data/rxvt-basic | Bin 2145 -> 0 bytes vendor/term/tests/data/rxvt-color | Bin 2229 -> 0 bytes vendor/term/tests/data/rxvt-cygwin | Bin 2251 -> 0 bytes vendor/term/tests/data/rxvt-cygwin-native | Bin 2269 -> 0 bytes vendor/term/tests/data/rxvt-xpm | Bin 2227 -> 0 bytes vendor/term/tests/data/screen | Bin 1587 -> 0 bytes vendor/term/tests/data/screen-256color | Bin 1912 -> 0 bytes vendor/term/tests/data/vt100 | Bin 1190 -> 0 bytes vendor/term/tests/data/xterm | Bin 3412 -> 0 bytes vendor/term/tests/data/xterm-256color | Bin 3713 -> 0 bytes vendor/term/tests/terminfo.rs | 29 - vendor/thiserror-impl/.cargo-checksum.json | 1 - vendor/thiserror-impl/Cargo.lock | 47 - vendor/thiserror-impl/Cargo.toml | 51 - vendor/thiserror-impl/LICENSE-APACHE | 176 - vendor/thiserror-impl/LICENSE-MIT | 23 - vendor/thiserror-impl/src/ast.rs | 185 - vendor/thiserror-impl/src/attr.rs | 358 - vendor/thiserror-impl/src/expand.rs | 583 - vendor/thiserror-impl/src/fallback.rs | 32 - vendor/thiserror-impl/src/fmt.rs | 322 - vendor/thiserror-impl/src/generics.rs | 83 - vendor/thiserror-impl/src/lib.rs | 39 - vendor/thiserror-impl/src/prop.rs | 148 - vendor/thiserror-impl/src/scan_expr.rs | 264 - vendor/thiserror-impl/src/unraw.rs | 142 - vendor/thiserror-impl/src/valid.rs | 248 - vendor/thiserror/.cargo-checksum.json | 1 - vendor/thiserror/Cargo.lock | 341 - vendor/thiserror/Cargo.toml | 115 - vendor/thiserror/LICENSE-APACHE | 176 - vendor/thiserror/LICENSE-MIT | 23 - vendor/thiserror/README.md | 238 - vendor/thiserror/build.rs | 174 - vendor/thiserror/build/probe.rs | 33 - vendor/thiserror/rust-toolchain.toml | 2 - vendor/thiserror/src/aserror.rs | 50 - vendor/thiserror/src/display.rs | 81 - vendor/thiserror/src/lib.rs | 303 - vendor/thiserror/src/provide.rs | 20 - vendor/thiserror/src/var.rs | 9 - vendor/thiserror/tests/compiletest.rs | 7 - vendor/thiserror/tests/test_backtrace.rs | 289 - vendor/thiserror/tests/test_display.rs | 478 - vendor/thiserror/tests/test_error.rs | 56 - vendor/thiserror/tests/test_expr.rs | 118 - vendor/thiserror/tests/test_from.rs | 64 - vendor/thiserror/tests/test_generics.rs | 205 - vendor/thiserror/tests/test_lints.rs | 96 - vendor/thiserror/tests/test_option.rs | 109 - vendor/thiserror/tests/test_path.rs | 54 - vendor/thiserror/tests/test_source.rs | 82 - vendor/thiserror/tests/test_transparent.rs | 96 - vendor/thiserror/tests/ui/bad-field-attr.rs | 7 - vendor/thiserror/tests/ui/bad-field-attr.stderr | 5 - vendor/thiserror/tests/ui/concat-display.rs | 15 - vendor/thiserror/tests/ui/concat-display.stderr | 10 - vendor/thiserror/tests/ui/display-underscore.rs | 7 - .../thiserror/tests/ui/display-underscore.stderr | 7 - vendor/thiserror/tests/ui/duplicate-enum-source.rs | 13 - .../tests/ui/duplicate-enum-source.stderr | 5 - vendor/thiserror/tests/ui/duplicate-fmt.rs | 23 - vendor/thiserror/tests/ui/duplicate-fmt.stderr | 23 - .../thiserror/tests/ui/duplicate-struct-source.rs | 11 - .../tests/ui/duplicate-struct-source.stderr | 5 - vendor/thiserror/tests/ui/duplicate-transparent.rs | 8 - .../tests/ui/duplicate-transparent.stderr | 5 - vendor/thiserror/tests/ui/expression-fallback.rs | 7 - .../thiserror/tests/ui/expression-fallback.stderr | 19 - .../tests/ui/fallback-impl-with-display.rs | 14 - .../tests/ui/fallback-impl-with-display.stderr | 16 - .../thiserror/tests/ui/from-backtrace-backtrace.rs | 15 - .../tests/ui/from-backtrace-backtrace.stderr | 5 - vendor/thiserror/tests/ui/from-not-source.rs | 11 - vendor/thiserror/tests/ui/from-not-source.stderr | 5 - .../tests/ui/invalid-input-impl-anyway.rs | 11 - .../tests/ui/invalid-input-impl-anyway.stderr | 5 - vendor/thiserror/tests/ui/lifetime.rs | 24 - vendor/thiserror/tests/ui/lifetime.stderr | 11 - vendor/thiserror/tests/ui/missing-display.rs | 9 - vendor/thiserror/tests/ui/missing-display.stderr | 16 - vendor/thiserror/tests/ui/missing-fmt.rs | 10 - vendor/thiserror/tests/ui/missing-fmt.stderr | 5 - vendor/thiserror/tests/ui/no-display.rs | 18 - vendor/thiserror/tests/ui/no-display.stderr | 46 - .../tests/ui/numbered-positional-tuple.rs | 7 - .../tests/ui/numbered-positional-tuple.stderr | 5 - vendor/thiserror/tests/ui/raw-identifier.rs | 12 - vendor/thiserror/tests/ui/raw-identifier.stderr | 21 - vendor/thiserror/tests/ui/same-from-type.rs | 11 - vendor/thiserror/tests/ui/same-from-type.stderr | 8 - vendor/thiserror/tests/ui/source-enum-not-error.rs | 12 - .../tests/ui/source-enum-not-error.stderr | 22 - .../ui/source-enum-unnamed-field-not-error.rs | 12 - .../ui/source-enum-unnamed-field-not-error.stderr | 22 - .../thiserror/tests/ui/source-struct-not-error.rs | 12 - .../tests/ui/source-struct-not-error.stderr | 20 - .../ui/source-struct-unnamed-field-not-error.rs | 10 - .../source-struct-unnamed-field-not-error.stderr | 20 - vendor/thiserror/tests/ui/struct-with-fmt.rs | 7 - vendor/thiserror/tests/ui/struct-with-fmt.stderr | 5 - vendor/thiserror/tests/ui/transparent-display.rs | 8 - .../thiserror/tests/ui/transparent-display.stderr | 5 - vendor/thiserror/tests/ui/transparent-enum-many.rs | 9 - .../tests/ui/transparent-enum-many.stderr | 6 - .../tests/ui/transparent-enum-not-error.rs | 9 - .../tests/ui/transparent-enum-not-error.stderr | 20 - .../thiserror/tests/ui/transparent-enum-source.rs | 9 - .../tests/ui/transparent-enum-source.stderr | 5 - .../ui/transparent-enum-unnamed-field-not-error.rs | 9 - ...transparent-enum-unnamed-field-not-error.stderr | 20 - .../thiserror/tests/ui/transparent-struct-many.rs | 10 - .../tests/ui/transparent-struct-many.stderr | 5 - .../tests/ui/transparent-struct-not-error.rs | 9 - .../tests/ui/transparent-struct-not-error.stderr | 18 - .../tests/ui/transparent-struct-source.rs | 7 - .../tests/ui/transparent-struct-source.stderr | 5 - .../transparent-struct-unnamed-field-not-error.rs | 7 - ...ansparent-struct-unnamed-field-not-error.stderr | 18 - .../thiserror/tests/ui/unconditional-recursion.rs | 9 - .../tests/ui/unconditional-recursion.stderr | 21 - vendor/thiserror/tests/ui/unexpected-field-fmt.rs | 11 - .../thiserror/tests/ui/unexpected-field-fmt.stderr | 5 - .../thiserror/tests/ui/unexpected-struct-source.rs | 7 - .../tests/ui/unexpected-struct-source.stderr | 5 - vendor/thiserror/tests/ui/union.rs | 9 - vendor/thiserror/tests/ui/union.stderr | 8 - vendor/time-core/.cargo-checksum.json | 1 - vendor/time-core/Cargo.lock | 7 - vendor/time-core/Cargo.toml | 151 - vendor/time-core/LICENSE-Apache | 177 - vendor/time-core/LICENSE-MIT | 19 - vendor/time-core/src/convert.rs | 104 - vendor/time-core/src/hint.rs | 26 - vendor/time-core/src/lib.rs | 12 - vendor/time-core/src/util.rs | 88 - vendor/time-macros/.cargo-checksum.json | 1 - vendor/time-macros/Cargo.lock | 23 - vendor/time-macros/Cargo.toml | 166 - vendor/time-macros/LICENSE-Apache | 177 - vendor/time-macros/LICENSE-MIT | 19 - vendor/time-macros/src/date.rs | 139 - vendor/time-macros/src/datetime.rs | 57 - vendor/time-macros/src/error.rs | 123 - vendor/time-macros/src/format_description/ast.rs | 252 - .../src/format_description/format_item.rs | 446 - vendor/time-macros/src/format_description/lexer.rs | 245 - vendor/time-macros/src/format_description/mod.rs | 166 - .../src/format_description/public/component.rs | 50 - .../src/format_description/public/mod.rs | 53 - .../src/format_description/public/modifier.rs | 260 - vendor/time-macros/src/helpers/mod.rs | 131 - vendor/time-macros/src/helpers/string.rs | 188 - vendor/time-macros/src/lib.rs | 268 - vendor/time-macros/src/offset.rs | 99 - vendor/time-macros/src/quote.rs | 152 - vendor/time-macros/src/serde_format_description.rs | 179 - vendor/time-macros/src/time.rs | 121 - vendor/time-macros/src/to_tokens.rs | 79 - vendor/time-macros/src/utc_datetime.rs | 39 - vendor/time/.cargo-checksum.json | 1 - vendor/time/Cargo.lock | 926 - vendor/time/Cargo.toml | 298 - vendor/time/LICENSE-Apache | 177 - vendor/time/LICENSE-MIT | 19 - vendor/time/README.md | 51 - vendor/time/src/date.rs | 1490 - vendor/time/src/duration.rs | 1598 - vendor/time/src/error/component_range.rs | 114 - vendor/time/src/error/conversion_range.rs | 36 - vendor/time/src/error/different_variant.rs | 34 - vendor/time/src/error/format.rs | 113 - vendor/time/src/error/indeterminate_offset.rs | 35 - .../time/src/error/invalid_format_description.rs | 132 - vendor/time/src/error/invalid_variant.rs | 34 - vendor/time/src/error/mod.rs | 131 - vendor/time/src/error/parse.rs | 109 - vendor/time/src/error/parse_from_description.rs | 53 - vendor/time/src/error/try_from_parsed.rs | 71 - vendor/time/src/ext/digit_count.rs | 26 - vendor/time/src/ext/instant.rs | 98 - vendor/time/src/ext/mod.rs | 13 - vendor/time/src/ext/numerical_duration.rs | 140 - vendor/time/src/ext/numerical_std_duration.rs | 192 - .../src/format_description/borrowed_format_item.rs | 106 - vendor/time/src/format_description/component.rs | 44 - vendor/time/src/format_description/mod.rs | 41 - vendor/time/src/format_description/modifier.rs | 434 - .../src/format_description/owned_format_item.rs | 158 - vendor/time/src/format_description/parse/ast.rs | 384 - .../src/format_description/parse/format_item.rs | 549 - vendor/time/src/format_description/parse/lexer.rs | 284 - vendor/time/src/format_description/parse/mod.rs | 262 - .../time/src/format_description/parse/strftime.rs | 487 - .../src/format_description/well_known/iso8601.rs | 257 - .../well_known/iso8601/adt_hack.rs | 247 - .../src/format_description/well_known/rfc2822.rs | 30 - .../src/format_description/well_known/rfc3339.rs | 30 - vendor/time/src/formatting/formattable.rs | 312 - vendor/time/src/formatting/iso8601.rs | 142 - vendor/time/src/formatting/mod.rs | 517 - vendor/time/src/hint.rs | 26 - vendor/time/src/instant.rs | 287 - vendor/time/src/internal_macros.rs | 209 - .../time/src/interop/js_sys_date_offsetdatetime.rs | 27 - vendor/time/src/interop/js_sys_date_utcdatetime.rs | 26 - vendor/time/src/interop/mod.rs | 28 - .../time/src/interop/offsetdatetime_systemtime.rs | 75 - .../time/src/interop/offsetdatetime_utcdatetime.rs | 68 - vendor/time/src/interop/utcdatetime_systemtime.rs | 75 - vendor/time/src/lib.rs | 153 - vendor/time/src/macros.rs | 149 - vendor/time/src/month.rs | 273 - vendor/time/src/offset_date_time.rs | 1511 - vendor/time/src/parsing/combinator/mod.rs | 194 - vendor/time/src/parsing/combinator/rfc/iso8601.rs | 177 - vendor/time/src/parsing/combinator/rfc/mod.rs | 10 - vendor/time/src/parsing/combinator/rfc/rfc2234.rs | 13 - vendor/time/src/parsing/combinator/rfc/rfc2822.rs | 108 - vendor/time/src/parsing/component.rs | 379 - vendor/time/src/parsing/iso8601.rs | 332 - vendor/time/src/parsing/mod.rs | 57 - vendor/time/src/parsing/parsable.rs | 800 - vendor/time/src/parsing/parsed.rs | 1118 - vendor/time/src/parsing/shim.rs | 50 - vendor/time/src/primitive_date_time.rs | 1050 - vendor/time/src/quickcheck.rs | 230 - vendor/time/src/rand.rs | 90 - vendor/time/src/serde/iso8601.rs | 76 - vendor/time/src/serde/mod.rs | 535 - vendor/time/src/serde/rfc2822.rs | 71 - vendor/time/src/serde/rfc3339.rs | 71 - vendor/time/src/serde/timestamp/microseconds.rs | 63 - vendor/time/src/serde/timestamp/milliseconds.rs | 63 - .../time/src/serde/timestamp/milliseconds_i64.rs | 66 - vendor/time/src/serde/timestamp/mod.rs | 65 - vendor/time/src/serde/timestamp/nanoseconds.rs | 61 - vendor/time/src/serde/visitor.rs | 355 - vendor/time/src/sys/local_offset_at/imp.rs | 8 - vendor/time/src/sys/local_offset_at/mod.rs | 23 - vendor/time/src/sys/local_offset_at/unix.rs | 101 - vendor/time/src/sys/local_offset_at/wasm_js.rs | 16 - vendor/time/src/sys/local_offset_at/windows.rs | 113 - vendor/time/src/sys/mod.rs | 11 - vendor/time/src/sys/refresh_tz/imp.rs | 9 - vendor/time/src/sys/refresh_tz/mod.rs | 17 - vendor/time/src/sys/refresh_tz/unix.rs | 48 - vendor/time/src/tests.rs | 104 - vendor/time/src/time.rs | 937 - vendor/time/src/utc_date_time.rs | 1223 - vendor/time/src/utc_offset.rs | 464 - vendor/time/src/util.rs | 105 - vendor/time/src/weekday.rs | 220 - vendor/tinyvec/.cargo-checksum.json | 1 - vendor/tinyvec/CHANGELOG.md | 104 - vendor/tinyvec/Cargo.lock | 647 - vendor/tinyvec/Cargo.toml | 158 - vendor/tinyvec/LICENSE-APACHE.md | 202 - vendor/tinyvec/LICENSE-MIT.md | 5 - vendor/tinyvec/LICENSE-ZLIB.md | 11 - vendor/tinyvec/README.md | 34 - vendor/tinyvec/benches/macros.rs | 52 - vendor/tinyvec/benches/smallvec.rs | 503 - vendor/tinyvec/debug_metadata/README.md | 111 - vendor/tinyvec/debug_metadata/tinyvec.natvis | 24 - vendor/tinyvec/rustfmt.toml | 14 - vendor/tinyvec/src/array.rs | 54 - vendor/tinyvec/src/array/const_generic_impl.rs | 23 - vendor/tinyvec/src/array/generated_impl.rs | 9616 ----- vendor/tinyvec/src/array/generic_array_impl.rs | 26 - vendor/tinyvec/src/arrayvec.rs | 2079 - vendor/tinyvec/src/arrayvec_drain.rs | 99 - vendor/tinyvec/src/lib.rs | 112 - vendor/tinyvec/src/slicevec.rs | 1083 - vendor/tinyvec/src/tinyvec.rs | 1910 - vendor/tinyvec/tests/arrayvec.rs | 500 - vendor/tinyvec/tests/debugger_visualizer.rs | 91 - vendor/tinyvec/tests/tinyvec.rs | 501 - vendor/tinyvec_macros/.cargo-checksum.json | 1 - vendor/tinyvec_macros/Cargo.toml | 19 - vendor/tinyvec_macros/LICENSE-APACHE.md | 202 - vendor/tinyvec_macros/LICENSE-MIT.md | 21 - vendor/tinyvec_macros/LICENSE-ZLIB.md | 20 - vendor/tinyvec_macros/src/lib.rs | 25 - vendor/typed-arena/.cargo-checksum.json | 1 - vendor/typed-arena/CHANGELOG.md | 143 - vendor/typed-arena/Cargo.toml | 44 - vendor/typed-arena/LICENSE | 21 - vendor/typed-arena/README.md | 71 - vendor/typed-arena/benches/benches.rs | 36 - vendor/typed-arena/src/lib.rs | 635 - vendor/typed-arena/src/test.rs | 385 - vendor/typenum/.cargo-checksum.json | 1 - vendor/typenum/CHANGELOG.md | 125 - vendor/typenum/Cargo.lock | 214 - vendor/typenum/Cargo.toml | 73 - vendor/typenum/LICENSE | 1 - vendor/typenum/LICENSE-APACHE | 201 - vendor/typenum/LICENSE-MIT | 21 - vendor/typenum/README.md | 67 - vendor/typenum/build.rs | 417 - vendor/typenum/clippy.toml | 1 - vendor/typenum/flake.lock | 95 - vendor/typenum/flake.nix | 42 - vendor/typenum/justfile | 34 - vendor/typenum/src/array.rs | 396 - vendor/typenum/src/bit.rs | 347 - vendor/typenum/src/gen.rs | 4 - vendor/typenum/src/gen/consts.rs | 5899 --- vendor/typenum/src/gen/generic_const_mappings.rs | 4478 --- vendor/typenum/src/gen/op.rs | 1030 - vendor/typenum/src/int.rs | 1401 - vendor/typenum/src/lib.rs | 175 - vendor/typenum/src/marker_traits.rs | 189 - vendor/typenum/src/operator_aliases.rs | 115 - vendor/typenum/src/private.rs | 592 - vendor/typenum/src/type_operators.rs | 626 - vendor/typenum/src/uint.rs | 2670 -- vendor/typenum/tests/test.rs | 2 - vendor/unicode-normalization/.cargo-checksum.json | 1 - vendor/unicode-normalization/COPYRIGHT | 7 - vendor/unicode-normalization/Cargo.toml | 66 - vendor/unicode-normalization/LICENSE-APACHE | 201 - vendor/unicode-normalization/LICENSE-MIT | 25 - vendor/unicode-normalization/README.md | 39 - vendor/unicode-normalization/benches/bench.rs | 127 - vendor/unicode-normalization/scripts/unicode.py | 617 - vendor/unicode-normalization/src/__test_api.rs | 18 - vendor/unicode-normalization/src/decompose.rs | 173 - vendor/unicode-normalization/src/lib.rs | 227 - vendor/unicode-normalization/src/lookups.rs | 138 - vendor/unicode-normalization/src/normalize.rs | 224 - vendor/unicode-normalization/src/perfect_hash.rs | 50 - vendor/unicode-normalization/src/quick_check.rs | 190 - vendor/unicode-normalization/src/recompose.rs | 169 - vendor/unicode-normalization/src/replace.rs | 66 - vendor/unicode-normalization/src/stream_safe.rs | 174 - vendor/unicode-normalization/src/tables.rs | 22803 ----------- vendor/unicode-normalization/src/test.rs | 130 - vendor/unicode-script/.cargo-checksum.json | 1 - vendor/unicode-script/Cargo.toml | 67 - vendor/unicode-script/LICENSE-APACHE | 201 - vendor/unicode-script/LICENSE-MIT | 27 - vendor/unicode-script/README.md | 7 - vendor/unicode-script/scripts/unicode.py | 402 - vendor/unicode-script/src/lib.rs | 560 - vendor/unicode-script/src/tables.rs | 3497 -- vendor/unicode-security/.cargo-checksum.json | 1 - vendor/unicode-security/COPYRIGHT | 7 - vendor/unicode-security/Cargo.toml | 77 - vendor/unicode-security/LICENSE-APACHE | 201 - vendor/unicode-security/LICENSE-MIT | 25 - vendor/unicode-security/README.md | 7 - vendor/unicode-security/scripts/unicode.py | 694 - .../unicode-security/src/confusable_detection.rs | 39 - .../src/general_security_profile.rs | 26 - vendor/unicode-security/src/lib.rs | 76 - vendor/unicode-security/src/mixed_script.rs | 209 - vendor/unicode-security/src/restriction_level.rs | 75 - vendor/unicode-security/src/tables.rs | 4432 --- vendor/unicode-security/src/tests.rs | 153 - vendor/unicode-width/.cargo-checksum.json | 1 - vendor/unicode-width/COPYRIGHT | 7 - vendor/unicode-width/Cargo.toml | 80 - vendor/unicode-width/LICENSE-APACHE | 201 - vendor/unicode-width/LICENSE-MIT | 25 - vendor/unicode-width/README.md | 57 - vendor/unicode-width/benches/benches.rs | 114 - vendor/unicode-width/scripts/unicode.py | 2156 - vendor/unicode-width/src/lib.rs | 258 - vendor/unicode-width/src/tables.rs | 21762 ---------- vendor/unicode-width/tests/emoji-test.txt | 5325 --- vendor/unicode-width/tests/tests.rs | 631 - vendor/unicode-xid/.cargo-checksum.json | 1 - vendor/unicode-xid/COPYRIGHT | 7 - vendor/unicode-xid/Cargo.toml | 65 - vendor/unicode-xid/LICENSE-APACHE | 201 - vendor/unicode-xid/LICENSE-MIT | 25 - vendor/unicode-xid/README.md | 61 - vendor/unicode-xid/benches/xid.rs | 60 - vendor/unicode-xid/src/lib.rs | 90 - vendor/unicode-xid/src/tables.rs | 1537 - vendor/unicode-xid/src/tests.rs | 95 - vendor/unicode-xid/tests/exhaustive_tests.rs | 25 - vendor/version_check/.cargo-checksum.json | 1 - vendor/version_check/Cargo.toml | 38 - vendor/version_check/LICENSE-APACHE | 201 - vendor/version_check/LICENSE-MIT | 19 - vendor/version_check/README.md | 80 - vendor/version_check/src/channel.rs | 195 - vendor/version_check/src/date.rs | 203 - vendor/version_check/src/lib.rs | 528 - vendor/version_check/src/version.rs | 316 - vendor/walkdir/.cargo-checksum.json | 1 - vendor/walkdir/COPYING | 3 - vendor/walkdir/Cargo.toml | 49 - vendor/walkdir/LICENSE-MIT | 21 - vendor/walkdir/README.md | 139 - vendor/walkdir/UNLICENSE | 24 - vendor/walkdir/compare/nftw.c | 25 - vendor/walkdir/compare/walk.py | 10 - vendor/walkdir/rustfmt.toml | 2 - vendor/walkdir/src/dent.rs | 352 - vendor/walkdir/src/error.rs | 262 - vendor/walkdir/src/lib.rs | 1194 - vendor/walkdir/src/tests/mod.rs | 4 - vendor/walkdir/src/tests/recursive.rs | 1092 - vendor/walkdir/src/tests/util.rs | 252 - vendor/walkdir/src/util.rs | 25 - vendor/winapi-util/.cargo-checksum.json | 1 - vendor/winapi-util/COPYING | 3 - vendor/winapi-util/Cargo.toml | 53 - vendor/winapi-util/LICENSE-MIT | 21 - vendor/winapi-util/README.md | 64 - vendor/winapi-util/UNLICENSE | 24 - vendor/winapi-util/rustfmt.toml | 2 - vendor/winapi-util/src/console.rs | 407 - vendor/winapi-util/src/file.rs | 166 - vendor/winapi-util/src/lib.rs | 35 - vendor/winapi-util/src/sysinfo.rs | 161 - vendor/winapi-util/src/win.rs | 246 - vendor/windows-core/.cargo-checksum.json | 1 - vendor/windows-core/Cargo.lock | 95 - vendor/windows-core/Cargo.toml | 76 - vendor/windows-core/license-apache-2.0 | 201 - vendor/windows-core/license-mit | 21 - vendor/windows-core/readme.md | 7 - vendor/windows-core/src/agile_reference.rs | 39 - vendor/windows-core/src/array.rs | 186 - vendor/windows-core/src/as_impl.rs | 20 - vendor/windows-core/src/com_object.rs | 394 - vendor/windows-core/src/event.rs | 144 - vendor/windows-core/src/guid.rs | 199 - vendor/windows-core/src/handles.rs | 46 - vendor/windows-core/src/imp/bindings.rs | 45 - vendor/windows-core/src/imp/can_into.rs | 5 - vendor/windows-core/src/imp/com_bindings.rs | 262 - vendor/windows-core/src/imp/factory_cache.rs | 218 - vendor/windows-core/src/imp/generic_factory.rs | 33 - vendor/windows-core/src/imp/marshaler.rs | 268 - vendor/windows-core/src/imp/mod.rs | 96 - vendor/windows-core/src/imp/ref_count.rs | 33 - vendor/windows-core/src/imp/sha1.rs | 481 - vendor/windows-core/src/imp/weak_ref_count.rs | 327 - vendor/windows-core/src/imp/windows.rs | 11 - vendor/windows-core/src/inspectable.rs | 123 - vendor/windows-core/src/interface.rs | 339 - vendor/windows-core/src/lib.rs | 54 - vendor/windows-core/src/out_param.rs | 63 - vendor/windows-core/src/out_ref.rs | 31 - vendor/windows-core/src/param.rs | 76 - vendor/windows-core/src/param_value.rs | 24 - vendor/windows-core/src/ref.rs | 60 - vendor/windows-core/src/runtime_name.rs | 5 - vendor/windows-core/src/runtime_type.rs | 30 - vendor/windows-core/src/scoped_interface.rs | 41 - vendor/windows-core/src/type.rs | 127 - vendor/windows-core/src/unknown.rs | 187 - vendor/windows-core/src/weak.rs | 28 - vendor/windows-core/src/windows.rs | 73 - vendor/windows-core/windows-core.natvis | 18 - vendor/windows-implement/.cargo-checksum.json | 1 - vendor/windows-implement/Cargo.lock | 47 - vendor/windows-implement/Cargo.toml | 70 - vendor/windows-implement/license-apache-2.0 | 201 - vendor/windows-implement/license-mit | 21 - vendor/windows-implement/src/gen.rs | 587 - vendor/windows-implement/src/lib.rs | 383 - vendor/windows-implement/src/tests.rs | 135 - vendor/windows-interface/.cargo-checksum.json | 1 - vendor/windows-interface/Cargo.lock | 47 - vendor/windows-interface/Cargo.toml | 70 - vendor/windows-interface/license-apache-2.0 | 201 - vendor/windows-interface/license-mit | 21 - vendor/windows-interface/src/lib.rs | 762 - 2605 files changed, 2853 insertions(+), 658581 deletions(-) delete mode 100644 etc/authzd/gitlab.com/gitlab-org/gitlab/entities.json delete mode 100644 etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/entities.json delete mode 100644 etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/entities.json delete mode 100644 etc/authzd/policy0.cedar delete mode 100644 etc/authzd/policy1.cedar delete mode 100644 etc/authzd/staging.gitlab.com/authorization/sparkle/team/entities.json delete mode 100644 share/man/cedar/README.md delete mode 100644 src/authorization/cedar/authorizer.rs delete mode 100644 src/authorization/cedar/entities.rs delete mode 100644 src/authorization/cedar/mod.rs delete mode 100644 src/gitlab/api.rs delete mode 100644 src/gitlab/group.rs delete mode 100644 src/gitlab/member.rs delete mode 100644 src/gitlab/mod.rs delete mode 100644 src/gitlab/namespace.rs delete mode 100644 src/gitlab/project.rs create mode 100644 src/rpc/authzed.api.materialize.v0.rs create mode 100644 src/rpc/authzed.api.v1.rs delete mode 100644 tests/authorization/cedar_authorizer_test.rs delete mode 100644 vendor/android-tzdata/.cargo-checksum.json delete mode 100644 vendor/android-tzdata/Cargo.toml delete mode 100644 vendor/android-tzdata/LICENSE-APACHE delete mode 100644 vendor/android-tzdata/LICENSE-MIT delete mode 100644 vendor/android-tzdata/README.md delete mode 100644 vendor/android-tzdata/src/lib.rs delete mode 100644 vendor/android-tzdata/src/tzdata.rs delete mode 100644 vendor/android_system_properties/.cargo-checksum.json delete mode 100644 vendor/android_system_properties/CONTRIBUTING.md delete mode 100644 vendor/android_system_properties/Cargo.lock delete mode 100644 vendor/android_system_properties/Cargo.toml delete mode 100644 vendor/android_system_properties/LICENSE-APACHE delete mode 100644 vendor/android_system_properties/LICENSE-MIT delete mode 100644 vendor/android_system_properties/README.md delete mode 100644 vendor/android_system_properties/examples/time_zone.rs delete mode 100644 vendor/android_system_properties/src/lib.rs delete mode 100644 vendor/arrayvec/.cargo-checksum.json delete mode 100644 vendor/arrayvec/CHANGELOG.md delete mode 100644 vendor/arrayvec/Cargo.toml delete mode 100644 vendor/arrayvec/LICENSE-APACHE delete mode 100644 vendor/arrayvec/LICENSE-MIT delete mode 100644 vendor/arrayvec/README.md delete mode 100644 vendor/arrayvec/benches/arraystring.rs delete mode 100644 vendor/arrayvec/benches/extend.rs delete mode 100644 vendor/arrayvec/ci/miri.sh delete mode 100644 vendor/arrayvec/custom.css delete mode 100644 vendor/arrayvec/src/array.rs delete mode 100644 vendor/arrayvec/src/array_string.rs delete mode 100644 vendor/arrayvec/src/char.rs delete mode 100644 vendor/arrayvec/src/errors.rs delete mode 100644 vendor/arrayvec/src/lib.rs delete mode 100644 vendor/arrayvec/src/maybe_uninit.rs delete mode 100644 vendor/arrayvec/tests/serde.rs delete mode 100644 vendor/arrayvec/tests/tests.rs delete mode 100644 vendor/ascii-canvas/.cargo-checksum.json delete mode 100644 vendor/ascii-canvas/Cargo.toml delete mode 100644 vendor/ascii-canvas/LICENSE-APACHE delete mode 100644 vendor/ascii-canvas/LICENSE-MIT delete mode 100644 vendor/ascii-canvas/README.md delete mode 100644 vendor/ascii-canvas/src/lib.rs delete mode 100644 vendor/ascii-canvas/src/row.rs delete mode 100644 vendor/ascii-canvas/src/style.rs delete mode 100644 vendor/ascii-canvas/src/test.rs delete mode 100644 vendor/ascii-canvas/src/test_util.rs delete mode 100644 vendor/autocfg/.cargo-checksum.json delete mode 100644 vendor/autocfg/Cargo.lock delete mode 100644 vendor/autocfg/Cargo.toml delete mode 100644 vendor/autocfg/LICENSE-APACHE delete mode 100644 vendor/autocfg/LICENSE-MIT delete mode 100644 vendor/autocfg/README.md delete mode 100644 vendor/autocfg/examples/integers.rs delete mode 100644 vendor/autocfg/examples/nightly.rs delete mode 100644 vendor/autocfg/examples/paths.rs delete mode 100644 vendor/autocfg/examples/traits.rs delete mode 100644 vendor/autocfg/examples/versions.rs delete mode 100644 vendor/autocfg/src/error.rs delete mode 100644 vendor/autocfg/src/lib.rs delete mode 100644 vendor/autocfg/src/rustc.rs delete mode 100644 vendor/autocfg/src/tests.rs delete mode 100644 vendor/autocfg/src/version.rs delete mode 100644 vendor/autocfg/tests/no_std.rs delete mode 100644 vendor/autocfg/tests/rustflags.rs delete mode 100644 vendor/autocfg/tests/support/mod.rs delete mode 100644 vendor/autocfg/tests/tests.rs delete mode 100755 vendor/autocfg/tests/wrap_ignored delete mode 100644 vendor/autocfg/tests/wrappers.rs delete mode 100644 vendor/beef/.cargo-checksum.json delete mode 100644 vendor/beef/Cargo.toml delete mode 100644 vendor/beef/LICENSE-APACHE delete mode 100644 vendor/beef/LICENSE-MIT delete mode 100644 vendor/beef/README.md delete mode 100644 vendor/beef/benches/bench.rs delete mode 100755 vendor/beef/ci/miri.sh delete mode 100644 vendor/beef/src/generic.rs delete mode 100644 vendor/beef/src/lean.rs delete mode 100644 vendor/beef/src/lib.rs delete mode 100644 vendor/beef/src/serde.rs delete mode 100644 vendor/beef/src/traits.rs delete mode 100644 vendor/beef/src/wide.rs delete mode 100644 vendor/bit-set/.cargo-checksum.json delete mode 100644 vendor/bit-set/Cargo.toml delete mode 100644 vendor/bit-set/LICENSE-APACHE delete mode 100644 vendor/bit-set/LICENSE-MIT delete mode 100644 vendor/bit-set/README.md delete mode 100644 vendor/bit-set/RELEASES.md delete mode 100644 vendor/bit-set/benches/bench.rs delete mode 100644 vendor/bit-set/src/lib.rs delete mode 100644 vendor/bit-vec/.cargo-checksum.json delete mode 100644 vendor/bit-vec/Cargo.toml delete mode 100644 vendor/bit-vec/LICENSE-APACHE delete mode 100644 vendor/bit-vec/LICENSE-MIT delete mode 100644 vendor/bit-vec/README.md delete mode 100644 vendor/bit-vec/RELEASES.md delete mode 100644 vendor/bit-vec/benches/bench.rs delete mode 100755 vendor/bit-vec/crusader.sh delete mode 100644 vendor/bit-vec/src/lib.rs delete mode 100644 vendor/block-buffer/.cargo-checksum.json delete mode 100644 vendor/block-buffer/CHANGELOG.md delete mode 100644 vendor/block-buffer/Cargo.toml delete mode 100644 vendor/block-buffer/LICENSE-APACHE delete mode 100644 vendor/block-buffer/LICENSE-MIT delete mode 100644 vendor/block-buffer/README.md delete mode 100644 vendor/block-buffer/src/lib.rs delete mode 100644 vendor/block-buffer/src/sealed.rs delete mode 100644 vendor/block-buffer/tests/mod.rs delete mode 100644 vendor/borsh/.cargo-checksum.json delete mode 100644 vendor/borsh/Cargo.lock delete mode 100644 vendor/borsh/Cargo.toml delete mode 100644 vendor/borsh/README.md delete mode 100644 vendor/borsh/build.rs delete mode 100644 vendor/borsh/docs/migration_guides/v0.10.2_to_v1.0.0_nearcore.md delete mode 100644 vendor/borsh/docs/migration_guides/v0.9_to_v1.0.0_near_sdk_rs.md delete mode 100644 vendor/borsh/docs/rustdoc_include/borsh_crate_top_level.md delete mode 100644 vendor/borsh/docs/rustdoc_include/borsh_deserialize.md delete mode 100644 vendor/borsh/docs/rustdoc_include/borsh_schema.md delete mode 100644 vendor/borsh/docs/rustdoc_include/borsh_serialize.md delete mode 100644 vendor/borsh/examples/serde_json_value.rs delete mode 100644 vendor/borsh/src/de/hint.rs delete mode 100644 vendor/borsh/src/de/mod.rs delete mode 100644 vendor/borsh/src/error.rs delete mode 100644 vendor/borsh/src/generate_schema_schema.rs delete mode 100644 vendor/borsh/src/lib.rs delete mode 100644 vendor/borsh/src/nostd_io.rs delete mode 100644 vendor/borsh/src/schema.rs delete mode 100644 vendor/borsh/src/schema/container_ext.rs delete mode 100644 vendor/borsh/src/schema/container_ext/max_size.rs delete mode 100644 vendor/borsh/src/schema/container_ext/validate.rs delete mode 100644 vendor/borsh/src/schema_helpers.rs delete mode 100644 vendor/borsh/src/ser/helpers.rs delete mode 100644 vendor/borsh/src/ser/mod.rs delete mode 100644 vendor/borsh/tests/common_macro.rs delete mode 100644 vendor/borsh/tests/compile_derives/schema/test_generic_enums.rs delete mode 100644 vendor/borsh/tests/compile_derives/test_generic_enums.rs delete mode 100644 vendor/borsh/tests/compile_derives/test_generic_structs.rs delete mode 100644 vendor/borsh/tests/compile_derives/test_macro_namespace_collisions.rs delete mode 100644 vendor/borsh/tests/compile_derives/test_recursive_structs.rs delete mode 100644 vendor/borsh/tests/custom_reader/test_custom_reader.rs delete mode 100644 vendor/borsh/tests/deserialization_errors/test_ascii_strings.rs delete mode 100644 vendor/borsh/tests/deserialization_errors/test_cells.rs delete mode 100644 vendor/borsh/tests/deserialization_errors/test_initial.rs delete mode 100644 vendor/borsh/tests/init_in_deserialize/test_init_in_deserialize.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_bson_object_ids.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_enum_discriminants.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_generic_enums.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_generic_structs.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_recursive_enums.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_recursive_structs.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_serde_with_third_party.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_simple_enums.rs delete mode 100644 vendor/borsh/tests/roundtrip/requires_derive_category/test_ultimate_many_features_combined.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_arrays.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_ascii_strings.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_btree_map.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_cells.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_cow.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_hash_map.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_indexmap.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_ip_addr.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_nonzero_integers.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_primitives.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_range.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_rc.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_strings.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_tuple.rs delete mode 100644 vendor/borsh/tests/roundtrip/test_vecs.rs delete mode 100644 vendor/borsh/tests/schema/container_extension/test_max_size.rs delete mode 100644 vendor/borsh/tests/schema/container_extension/test_schema_validate.rs delete mode 100644 vendor/borsh/tests/schema/schema_conflict/test_schema_conflict.rs delete mode 100644 vendor/borsh/tests/schema/test_arrays.rs delete mode 100644 vendor/borsh/tests/schema/test_ascii_strings.rs delete mode 100644 vendor/borsh/tests/schema/test_box.rs delete mode 100644 vendor/borsh/tests/schema/test_btree_map.rs delete mode 100644 vendor/borsh/tests/schema/test_cells.rs delete mode 100644 vendor/borsh/tests/schema/test_cow.rs delete mode 100644 vendor/borsh/tests/schema/test_enum_discriminants.rs delete mode 100644 vendor/borsh/tests/schema/test_generic_enums.rs delete mode 100644 vendor/borsh/tests/schema/test_generic_structs.rs delete mode 100644 vendor/borsh/tests/schema/test_hash_map.rs delete mode 100644 vendor/borsh/tests/schema/test_ip_addr.rs delete mode 100644 vendor/borsh/tests/schema/test_option.rs delete mode 100644 vendor/borsh/tests/schema/test_phantom_data.rs delete mode 100644 vendor/borsh/tests/schema/test_primitives.rs delete mode 100644 vendor/borsh/tests/schema/test_range.rs delete mode 100644 vendor/borsh/tests/schema/test_rc.rs delete mode 100644 vendor/borsh/tests/schema/test_recursive_enums.rs delete mode 100644 vendor/borsh/tests/schema/test_recursive_structs.rs delete mode 100644 vendor/borsh/tests/schema/test_schema_with_third_party.rs delete mode 100644 vendor/borsh/tests/schema/test_simple_enums.rs delete mode 100644 vendor/borsh/tests/schema/test_simple_structs.rs delete mode 100644 vendor/borsh/tests/schema/test_strings.rs delete mode 100644 vendor/borsh/tests/schema/test_tuple.rs delete mode 100644 vendor/borsh/tests/schema/test_vecs.rs delete mode 100644 vendor/borsh/tests/smoke.rs delete mode 100644 vendor/borsh/tests/tests.rs delete mode 100644 vendor/borsh/tests/zero_sized_types/test_zero_sized_types_forbidden.rs delete mode 100644 vendor/cedar-policy-core/.cargo-checksum.json delete mode 100644 vendor/cedar-policy-core/Cargo.lock delete mode 100644 vendor/cedar-policy-core/Cargo.toml delete mode 100644 vendor/cedar-policy-core/README.md delete mode 100644 vendor/cedar-policy-core/build.rs delete mode 100644 vendor/cedar-policy-core/src/ast.rs delete mode 100644 vendor/cedar-policy-core/src/ast/annotation.rs delete mode 100644 vendor/cedar-policy-core/src/ast/entity.rs delete mode 100644 vendor/cedar-policy-core/src/ast/expr.rs delete mode 100644 vendor/cedar-policy-core/src/ast/expr_allows_errors.rs delete mode 100644 vendor/cedar-policy-core/src/ast/expr_iterator.rs delete mode 100644 vendor/cedar-policy-core/src/ast/extension.rs delete mode 100644 vendor/cedar-policy-core/src/ast/id.rs delete mode 100644 vendor/cedar-policy-core/src/ast/integer.rs delete mode 100644 vendor/cedar-policy-core/src/ast/literal.rs delete mode 100644 vendor/cedar-policy-core/src/ast/name.rs delete mode 100644 vendor/cedar-policy-core/src/ast/ops.rs delete mode 100644 vendor/cedar-policy-core/src/ast/partial_value.rs delete mode 100644 vendor/cedar-policy-core/src/ast/pattern.rs delete mode 100644 vendor/cedar-policy-core/src/ast/policy.rs delete mode 100644 vendor/cedar-policy-core/src/ast/policy_set.rs delete mode 100644 vendor/cedar-policy-core/src/ast/request.rs delete mode 100644 vendor/cedar-policy-core/src/ast/restricted_expr.rs delete mode 100644 vendor/cedar-policy-core/src/ast/types.rs delete mode 100644 vendor/cedar-policy-core/src/ast/value.rs delete mode 100644 vendor/cedar-policy-core/src/authorizer.rs delete mode 100644 vendor/cedar-policy-core/src/authorizer/err.rs delete mode 100644 vendor/cedar-policy-core/src/authorizer/partial_response.rs delete mode 100644 vendor/cedar-policy-core/src/entities.rs delete mode 100644 vendor/cedar-policy-core/src/entities/conformance.rs delete mode 100644 vendor/cedar-policy-core/src/entities/conformance/err.rs delete mode 100644 vendor/cedar-policy-core/src/entities/err.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json/context.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json/entities.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json/err.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json/schema.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json/schema_types.rs delete mode 100644 vendor/cedar-policy-core/src/entities/json/value.rs delete mode 100644 vendor/cedar-policy-core/src/error_macros.rs delete mode 100644 vendor/cedar-policy-core/src/est.rs delete mode 100644 vendor/cedar-policy-core/src/est/annotation.rs delete mode 100644 vendor/cedar-policy-core/src/est/err.rs delete mode 100644 vendor/cedar-policy-core/src/est/expr.rs delete mode 100644 vendor/cedar-policy-core/src/est/policy_set.rs delete mode 100644 vendor/cedar-policy-core/src/est/scope_constraints.rs delete mode 100644 vendor/cedar-policy-core/src/evaluator.rs delete mode 100644 vendor/cedar-policy-core/src/evaluator/err.rs delete mode 100644 vendor/cedar-policy-core/src/expr_builder.rs delete mode 100644 vendor/cedar-policy-core/src/extensions.rs delete mode 100644 vendor/cedar-policy-core/src/extensions/datetime.rs delete mode 100644 vendor/cedar-policy-core/src/extensions/decimal.rs delete mode 100644 vendor/cedar-policy-core/src/extensions/ipaddr.rs delete mode 100644 vendor/cedar-policy-core/src/extensions/partial_evaluation.rs delete mode 100644 vendor/cedar-policy-core/src/from_normalized_str.rs delete mode 100644 vendor/cedar-policy-core/src/fuzzy_match.rs delete mode 100644 vendor/cedar-policy-core/src/jsonvalue.rs delete mode 100644 vendor/cedar-policy-core/src/lib.rs delete mode 100644 vendor/cedar-policy-core/src/parser.rs delete mode 100644 vendor/cedar-policy-core/src/parser/cst.rs delete mode 100644 vendor/cedar-policy-core/src/parser/cst_to_ast.rs delete mode 100644 vendor/cedar-policy-core/src/parser/cst_to_ast/to_ref_or_refs.rs delete mode 100644 vendor/cedar-policy-core/src/parser/err.rs delete mode 100644 vendor/cedar-policy-core/src/parser/fmt.rs delete mode 100644 vendor/cedar-policy-core/src/parser/grammar.lalrpop delete mode 100644 vendor/cedar-policy-core/src/parser/loc.rs delete mode 100644 vendor/cedar-policy-core/src/parser/node.rs delete mode 100644 vendor/cedar-policy-core/src/parser/testfiles/policies.cedar delete mode 100644 vendor/cedar-policy-core/src/parser/text_to_cst.rs delete mode 100644 vendor/cedar-policy-core/src/parser/unescape.rs delete mode 100644 vendor/cedar-policy-core/src/parser/util.rs delete mode 100644 vendor/cedar-policy-core/src/test_utils.rs delete mode 100644 vendor/cedar-policy-core/src/transitive_closure.rs delete mode 100644 vendor/cedar-policy-core/src/transitive_closure/err.rs delete mode 100644 vendor/cedar-policy-formatter/.cargo-checksum.json delete mode 100644 vendor/cedar-policy-formatter/Cargo.lock delete mode 100644 vendor/cedar-policy-formatter/Cargo.toml delete mode 100644 vendor/cedar-policy-formatter/README.md delete mode 100644 vendor/cedar-policy-formatter/src/lib.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/config.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/doc.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/fmt.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/lexer.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/mod.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/token.rs delete mode 100644 vendor/cedar-policy-formatter/src/pprint/utils.rs delete mode 100644 vendor/cedar-policy-formatter/tests/action_in_set.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/annotations.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/arith.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/blank_lines.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_a__policies_1.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_a__policies_1_bad.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_a__policies_2.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_a__policies_3.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_b__policies_4.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_b__policies_5.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_b__policies_5_bad.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_b__policies_6.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_c__policies.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@sandbox_c__policies_edited.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__format__formatted.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__format__unformatted.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample1__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample2__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample3__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample4__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample5__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample6__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample7__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample8__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample9__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__cli_sample_data_format@tiny_sandboxes__sample9__policy_bad.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_a__policies_1.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_a__policies_1_bad.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_a__policies_2.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_a__policies_3.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_b__policies_4.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_b__policies_5.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_b__policies_5_bad.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_b__policies_6.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_c__policies.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@sandbox_c__policies_edited.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__format__formatted.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__format__unformatted.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__level-validation__policy-level-0.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__level-validation__policy-level-1.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__level-validation__policy-level-2.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample1__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample2__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample3__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample4__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample5__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample6__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample7__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample8__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample9__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__sample9__policy_bad.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/cli-snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@tiny_sandboxes__translate-policy__policy.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/comment_euid_elems.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/comment_only.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/comment_trailing_whitespace.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/empty.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/empty_list.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/empty_record.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/extended_has.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/index.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/is_policies.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/ite_comment.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/like.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/policies.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@action_in_set.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@annotations.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@arith.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@blank_lines.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@comment_euid_elems.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@comment_only.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@comment_trailing_whitespace.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@empty.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@empty_list.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@empty_record.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@extended_has.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@index.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@is_policies.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@ite_comment.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@like.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@policies.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@test.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@trivial_forbid.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/snapshots/cedar_policy_formatter__pprint__fmt__tests__format_files@trivial_permit.cedar.snap delete mode 100644 vendor/cedar-policy-formatter/tests/test.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/trivial_forbid.cedar delete mode 100644 vendor/cedar-policy-formatter/tests/trivial_permit.cedar delete mode 100644 vendor/cedar-policy-validator/.cargo-checksum.json delete mode 100644 vendor/cedar-policy-validator/Cargo.lock delete mode 100644 vendor/cedar-policy-validator/Cargo.toml delete mode 100644 vendor/cedar-policy-validator/README.md delete mode 100644 vendor/cedar-policy-validator/build.rs delete mode 100644 vendor/cedar-policy-validator/experimental_warning.md delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema.rs delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/ast.rs delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/err.rs delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/fmt.rs delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/grammar.lalrpop delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/parser.rs delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/test.rs delete mode 100644 vendor/cedar-policy-validator/src/cedar_schema/to_json_schema.rs delete mode 100644 vendor/cedar-policy-validator/src/coreschema.rs delete mode 100644 vendor/cedar-policy-validator/src/diagnostics.rs delete mode 100644 vendor/cedar-policy-validator/src/diagnostics/validation_errors.rs delete mode 100644 vendor/cedar-policy-validator/src/diagnostics/validation_warnings.rs delete mode 100644 vendor/cedar-policy-validator/src/entity_manifest.rs delete mode 100644 vendor/cedar-policy-validator/src/entity_manifest/analysis.rs delete mode 100644 vendor/cedar-policy-validator/src/entity_manifest/loader.rs delete mode 100644 vendor/cedar-policy-validator/src/entity_manifest/slicing.rs delete mode 100644 vendor/cedar-policy-validator/src/entity_manifest/type_annotations.rs delete mode 100644 vendor/cedar-policy-validator/src/expr_iterator.rs delete mode 100644 vendor/cedar-policy-validator/src/extension_schema.rs delete mode 100644 vendor/cedar-policy-validator/src/extensions.rs delete mode 100644 vendor/cedar-policy-validator/src/extensions/datetime.rs delete mode 100644 vendor/cedar-policy-validator/src/extensions/decimal.rs delete mode 100644 vendor/cedar-policy-validator/src/extensions/ipaddr.rs delete mode 100644 vendor/cedar-policy-validator/src/extensions/partial_evaluation.rs delete mode 100644 vendor/cedar-policy-validator/src/json_schema.rs delete mode 100644 vendor/cedar-policy-validator/src/level_validate.rs delete mode 100644 vendor/cedar-policy-validator/src/lib.rs delete mode 100644 vendor/cedar-policy-validator/src/partition_nonempty.rs delete mode 100644 vendor/cedar-policy-validator/src/rbac.rs delete mode 100644 vendor/cedar-policy-validator/src/schema.rs delete mode 100644 vendor/cedar-policy-validator/src/schema/action.rs delete mode 100644 vendor/cedar-policy-validator/src/schema/entity_type.rs delete mode 100644 vendor/cedar-policy-validator/src/schema/err.rs delete mode 100644 vendor/cedar-policy-validator/src/schema/namespace_def.rs delete mode 100644 vendor/cedar-policy-validator/src/schema/raw_name.rs delete mode 100644 vendor/cedar-policy-validator/src/schema/test_579.rs delete mode 100644 vendor/cedar-policy-validator/src/str_checks.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/expr.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/extensions.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/namespace.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/optional_attributes.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/partial.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/policy.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/strict.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/tags.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/test_utils.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/type_annotation.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/test/unspecified_entity.rs delete mode 100644 vendor/cedar-policy-validator/src/typecheck/typecheck_answer.rs delete mode 100644 vendor/cedar-policy-validator/src/types.rs delete mode 100644 vendor/cedar-policy-validator/src/types/capability.rs delete mode 100644 vendor/cedar-policy-validator/src/types/request_env.rs delete mode 100644 vendor/cedar-policy/.cargo-checksum.json delete mode 100644 vendor/cedar-policy/CHANGELOG.md delete mode 100644 vendor/cedar-policy/Cargo.lock delete mode 100644 vendor/cedar-policy/Cargo.toml delete mode 100644 vendor/cedar-policy/README.md delete mode 100644 vendor/cedar-policy/benches/attr_errors.rs delete mode 100644 vendor/cedar-policy/benches/cedar_benchmarks.rs delete mode 100644 vendor/cedar-policy/benches/deeply_nested_est.rs delete mode 100644 vendor/cedar-policy/benches/entity_attr_errors.rs delete mode 100644 vendor/cedar-policy/benches/entity_parsing.rs delete mode 100644 vendor/cedar-policy/benches/extension_fn_validation.rs delete mode 100644 vendor/cedar-policy/build.rs delete mode 100644 vendor/cedar-policy/experimental_warning.md delete mode 100644 vendor/cedar-policy/protobuf_schema/core.proto delete mode 100644 vendor/cedar-policy/protobuf_schema/validator.proto delete mode 100644 vendor/cedar-policy/src/api.rs delete mode 100644 vendor/cedar-policy/src/api/err.rs delete mode 100644 vendor/cedar-policy/src/api/err/validation_errors.rs delete mode 100644 vendor/cedar-policy/src/api/err/validation_warnings.rs delete mode 100644 vendor/cedar-policy/src/api/id.rs delete mode 100644 vendor/cedar-policy/src/ffi/check_parse.rs delete mode 100644 vendor/cedar-policy/src/ffi/convert.rs delete mode 100644 vendor/cedar-policy/src/ffi/format.rs delete mode 100644 vendor/cedar-policy/src/ffi/is_authorized.rs delete mode 100644 vendor/cedar-policy/src/ffi/mod.rs delete mode 100644 vendor/cedar-policy/src/ffi/tests.rs delete mode 100644 vendor/cedar-policy/src/ffi/utils.rs delete mode 100644 vendor/cedar-policy/src/ffi/validate.rs delete mode 100644 vendor/cedar-policy/src/ffi/version.rs delete mode 100644 vendor/cedar-policy/src/lib.rs delete mode 100644 vendor/cedar-policy/src/proto.rs delete mode 100644 vendor/cedar-policy/src/proto/api.rs delete mode 100644 vendor/cedar-policy/src/proto/ast.rs delete mode 100644 vendor/cedar-policy/src/proto/entities.rs delete mode 100644 vendor/cedar-policy/src/proto/policy.rs delete mode 100644 vendor/cedar-policy/src/proto/traits.rs delete mode 100644 vendor/cedar-policy/src/proto/validator.rs delete mode 100644 vendor/cedar-policy/src/test.rs delete mode 100644 vendor/cedar-policy/src/test/prop_test_policy_set.rs delete mode 100644 vendor/cedar-policy/src/test/test.rs delete mode 100644 vendor/cedar-policy/tests/public_interface.rs delete mode 100644 vendor/cfg_aliases/.cargo-checksum.json delete mode 100644 vendor/cfg_aliases/Cargo.toml delete mode 100644 vendor/cfg_aliases/LICENSE delete mode 100644 vendor/cfg_aliases/NOTICES.md delete mode 100644 vendor/cfg_aliases/README.md delete mode 100644 vendor/cfg_aliases/src/lib.rs delete mode 100644 vendor/cfg_aliases/tests/test.rs delete mode 100644 vendor/chrono/.cargo-checksum.json delete mode 100644 vendor/chrono/CITATION.cff delete mode 100644 vendor/chrono/Cargo.lock delete mode 100644 vendor/chrono/Cargo.toml delete mode 100644 vendor/chrono/LICENSE.txt delete mode 100644 vendor/chrono/src/date.rs delete mode 100644 vendor/chrono/src/datetime/mod.rs delete mode 100644 vendor/chrono/src/datetime/serde.rs delete mode 100644 vendor/chrono/src/datetime/tests.rs delete mode 100644 vendor/chrono/src/format/formatting.rs delete mode 100644 vendor/chrono/src/format/locales.rs delete mode 100644 vendor/chrono/src/format/mod.rs delete mode 100644 vendor/chrono/src/format/parse.rs delete mode 100644 vendor/chrono/src/format/parsed.rs delete mode 100644 vendor/chrono/src/format/scan.rs delete mode 100644 vendor/chrono/src/format/strftime.rs delete mode 100644 vendor/chrono/src/lib.rs delete mode 100644 vendor/chrono/src/month.rs delete mode 100644 vendor/chrono/src/naive/date/mod.rs delete mode 100644 vendor/chrono/src/naive/date/tests.rs delete mode 100644 vendor/chrono/src/naive/datetime/mod.rs delete mode 100644 vendor/chrono/src/naive/datetime/serde.rs delete mode 100644 vendor/chrono/src/naive/datetime/tests.rs delete mode 100644 vendor/chrono/src/naive/internals.rs delete mode 100644 vendor/chrono/src/naive/isoweek.rs delete mode 100644 vendor/chrono/src/naive/mod.rs delete mode 100644 vendor/chrono/src/naive/time/mod.rs delete mode 100644 vendor/chrono/src/naive/time/serde.rs delete mode 100644 vendor/chrono/src/naive/time/tests.rs delete mode 100644 vendor/chrono/src/offset/fixed.rs delete mode 100644 vendor/chrono/src/offset/local/mod.rs delete mode 100644 vendor/chrono/src/offset/local/tz_info/mod.rs delete mode 100644 vendor/chrono/src/offset/local/tz_info/parser.rs delete mode 100644 vendor/chrono/src/offset/local/tz_info/rule.rs delete mode 100644 vendor/chrono/src/offset/local/tz_info/timezone.rs delete mode 100644 vendor/chrono/src/offset/local/unix.rs delete mode 100644 vendor/chrono/src/offset/local/win_bindings.rs delete mode 100644 vendor/chrono/src/offset/local/win_bindings.txt delete mode 100644 vendor/chrono/src/offset/local/windows.rs delete mode 100644 vendor/chrono/src/offset/mod.rs delete mode 100644 vendor/chrono/src/offset/utc.rs delete mode 100644 vendor/chrono/src/round.rs delete mode 100644 vendor/chrono/src/time_delta.rs delete mode 100644 vendor/chrono/src/traits.rs delete mode 100644 vendor/chrono/src/weekday.rs delete mode 100644 vendor/chrono/src/weekday_set.rs delete mode 100644 vendor/chrono/tests/dateutils.rs delete mode 100644 vendor/chrono/tests/wasm.rs delete mode 100644 vendor/chrono/tests/win_bindings.rs delete mode 100644 vendor/cpufeatures/.cargo-checksum.json delete mode 100644 vendor/cpufeatures/CHANGELOG.md delete mode 100644 vendor/cpufeatures/Cargo.lock delete mode 100644 vendor/cpufeatures/Cargo.toml delete mode 100644 vendor/cpufeatures/LICENSE-APACHE delete mode 100644 vendor/cpufeatures/LICENSE-MIT delete mode 100644 vendor/cpufeatures/README.md delete mode 100644 vendor/cpufeatures/src/aarch64.rs delete mode 100644 vendor/cpufeatures/src/lib.rs delete mode 100644 vendor/cpufeatures/src/loongarch64.rs delete mode 100644 vendor/cpufeatures/src/miri.rs delete mode 100644 vendor/cpufeatures/src/x86.rs delete mode 100644 vendor/cpufeatures/tests/aarch64.rs delete mode 100644 vendor/cpufeatures/tests/loongarch64.rs delete mode 100644 vendor/cpufeatures/tests/x86.rs delete mode 100644 vendor/crypto-common/.cargo-checksum.json delete mode 100644 vendor/crypto-common/CHANGELOG.md delete mode 100644 vendor/crypto-common/Cargo.toml delete mode 100644 vendor/crypto-common/LICENSE-APACHE delete mode 100644 vendor/crypto-common/LICENSE-MIT delete mode 100644 vendor/crypto-common/README.md delete mode 100644 vendor/crypto-common/src/lib.rs delete mode 100644 vendor/darling/.cargo-checksum.json delete mode 100644 vendor/darling/CHANGELOG.md delete mode 100644 vendor/darling/Cargo.lock delete mode 100644 vendor/darling/Cargo.toml delete mode 100644 vendor/darling/LICENSE delete mode 100644 vendor/darling/README.md delete mode 100644 vendor/darling/clippy.toml delete mode 100755 vendor/darling/compiletests.sh delete mode 100644 vendor/darling/examples/automatic_bounds.rs delete mode 100644 vendor/darling/examples/consume_fields.rs delete mode 100644 vendor/darling/examples/expr_with.rs delete mode 100644 vendor/darling/examples/fallible_read.rs delete mode 100644 vendor/darling/examples/heterogeneous_enum_and_word.rs delete mode 100644 vendor/darling/examples/shorthand_or_long_field.rs delete mode 100644 vendor/darling/examples/supports_struct.rs delete mode 100644 vendor/darling/src/lib.rs delete mode 100644 vendor/darling/src/macros_public.rs delete mode 100644 vendor/darling/tests/accrue_errors.rs delete mode 100644 vendor/darling/tests/attrs_with.rs delete mode 100644 vendor/darling/tests/compile-fail/attrs_with_bad_fn.rs delete mode 100644 vendor/darling/tests/compile-fail/attrs_with_bad_fn.stderr delete mode 100644 vendor/darling/tests/compile-fail/attrs_without_forward_attrs.rs delete mode 100644 vendor/darling/tests/compile-fail/attrs_without_forward_attrs.stderr delete mode 100644 vendor/darling/tests/compile-fail/default_expr_wrong_type.rs delete mode 100644 vendor/darling/tests/compile-fail/default_expr_wrong_type.stderr delete mode 100644 vendor/darling/tests/compile-fail/duplicate_word_across_variants.rs delete mode 100644 vendor/darling/tests/compile-fail/duplicate_word_across_variants.stderr delete mode 100644 vendor/darling/tests/compile-fail/duplicate_word_on_variant.rs delete mode 100644 vendor/darling/tests/compile-fail/duplicate_word_on_variant.stderr delete mode 100644 vendor/darling/tests/compile-fail/flatten_meta_conflicts.rs delete mode 100644 vendor/darling/tests/compile-fail/flatten_meta_conflicts.stderr delete mode 100644 vendor/darling/tests/compile-fail/flatten_multiple_fields.rs delete mode 100644 vendor/darling/tests/compile-fail/flatten_multiple_fields.stderr delete mode 100644 vendor/darling/tests/compile-fail/from_word.rs delete mode 100644 vendor/darling/tests/compile-fail/from_word.stderr delete mode 100644 vendor/darling/tests/compile-fail/not_impl_from_meta.rs delete mode 100644 vendor/darling/tests/compile-fail/not_impl_from_meta.stderr delete mode 100644 vendor/darling/tests/compile-fail/skip_field_not_impl_default.rs delete mode 100644 vendor/darling/tests/compile-fail/skip_field_not_impl_default.stderr delete mode 100644 vendor/darling/tests/compile-fail/with_closure_capture.rs delete mode 100644 vendor/darling/tests/compile-fail/with_closure_capture.stderr delete mode 100644 vendor/darling/tests/compile-fail/word_on_wrong_variant_type.rs delete mode 100644 vendor/darling/tests/compile-fail/word_on_wrong_variant_type.stderr delete mode 100644 vendor/darling/tests/compiletests.rs delete mode 100644 vendor/darling/tests/computed_bound.rs delete mode 100644 vendor/darling/tests/custom_bound.rs delete mode 100644 vendor/darling/tests/data_with.rs delete mode 100644 vendor/darling/tests/defaults.rs delete mode 100644 vendor/darling/tests/enums_default.rs delete mode 100644 vendor/darling/tests/enums_newtype.rs delete mode 100644 vendor/darling/tests/enums_struct.rs delete mode 100644 vendor/darling/tests/enums_unit.rs delete mode 100644 vendor/darling/tests/error.rs delete mode 100644 vendor/darling/tests/flatten.rs delete mode 100644 vendor/darling/tests/flatten_error_accumulation.rs delete mode 100644 vendor/darling/tests/flatten_from_field.rs delete mode 100644 vendor/darling/tests/forward_attrs_to_from_attributes.rs delete mode 100644 vendor/darling/tests/from_generics.rs delete mode 100644 vendor/darling/tests/from_meta.rs delete mode 100644 vendor/darling/tests/from_type_param.rs delete mode 100644 vendor/darling/tests/from_type_param_default.rs delete mode 100644 vendor/darling/tests/from_variant.rs delete mode 100644 vendor/darling/tests/generics.rs delete mode 100644 vendor/darling/tests/happy_path.rs delete mode 100644 vendor/darling/tests/hash_map.rs delete mode 100644 vendor/darling/tests/meta_with.rs delete mode 100644 vendor/darling/tests/multiple.rs delete mode 100644 vendor/darling/tests/newtype.rs delete mode 100644 vendor/darling/tests/skip.rs delete mode 100644 vendor/darling/tests/spanned_value.rs delete mode 100644 vendor/darling/tests/split_declaration.rs delete mode 100644 vendor/darling/tests/suggestions.rs delete mode 100644 vendor/darling/tests/supports.rs delete mode 100644 vendor/darling/tests/unsupported_attributes.rs delete mode 100644 vendor/darling_core/.cargo-checksum.json delete mode 100644 vendor/darling_core/Cargo.lock delete mode 100644 vendor/darling_core/Cargo.toml delete mode 100644 vendor/darling_core/LICENSE delete mode 100644 vendor/darling_core/src/ast/data.rs delete mode 100644 vendor/darling_core/src/ast/generics.rs delete mode 100644 vendor/darling_core/src/ast/mod.rs delete mode 100644 vendor/darling_core/src/codegen/attr_extractor.rs delete mode 100644 vendor/darling_core/src/codegen/attrs_field.rs delete mode 100644 vendor/darling_core/src/codegen/default_expr.rs delete mode 100644 vendor/darling_core/src/codegen/error.rs delete mode 100644 vendor/darling_core/src/codegen/field.rs delete mode 100644 vendor/darling_core/src/codegen/from_attributes_impl.rs delete mode 100644 vendor/darling_core/src/codegen/from_derive_impl.rs delete mode 100644 vendor/darling_core/src/codegen/from_field.rs delete mode 100644 vendor/darling_core/src/codegen/from_meta_impl.rs delete mode 100644 vendor/darling_core/src/codegen/from_type_param.rs delete mode 100644 vendor/darling_core/src/codegen/from_variant_impl.rs delete mode 100644 vendor/darling_core/src/codegen/mod.rs delete mode 100644 vendor/darling_core/src/codegen/outer_from_impl.rs delete mode 100644 vendor/darling_core/src/codegen/postfix_transform.rs delete mode 100644 vendor/darling_core/src/codegen/trait_impl.rs delete mode 100644 vendor/darling_core/src/codegen/variant.rs delete mode 100644 vendor/darling_core/src/codegen/variant_data.rs delete mode 100644 vendor/darling_core/src/derive.rs delete mode 100644 vendor/darling_core/src/error/child.rs delete mode 100644 vendor/darling_core/src/error/kind.rs delete mode 100644 vendor/darling_core/src/error/mod.rs delete mode 100644 vendor/darling_core/src/from_attributes.rs delete mode 100644 vendor/darling_core/src/from_derive_input.rs delete mode 100644 vendor/darling_core/src/from_field.rs delete mode 100644 vendor/darling_core/src/from_generic_param.rs delete mode 100644 vendor/darling_core/src/from_generics.rs delete mode 100644 vendor/darling_core/src/from_meta.rs delete mode 100644 vendor/darling_core/src/from_type_param.rs delete mode 100644 vendor/darling_core/src/from_variant.rs delete mode 100644 vendor/darling_core/src/lib.rs delete mode 100644 vendor/darling_core/src/macros_private.rs delete mode 100644 vendor/darling_core/src/macros_public.rs delete mode 100644 vendor/darling_core/src/options/core.rs delete mode 100644 vendor/darling_core/src/options/forward_attrs.rs delete mode 100644 vendor/darling_core/src/options/forwarded_field.rs delete mode 100644 vendor/darling_core/src/options/from_attributes.rs delete mode 100644 vendor/darling_core/src/options/from_derive.rs delete mode 100644 vendor/darling_core/src/options/from_field.rs delete mode 100644 vendor/darling_core/src/options/from_meta.rs delete mode 100644 vendor/darling_core/src/options/from_type_param.rs delete mode 100644 vendor/darling_core/src/options/from_variant.rs delete mode 100644 vendor/darling_core/src/options/input_field.rs delete mode 100644 vendor/darling_core/src/options/input_variant.rs delete mode 100644 vendor/darling_core/src/options/mod.rs delete mode 100644 vendor/darling_core/src/options/outer_from.rs delete mode 100644 vendor/darling_core/src/options/shape.rs delete mode 100644 vendor/darling_core/src/usage/generics_ext.rs delete mode 100644 vendor/darling_core/src/usage/ident_set.rs delete mode 100644 vendor/darling_core/src/usage/lifetimes.rs delete mode 100644 vendor/darling_core/src/usage/mod.rs delete mode 100644 vendor/darling_core/src/usage/options.rs delete mode 100644 vendor/darling_core/src/usage/type_params.rs delete mode 100644 vendor/darling_core/src/util/callable.rs delete mode 100644 vendor/darling_core/src/util/flag.rs delete mode 100644 vendor/darling_core/src/util/ident_string.rs delete mode 100644 vendor/darling_core/src/util/ignored.rs delete mode 100644 vendor/darling_core/src/util/mod.rs delete mode 100644 vendor/darling_core/src/util/over_ride.rs delete mode 100644 vendor/darling_core/src/util/parse_attribute.rs delete mode 100644 vendor/darling_core/src/util/parse_expr.rs delete mode 100644 vendor/darling_core/src/util/path_list.rs delete mode 100644 vendor/darling_core/src/util/path_to_string.rs delete mode 100644 vendor/darling_core/src/util/shape.rs delete mode 100644 vendor/darling_core/src/util/spanned_value.rs delete mode 100644 vendor/darling_core/src/util/with_original.rs delete mode 100644 vendor/darling_macro/.cargo-checksum.json delete mode 100644 vendor/darling_macro/Cargo.lock delete mode 100644 vendor/darling_macro/Cargo.toml delete mode 100644 vendor/darling_macro/LICENSE delete mode 100644 vendor/darling_macro/src/lib.rs delete mode 100644 vendor/deranged/.cargo-checksum.json delete mode 100644 vendor/deranged/Cargo.lock delete mode 100644 vendor/deranged/Cargo.toml delete mode 100644 vendor/deranged/LICENSE-Apache delete mode 100644 vendor/deranged/LICENSE-MIT delete mode 100644 vendor/deranged/README.md delete mode 100644 vendor/deranged/src/lib.rs delete mode 100644 vendor/deranged/src/tests.rs delete mode 100644 vendor/deranged/src/traits.rs delete mode 100644 vendor/deranged/src/unsafe_wrapper.rs delete mode 100644 vendor/digest/.cargo-checksum.json delete mode 100644 vendor/digest/CHANGELOG.md delete mode 100644 vendor/digest/Cargo.toml delete mode 100644 vendor/digest/LICENSE-APACHE delete mode 100644 vendor/digest/LICENSE-MIT delete mode 100644 vendor/digest/README.md delete mode 100644 vendor/digest/src/core_api.rs delete mode 100644 vendor/digest/src/core_api/ct_variable.rs delete mode 100644 vendor/digest/src/core_api/rt_variable.rs delete mode 100644 vendor/digest/src/core_api/wrapper.rs delete mode 100644 vendor/digest/src/core_api/xof_reader.rs delete mode 100644 vendor/digest/src/dev.rs delete mode 100644 vendor/digest/src/dev/fixed.rs delete mode 100644 vendor/digest/src/dev/mac.rs delete mode 100644 vendor/digest/src/dev/rng.rs delete mode 100644 vendor/digest/src/dev/variable.rs delete mode 100644 vendor/digest/src/dev/xof.rs delete mode 100644 vendor/digest/src/digest.rs delete mode 100644 vendor/digest/src/lib.rs delete mode 100644 vendor/digest/src/mac.rs delete mode 100644 vendor/dyn-clone/.cargo-checksum.json delete mode 100644 vendor/dyn-clone/Cargo.lock delete mode 100644 vendor/dyn-clone/Cargo.toml delete mode 100644 vendor/dyn-clone/LICENSE-APACHE delete mode 100644 vendor/dyn-clone/LICENSE-MIT delete mode 100644 vendor/dyn-clone/README.md delete mode 100644 vendor/dyn-clone/examples/readme.rs delete mode 100644 vendor/dyn-clone/src/lib.rs delete mode 100644 vendor/dyn-clone/src/macros.rs delete mode 100644 vendor/dyn-clone/tests/compiletest.rs delete mode 100644 vendor/dyn-clone/tests/macros.rs delete mode 100644 vendor/dyn-clone/tests/trait.rs delete mode 100644 vendor/dyn-clone/tests/ui/missing-supertrait.rs delete mode 100644 vendor/dyn-clone/tests/ui/missing-supertrait.stderr delete mode 100644 vendor/educe/.cargo-checksum.json delete mode 100644 vendor/educe/Cargo.toml delete mode 100644 vendor/educe/LICENSE delete mode 100644 vendor/educe/README.md delete mode 100644 vendor/educe/src/common/bound.rs delete mode 100644 vendor/educe/src/common/expr.rs delete mode 100644 vendor/educe/src/common/ident_bool.rs delete mode 100644 vendor/educe/src/common/ident_index.rs delete mode 100644 vendor/educe/src/common/int.rs delete mode 100644 vendor/educe/src/common/mod.rs delete mode 100644 vendor/educe/src/common/path.rs delete mode 100644 vendor/educe/src/common/tools/discriminant_type.rs delete mode 100644 vendor/educe/src/common/tools/hash_type.rs delete mode 100644 vendor/educe/src/common/tools/mod.rs delete mode 100644 vendor/educe/src/common/type.rs delete mode 100644 vendor/educe/src/common/unsafe_punctuated_meta.rs delete mode 100644 vendor/educe/src/common/where_predicates_bool.rs delete mode 100644 vendor/educe/src/lib.rs delete mode 100644 vendor/educe/src/panic.rs delete mode 100644 vendor/educe/src/supported_traits.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/clone_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/clone_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/clone_union.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/clone/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/copy/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/copy/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/copy/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/copy/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/common.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/debug_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/debug_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/debug_union.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/debug/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/default/default_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/default/default_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/default/default_union.rs delete mode 100644 vendor/educe/src/trait_handlers/default/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/default/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/default/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/default/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/default/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/deref_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/deref_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/deref/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/deref_mut_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/deref_mut_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/deref_mut/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/eq/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/eq/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/eq/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/eq/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/hash_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/hash_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/hash_union.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/hash/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/into/common.rs delete mode 100644 vendor/educe/src/trait_handlers/into/into_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/into/into_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/into/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/into/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/into/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/into/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/into/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/ord_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/ord_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/ord/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/partial_eq_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/partial_eq_struct.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_eq/partial_eq_union.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/models/field_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/models/mod.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/models/type_attribute.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/panic.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/partial_ord_enum.rs delete mode 100644 vendor/educe/src/trait_handlers/partial_ord/partial_ord_struct.rs delete mode 100644 vendor/ena/.cargo-checksum.json delete mode 100644 vendor/ena/Cargo.toml delete mode 100644 vendor/ena/LICENSE-APACHE delete mode 100644 vendor/ena/LICENSE-MIT delete mode 100644 vendor/ena/README.md delete mode 100644 vendor/ena/measurements.txt delete mode 100644 vendor/ena/src/bitvec.rs delete mode 100644 vendor/ena/src/lib.rs delete mode 100644 vendor/ena/src/snapshot_vec.rs delete mode 100644 vendor/ena/src/undo_log.rs delete mode 100644 vendor/ena/src/unify/backing_vec.rs delete mode 100644 vendor/ena/src/unify/mod.rs delete mode 100644 vendor/ena/src/unify/tests.rs delete mode 100644 vendor/ena/tests/external_undo_log.rs delete mode 100644 vendor/enum-ordinalize-derive/.cargo-checksum.json delete mode 100644 vendor/enum-ordinalize-derive/Cargo.toml delete mode 100644 vendor/enum-ordinalize-derive/LICENSE delete mode 100644 vendor/enum-ordinalize-derive/README.md delete mode 100644 vendor/enum-ordinalize-derive/src/int128.rs delete mode 100644 vendor/enum-ordinalize-derive/src/int_wrapper.rs delete mode 100644 vendor/enum-ordinalize-derive/src/lib.rs delete mode 100644 vendor/enum-ordinalize-derive/src/panic.rs delete mode 100644 vendor/enum-ordinalize-derive/src/variant_type.rs delete mode 100644 vendor/enum-ordinalize/.cargo-checksum.json delete mode 100644 vendor/enum-ordinalize/Cargo.toml delete mode 100644 vendor/enum-ordinalize/LICENSE delete mode 100644 vendor/enum-ordinalize/README.md delete mode 100644 vendor/enum-ordinalize/src/lib.rs delete mode 100644 vendor/enum-ordinalize/src/traits.rs delete mode 100644 vendor/generic-array/.cargo-checksum.json delete mode 100644 vendor/generic-array/CHANGELOG.md delete mode 100644 vendor/generic-array/Cargo.toml delete mode 100644 vendor/generic-array/LICENSE delete mode 100644 vendor/generic-array/README.md delete mode 100644 vendor/generic-array/build.rs delete mode 100644 vendor/generic-array/src/arr.rs delete mode 100644 vendor/generic-array/src/functional.rs delete mode 100644 vendor/generic-array/src/hex.rs delete mode 100644 vendor/generic-array/src/impl_serde.rs delete mode 100644 vendor/generic-array/src/impl_zeroize.rs delete mode 100644 vendor/generic-array/src/impls.rs delete mode 100644 vendor/generic-array/src/iter.rs delete mode 100644 vendor/generic-array/src/lib.rs delete mode 100644 vendor/generic-array/src/sequence.rs delete mode 100644 vendor/hashbrown-0.12.3/.cargo-checksum.json delete mode 100644 vendor/hashbrown-0.12.3/CHANGELOG.md delete mode 100644 vendor/hashbrown-0.12.3/Cargo.toml delete mode 100644 vendor/hashbrown-0.12.3/LICENSE-APACHE delete mode 100644 vendor/hashbrown-0.12.3/LICENSE-MIT delete mode 100644 vendor/hashbrown-0.12.3/README.md delete mode 100644 vendor/hashbrown-0.12.3/benches/bench.rs delete mode 100644 vendor/hashbrown-0.12.3/benches/insert_unique_unchecked.rs delete mode 100644 vendor/hashbrown-0.12.3/clippy.toml delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/mod.rs delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/helpers.rs delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/map.rs delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/mod.rs delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/raw.rs delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/set.rs delete mode 100644 vendor/hashbrown-0.12.3/src/external_trait_impls/serde.rs delete mode 100644 vendor/hashbrown-0.12.3/src/lib.rs delete mode 100644 vendor/hashbrown-0.12.3/src/macros.rs delete mode 100644 vendor/hashbrown-0.12.3/src/map.rs delete mode 100644 vendor/hashbrown-0.12.3/src/raw/alloc.rs delete mode 100644 vendor/hashbrown-0.12.3/src/raw/bitmask.rs delete mode 100644 vendor/hashbrown-0.12.3/src/raw/generic.rs delete mode 100644 vendor/hashbrown-0.12.3/src/raw/mod.rs delete mode 100644 vendor/hashbrown-0.12.3/src/raw/sse2.rs delete mode 100644 vendor/hashbrown-0.12.3/src/rustc_entry.rs delete mode 100644 vendor/hashbrown-0.12.3/src/scopeguard.rs delete mode 100644 vendor/hashbrown-0.12.3/src/set.rs delete mode 100644 vendor/hashbrown-0.12.3/tests/hasher.rs delete mode 100644 vendor/hashbrown-0.12.3/tests/rayon.rs delete mode 100644 vendor/hashbrown-0.12.3/tests/serde.rs delete mode 100644 vendor/hashbrown-0.12.3/tests/set.rs delete mode 100644 vendor/hex/.cargo-checksum.json delete mode 100644 vendor/hex/Cargo.toml delete mode 100644 vendor/hex/LICENSE-APACHE delete mode 100644 vendor/hex/LICENSE-MIT delete mode 100644 vendor/hex/README.md delete mode 100644 vendor/hex/benches/hex.rs delete mode 100644 vendor/hex/src/error.rs delete mode 100644 vendor/hex/src/lib.rs delete mode 100644 vendor/hex/src/serde.rs delete mode 100644 vendor/hex/tests/serde.rs delete mode 100644 vendor/hex/tests/version-number.rs delete mode 100644 vendor/home/.cargo-checksum.json delete mode 100644 vendor/home/Cargo.lock delete mode 100644 vendor/home/Cargo.toml delete mode 100644 vendor/home/LICENSE-APACHE delete mode 100644 vendor/home/LICENSE-MIT delete mode 100644 vendor/home/README.md delete mode 100644 vendor/home/src/env.rs delete mode 100644 vendor/home/src/lib.rs delete mode 100644 vendor/home/src/windows.rs delete mode 100644 vendor/iana-time-zone-haiku/.cargo-checksum.json delete mode 100644 vendor/iana-time-zone-haiku/Cargo.toml delete mode 100644 vendor/iana-time-zone-haiku/LICENSE-APACHE delete mode 100644 vendor/iana-time-zone-haiku/LICENSE-MIT delete mode 100644 vendor/iana-time-zone-haiku/README.md delete mode 100644 vendor/iana-time-zone-haiku/build.rs delete mode 100644 vendor/iana-time-zone-haiku/src/implementation.cc delete mode 100644 vendor/iana-time-zone-haiku/src/lib.rs delete mode 100644 vendor/iana-time-zone/.cargo-checksum.json delete mode 100644 vendor/iana-time-zone/CHANGELOG.md delete mode 100644 vendor/iana-time-zone/Cargo.lock delete mode 100644 vendor/iana-time-zone/Cargo.toml delete mode 100644 vendor/iana-time-zone/LICENSE-APACHE delete mode 100644 vendor/iana-time-zone/LICENSE-MIT delete mode 100644 vendor/iana-time-zone/README.md delete mode 100644 vendor/iana-time-zone/bindings.txt delete mode 100644 vendor/iana-time-zone/deny.toml delete mode 100644 vendor/iana-time-zone/examples/get_timezone.rs delete mode 100644 vendor/iana-time-zone/examples/get_timezone_loop.rs delete mode 100644 vendor/iana-time-zone/examples/stress-test.rs delete mode 100644 vendor/iana-time-zone/src/ffi_utils.rs delete mode 100644 vendor/iana-time-zone/src/lib.rs delete mode 100644 vendor/iana-time-zone/src/platform.rs delete mode 100644 vendor/iana-time-zone/src/tz_aix.rs delete mode 100644 vendor/iana-time-zone/src/tz_android.rs delete mode 100644 vendor/iana-time-zone/src/tz_darwin.rs delete mode 100644 vendor/iana-time-zone/src/tz_freebsd.rs delete mode 100644 vendor/iana-time-zone/src/tz_haiku.rs delete mode 100644 vendor/iana-time-zone/src/tz_illumos.rs delete mode 100644 vendor/iana-time-zone/src/tz_linux.rs delete mode 100644 vendor/iana-time-zone/src/tz_netbsd.rs delete mode 100644 vendor/iana-time-zone/src/tz_ohos.rs delete mode 100644 vendor/iana-time-zone/src/tz_wasm32_unknown.rs delete mode 100644 vendor/iana-time-zone/src/tz_windows.rs delete mode 100644 vendor/iana-time-zone/src/windows_bindings.rs delete mode 100644 vendor/ident_case/.cargo-checksum.json delete mode 100644 vendor/ident_case/CHANGELOG.md delete mode 100644 vendor/ident_case/Cargo.toml delete mode 100644 vendor/ident_case/LICENSE delete mode 100644 vendor/ident_case/README.md delete mode 100644 vendor/ident_case/src/lib.rs delete mode 100644 vendor/indexmap-1.9.3/.cargo-checksum.json delete mode 100644 vendor/indexmap-1.9.3/Cargo.toml delete mode 100644 vendor/indexmap-1.9.3/LICENSE-APACHE delete mode 100644 vendor/indexmap-1.9.3/LICENSE-MIT delete mode 100644 vendor/indexmap-1.9.3/README.md delete mode 100644 vendor/indexmap-1.9.3/RELEASES.md delete mode 100644 vendor/indexmap-1.9.3/benches/bench.rs delete mode 100644 vendor/indexmap-1.9.3/benches/faststring.rs delete mode 100644 vendor/indexmap-1.9.3/build.rs delete mode 100644 vendor/indexmap-1.9.3/src/arbitrary.rs delete mode 100644 vendor/indexmap-1.9.3/src/equivalent.rs delete mode 100644 vendor/indexmap-1.9.3/src/lib.rs delete mode 100644 vendor/indexmap-1.9.3/src/macros.rs delete mode 100644 vendor/indexmap-1.9.3/src/map.rs delete mode 100644 vendor/indexmap-1.9.3/src/map/core.rs delete mode 100644 vendor/indexmap-1.9.3/src/map/core/raw.rs delete mode 100644 vendor/indexmap-1.9.3/src/mutable_keys.rs delete mode 100644 vendor/indexmap-1.9.3/src/rayon/map.rs delete mode 100644 vendor/indexmap-1.9.3/src/rayon/mod.rs delete mode 100644 vendor/indexmap-1.9.3/src/rayon/set.rs delete mode 100644 vendor/indexmap-1.9.3/src/rustc.rs delete mode 100644 vendor/indexmap-1.9.3/src/serde.rs delete mode 100644 vendor/indexmap-1.9.3/src/serde_seq.rs delete mode 100644 vendor/indexmap-1.9.3/src/set.rs delete mode 100644 vendor/indexmap-1.9.3/src/util.rs delete mode 100644 vendor/indexmap-1.9.3/tests/equivalent_trait.rs delete mode 100644 vendor/indexmap-1.9.3/tests/macros_full_path.rs delete mode 100644 vendor/indexmap-1.9.3/tests/quick.rs delete mode 100644 vendor/indexmap-1.9.3/tests/tests.rs delete mode 100644 vendor/keccak/.cargo-checksum.json delete mode 100644 vendor/keccak/CHANGELOG.md delete mode 100644 vendor/keccak/Cargo.toml delete mode 100644 vendor/keccak/LICENSE-APACHE delete mode 100644 vendor/keccak/LICENSE-MIT delete mode 100644 vendor/keccak/README.md delete mode 100644 vendor/keccak/benches/mod.rs delete mode 100644 vendor/keccak/src/armv8.rs delete mode 100644 vendor/keccak/src/lib.rs delete mode 100644 vendor/keccak/src/unroll.rs delete mode 100644 vendor/lalrpop-util/.cargo-checksum.json delete mode 100644 vendor/lalrpop-util/Cargo.lock delete mode 100644 vendor/lalrpop-util/Cargo.toml delete mode 100644 vendor/lalrpop-util/LICENSE-APACHE delete mode 100644 vendor/lalrpop-util/LICENSE-MIT delete mode 100644 vendor/lalrpop-util/README.md delete mode 100644 vendor/lalrpop-util/src/lexer.rs delete mode 100644 vendor/lalrpop-util/src/lib.rs delete mode 100644 vendor/lalrpop-util/src/state_machine.rs delete mode 100644 vendor/lalrpop/.cargo-checksum.json delete mode 100644 vendor/lalrpop/Cargo.lock delete mode 100644 vendor/lalrpop/Cargo.toml delete mode 100644 vendor/lalrpop/LICENSE-APACHE delete mode 100644 vendor/lalrpop/LICENSE-MIT delete mode 100644 vendor/lalrpop/README.md delete mode 100644 vendor/lalrpop/src/api/mod.rs delete mode 100644 vendor/lalrpop/src/build/action.rs delete mode 100644 vendor/lalrpop/src/build/fake_term.rs delete mode 100644 vendor/lalrpop/src/build/mod.rs delete mode 100644 vendor/lalrpop/src/collections/map.rs delete mode 100644 vendor/lalrpop/src/collections/mod.rs delete mode 100644 vendor/lalrpop/src/collections/multimap.rs delete mode 100644 vendor/lalrpop/src/collections/set.rs delete mode 100644 vendor/lalrpop/src/file_text.rs delete mode 100644 vendor/lalrpop/src/generate.rs delete mode 100644 vendor/lalrpop/src/grammar/consts.rs delete mode 100644 vendor/lalrpop/src/grammar/free_variables/mod.rs delete mode 100644 vendor/lalrpop/src/grammar/free_variables/test.rs delete mode 100644 vendor/lalrpop/src/grammar/mod.rs delete mode 100644 vendor/lalrpop/src/grammar/parse_tree.rs delete mode 100644 vendor/lalrpop/src/grammar/pattern.rs delete mode 100644 vendor/lalrpop/src/grammar/repr.rs delete mode 100644 vendor/lalrpop/src/grammar/token/mod.rs delete mode 100644 vendor/lalrpop/src/kernel_set.rs delete mode 100644 vendor/lalrpop/src/lexer/dfa/interpret.rs delete mode 100644 vendor/lalrpop/src/lexer/dfa/mod.rs delete mode 100644 vendor/lalrpop/src/lexer/dfa/overlap.rs delete mode 100644 vendor/lalrpop/src/lexer/dfa/test.rs delete mode 100644 vendor/lalrpop/src/lexer/intern_token/mod.rs delete mode 100644 vendor/lalrpop/src/lexer/mod.rs delete mode 100644 vendor/lalrpop/src/lexer/nfa/interpret.rs delete mode 100644 vendor/lalrpop/src/lexer/nfa/mod.rs delete mode 100644 vendor/lalrpop/src/lexer/nfa/test.rs delete mode 100644 vendor/lalrpop/src/lexer/re/mod.rs delete mode 100644 vendor/lalrpop/src/lexer/re/test.rs delete mode 100644 vendor/lalrpop/src/lib.rs delete mode 100644 vendor/lalrpop/src/log.rs delete mode 100644 vendor/lalrpop/src/lr1/build/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/build/test.rs delete mode 100644 vendor/lalrpop/src/lr1/build_lalr/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/build_lalr/test.rs delete mode 100644 vendor/lalrpop/src/lr1/codegen/ascent.rs delete mode 100644 vendor/lalrpop/src/lr1/codegen/base.rs delete mode 100644 vendor/lalrpop/src/lr1/codegen/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/codegen/parse_table.rs delete mode 100644 vendor/lalrpop/src/lr1/codegen/test_all.rs delete mode 100644 vendor/lalrpop/src/lr1/core/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/error/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/error/test.rs delete mode 100644 vendor/lalrpop/src/lr1/example/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/example/test.rs delete mode 100644 vendor/lalrpop/src/lr1/first/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/first/test.rs delete mode 100644 vendor/lalrpop/src/lr1/interpret.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/README.md delete mode 100644 vendor/lalrpop/src/lr1/lane_table/construct/merge.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/construct/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/construct/state_set.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/lane/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/table/context_set/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/table/context_set/test.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/table/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/lane_table/test.rs delete mode 100644 vendor/lalrpop/src/lr1/lookahead.rs delete mode 100644 vendor/lalrpop/src/lr1/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/report/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/report/test.rs delete mode 100644 vendor/lalrpop/src/lr1/state_graph.rs delete mode 100644 vendor/lalrpop/src/lr1/tls.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/reduce/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/reduce/test.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/shift/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/shift/test.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/trace_graph/mod.rs delete mode 100644 vendor/lalrpop/src/lr1/trace/trace_graph/test.rs delete mode 100644 vendor/lalrpop/src/main.rs delete mode 100644 vendor/lalrpop/src/message/builder.rs delete mode 100644 vendor/lalrpop/src/message/horiz.rs delete mode 100644 vendor/lalrpop/src/message/indent.rs delete mode 100644 vendor/lalrpop/src/message/message.rs delete mode 100644 vendor/lalrpop/src/message/mod.rs delete mode 100644 vendor/lalrpop/src/message/styled.rs delete mode 100644 vendor/lalrpop/src/message/test.rs delete mode 100644 vendor/lalrpop/src/message/text.rs delete mode 100644 vendor/lalrpop/src/message/vert.rs delete mode 100644 vendor/lalrpop/src/message/wrap.rs delete mode 100644 vendor/lalrpop/src/normalize/cond_comp/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/cond_comp/test.rs delete mode 100644 vendor/lalrpop/src/normalize/inline/graph/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/inline/graph/test.rs delete mode 100644 vendor/lalrpop/src/normalize/inline/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/inline/test.rs delete mode 100644 vendor/lalrpop/src/normalize/lower/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/macro_expand/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/macro_expand/test.rs delete mode 100644 vendor/lalrpop/src/normalize/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/norm_util.rs delete mode 100644 vendor/lalrpop/src/normalize/precedence/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/precedence/test.rs delete mode 100644 vendor/lalrpop/src/normalize/prevalidate/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/prevalidate/test.rs delete mode 100644 vendor/lalrpop/src/normalize/resolve/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/resolve/test.rs delete mode 100644 vendor/lalrpop/src/normalize/token_check/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/token_check/test.rs delete mode 100644 vendor/lalrpop/src/normalize/tyinfer/mod.rs delete mode 100644 vendor/lalrpop/src/normalize/tyinfer/test.rs delete mode 100644 vendor/lalrpop/src/parser/lrgrammar.lalrpop delete mode 100644 vendor/lalrpop/src/parser/lrgrammar.rs delete mode 100644 vendor/lalrpop/src/parser/mod.rs delete mode 100644 vendor/lalrpop/src/parser/test.rs delete mode 100644 vendor/lalrpop/src/rust/mod.rs delete mode 100644 vendor/lalrpop/src/session.rs delete mode 100644 vendor/lalrpop/src/test_util.rs delete mode 100644 vendor/lalrpop/src/tls/mod.rs delete mode 100644 vendor/lalrpop/src/tok/mod.rs delete mode 100644 vendor/lalrpop/src/tok/test.rs delete mode 100644 vendor/lalrpop/src/util.rs delete mode 100644 vendor/lock_api/.cargo-checksum.json delete mode 100644 vendor/lock_api/Cargo.lock delete mode 100644 vendor/lock_api/Cargo.toml delete mode 100644 vendor/lock_api/LICENSE-APACHE delete mode 100644 vendor/lock_api/LICENSE-MIT delete mode 100644 vendor/lock_api/build.rs delete mode 100644 vendor/lock_api/src/lib.rs delete mode 100644 vendor/lock_api/src/mutex.rs delete mode 100644 vendor/lock_api/src/remutex.rs delete mode 100644 vendor/lock_api/src/rwlock.rs delete mode 100644 vendor/logos-codegen/.cargo-checksum.json delete mode 100644 vendor/logos-codegen/Cargo.toml delete mode 100644 vendor/logos-codegen/LICENSE-APACHE delete mode 100644 vendor/logos-codegen/LICENSE-MIT delete mode 100644 vendor/logos-codegen/README.md delete mode 100644 vendor/logos-codegen/build.rs delete mode 100644 vendor/logos-codegen/src/error.rs delete mode 100644 vendor/logos-codegen/src/generator/context.rs delete mode 100644 vendor/logos-codegen/src/generator/fork.rs delete mode 100644 vendor/logos-codegen/src/generator/leaf.rs delete mode 100644 vendor/logos-codegen/src/generator/mod.rs delete mode 100644 vendor/logos-codegen/src/generator/rope.rs delete mode 100644 vendor/logos-codegen/src/generator/tables.rs delete mode 100644 vendor/logos-codegen/src/graph/fork.rs delete mode 100644 vendor/logos-codegen/src/graph/impls.rs delete mode 100644 vendor/logos-codegen/src/graph/meta.rs delete mode 100644 vendor/logos-codegen/src/graph/mod.rs delete mode 100644 vendor/logos-codegen/src/graph/range.rs delete mode 100644 vendor/logos-codegen/src/graph/regex.rs delete mode 100644 vendor/logos-codegen/src/graph/rope.rs delete mode 100644 vendor/logos-codegen/src/leaf.rs delete mode 100644 vendor/logos-codegen/src/lib.rs delete mode 100644 vendor/logos-codegen/src/macros.rs delete mode 100644 vendor/logos-codegen/src/mir.rs delete mode 100644 vendor/logos-codegen/src/parser/definition.rs delete mode 100644 vendor/logos-codegen/src/parser/ignore_flags.rs delete mode 100644 vendor/logos-codegen/src/parser/mod.rs delete mode 100644 vendor/logos-codegen/src/parser/nested.rs delete mode 100644 vendor/logos-codegen/src/parser/subpattern.rs delete mode 100644 vendor/logos-codegen/src/parser/type_params.rs delete mode 100644 vendor/logos-codegen/src/util.rs delete mode 100644 vendor/logos-codegen/tests/codegen.rs delete mode 100644 vendor/logos-codegen/tests/data/no_error_lut/input.rs delete mode 100644 vendor/logos-codegen/tests/data/no_error_lut/output.rs delete mode 100644 vendor/logos-codegen/tests/data/simple/input.rs delete mode 100644 vendor/logos-codegen/tests/data/simple/output.rs delete mode 100644 vendor/logos-derive/.cargo-checksum.json delete mode 100644 vendor/logos-derive/Cargo.toml delete mode 100644 vendor/logos-derive/LICENSE-APACHE delete mode 100644 vendor/logos-derive/LICENSE-MIT delete mode 100644 vendor/logos-derive/README.md delete mode 100644 vendor/logos-derive/src/lib.rs delete mode 100644 vendor/logos/.cargo-checksum.json delete mode 100644 vendor/logos/Cargo.lock delete mode 100644 vendor/logos/Cargo.toml delete mode 100644 vendor/logos/LICENSE-APACHE delete mode 100644 vendor/logos/LICENSE-MIT delete mode 100644 vendor/logos/README.md delete mode 100644 vendor/logos/RELEASE-PROCESS.md delete mode 100644 vendor/logos/book/book.toml delete mode 100644 vendor/logos/book/mdbook-admonish.css delete mode 100644 vendor/logos/book/src/SUMMARY.md delete mode 100644 vendor/logos/book/src/assets/calculator_example_flow.png delete mode 100644 vendor/logos/book/src/assets/calculator_example_how_evaluator_works.png delete mode 100644 vendor/logos/book/src/attributes.md delete mode 100644 vendor/logos/book/src/attributes/logos.md delete mode 100644 vendor/logos/book/src/attributes/token_and_regex.md delete mode 100644 vendor/logos/book/src/callbacks.md delete mode 100644 vendor/logos/book/src/common-regex.md delete mode 100644 vendor/logos/book/src/contributing.md delete mode 100644 vendor/logos/book/src/contributing/fuzzing.md delete mode 100644 vendor/logos/book/src/contributing/internals.md delete mode 100644 vendor/logos/book/src/contributing/setup.md delete mode 100644 vendor/logos/book/src/debugging.md delete mode 100644 vendor/logos/book/src/examples.md delete mode 100644 vendor/logos/book/src/examples/brainfuck.md delete mode 100644 vendor/logos/book/src/examples/calculator.md delete mode 100644 vendor/logos/book/src/examples/json.md delete mode 100644 vendor/logos/book/src/examples/json_borrowed.md delete mode 100644 vendor/logos/book/src/extras.md delete mode 100644 vendor/logos/book/src/getting-help.md delete mode 100644 vendor/logos/book/src/getting-started.md delete mode 100644 vendor/logos/book/src/intro.md delete mode 100644 vendor/logos/book/src/token-disambiguation.md delete mode 100644 vendor/logos/book/src/unsafe.md delete mode 100644 vendor/logos/examples/brainfuck.rs delete mode 100644 vendor/logos/examples/calculator.rs delete mode 100644 vendor/logos/examples/custom_error.rs delete mode 100644 vendor/logos/examples/example.json delete mode 100644 vendor/logos/examples/extras.rs delete mode 100644 vendor/logos/examples/hello_world.bf delete mode 100644 vendor/logos/examples/json.rs delete mode 100644 vendor/logos/examples/json_borrowed.rs delete mode 100644 vendor/logos/logos.png delete mode 100644 vendor/logos/logos.svg delete mode 100644 vendor/logos/release.toml delete mode 100644 vendor/logos/src/internal.rs delete mode 100644 vendor/logos/src/lexer.rs delete mode 100644 vendor/logos/src/lib.rs delete mode 100644 vendor/logos/src/source.rs delete mode 100644 vendor/miette-derive/.cargo-checksum.json delete mode 100644 vendor/miette-derive/Cargo.lock delete mode 100644 vendor/miette-derive/Cargo.toml delete mode 100644 vendor/miette-derive/LICENSE delete mode 100644 vendor/miette-derive/src/code.rs delete mode 100644 vendor/miette-derive/src/diagnostic.rs delete mode 100644 vendor/miette-derive/src/diagnostic_arg.rs delete mode 100644 vendor/miette-derive/src/diagnostic_source.rs delete mode 100644 vendor/miette-derive/src/fmt.rs delete mode 100644 vendor/miette-derive/src/forward.rs delete mode 100644 vendor/miette-derive/src/help.rs delete mode 100644 vendor/miette-derive/src/label.rs delete mode 100644 vendor/miette-derive/src/lib.rs delete mode 100644 vendor/miette-derive/src/related.rs delete mode 100644 vendor/miette-derive/src/severity.rs delete mode 100644 vendor/miette-derive/src/source_code.rs delete mode 100644 vendor/miette-derive/src/url.rs delete mode 100644 vendor/miette-derive/src/utils.rs delete mode 100644 vendor/miette/.cargo-checksum.json delete mode 100644 vendor/miette/CHANGELOG.md delete mode 100644 vendor/miette/CODE_OF_CONDUCT.md delete mode 100644 vendor/miette/CONTRIBUTING.md delete mode 100644 vendor/miette/Cargo.lock delete mode 100644 vendor/miette/Cargo.toml delete mode 100644 vendor/miette/LICENSE delete mode 100644 vendor/miette/Makefile.toml delete mode 100644 vendor/miette/README.md delete mode 100644 vendor/miette/README.tpl delete mode 100644 vendor/miette/cliff.toml delete mode 100644 vendor/miette/clippy.toml delete mode 100644 vendor/miette/examples/serde_json.rs delete mode 100644 vendor/miette/rustfmt.toml delete mode 100644 vendor/miette/src/chain.rs delete mode 100644 vendor/miette/src/diagnostic_chain.rs delete mode 100644 vendor/miette/src/diagnostic_impls.rs delete mode 100644 vendor/miette/src/error.rs delete mode 100644 vendor/miette/src/eyreish/context.rs delete mode 100644 vendor/miette/src/eyreish/error.rs delete mode 100644 vendor/miette/src/eyreish/fmt.rs delete mode 100644 vendor/miette/src/eyreish/into_diagnostic.rs delete mode 100644 vendor/miette/src/eyreish/kind.rs delete mode 100644 vendor/miette/src/eyreish/macros.rs delete mode 100644 vendor/miette/src/eyreish/mod.rs delete mode 100644 vendor/miette/src/eyreish/ptr.rs delete mode 100644 vendor/miette/src/eyreish/wrapper.rs delete mode 100644 vendor/miette/src/handler.rs delete mode 100644 vendor/miette/src/handlers/debug.rs delete mode 100644 vendor/miette/src/handlers/graphical.rs delete mode 100644 vendor/miette/src/handlers/json.rs delete mode 100644 vendor/miette/src/handlers/mod.rs delete mode 100644 vendor/miette/src/handlers/narratable.rs delete mode 100644 vendor/miette/src/handlers/theme.rs delete mode 100644 vendor/miette/src/highlighters/blank.rs delete mode 100644 vendor/miette/src/highlighters/mod.rs delete mode 100644 vendor/miette/src/highlighters/syntect.rs delete mode 100644 vendor/miette/src/lib.rs delete mode 100644 vendor/miette/src/macro_helpers.rs delete mode 100644 vendor/miette/src/miette_diagnostic.rs delete mode 100644 vendor/miette/src/named_source.rs delete mode 100644 vendor/miette/src/panic.rs delete mode 100644 vendor/miette/src/protocol.rs delete mode 100644 vendor/miette/src/source_impls.rs delete mode 100644 vendor/new_debug_unreachable/.cargo-checksum.json delete mode 100644 vendor/new_debug_unreachable/Cargo.lock delete mode 100644 vendor/new_debug_unreachable/Cargo.toml delete mode 100644 vendor/new_debug_unreachable/LICENSE-MIT delete mode 100644 vendor/new_debug_unreachable/README.md delete mode 100644 vendor/new_debug_unreachable/examples/simple.rs delete mode 100644 vendor/new_debug_unreachable/src/lib.rs delete mode 100644 vendor/new_debug_unreachable/tests/check.rs delete mode 100644 vendor/nonempty/.cargo-checksum.json delete mode 100644 vendor/nonempty/Cargo.toml delete mode 100644 vendor/nonempty/LICENSE delete mode 100644 vendor/nonempty/README.md delete mode 100644 vendor/nonempty/deny.toml delete mode 100644 vendor/nonempty/flake.lock delete mode 100644 vendor/nonempty/flake.nix delete mode 100644 vendor/nonempty/src/lib.rs delete mode 100644 vendor/nonempty/src/nonzero.rs delete mode 100644 vendor/num-conv/.cargo-checksum.json delete mode 100644 vendor/num-conv/Cargo.toml delete mode 100644 vendor/num-conv/LICENSE-Apache delete mode 100644 vendor/num-conv/LICENSE-MIT delete mode 100644 vendor/num-conv/src/lib.rs delete mode 100644 vendor/num-traits/.cargo-checksum.json delete mode 100644 vendor/num-traits/Cargo.toml delete mode 100644 vendor/num-traits/LICENSE-APACHE delete mode 100644 vendor/num-traits/LICENSE-MIT delete mode 100644 vendor/num-traits/README.md delete mode 100644 vendor/num-traits/RELEASES.md delete mode 100644 vendor/num-traits/build.rs delete mode 100644 vendor/num-traits/src/bounds.rs delete mode 100644 vendor/num-traits/src/cast.rs delete mode 100644 vendor/num-traits/src/float.rs delete mode 100644 vendor/num-traits/src/identities.rs delete mode 100644 vendor/num-traits/src/int.rs delete mode 100644 vendor/num-traits/src/lib.rs delete mode 100644 vendor/num-traits/src/macros.rs delete mode 100644 vendor/num-traits/src/ops/bytes.rs delete mode 100644 vendor/num-traits/src/ops/checked.rs delete mode 100644 vendor/num-traits/src/ops/euclid.rs delete mode 100644 vendor/num-traits/src/ops/inv.rs delete mode 100644 vendor/num-traits/src/ops/mod.rs delete mode 100644 vendor/num-traits/src/ops/mul_add.rs delete mode 100644 vendor/num-traits/src/ops/overflowing.rs delete mode 100644 vendor/num-traits/src/ops/saturating.rs delete mode 100644 vendor/num-traits/src/ops/wrapping.rs delete mode 100644 vendor/num-traits/src/pow.rs delete mode 100644 vendor/num-traits/src/real.rs delete mode 100644 vendor/num-traits/src/sign.rs delete mode 100644 vendor/num-traits/tests/cast.rs delete mode 100644 vendor/parking_lot/.cargo-checksum.json delete mode 100644 vendor/parking_lot/CHANGELOG.md delete mode 100644 vendor/parking_lot/Cargo.lock delete mode 100644 vendor/parking_lot/Cargo.toml delete mode 100644 vendor/parking_lot/LICENSE-APACHE delete mode 100644 vendor/parking_lot/LICENSE-MIT delete mode 100644 vendor/parking_lot/README.md delete mode 100644 vendor/parking_lot/bors.toml delete mode 100644 vendor/parking_lot/release-plz.toml delete mode 100644 vendor/parking_lot/src/condvar.rs delete mode 100644 vendor/parking_lot/src/deadlock.rs delete mode 100644 vendor/parking_lot/src/elision.rs delete mode 100644 vendor/parking_lot/src/fair_mutex.rs delete mode 100644 vendor/parking_lot/src/lib.rs delete mode 100644 vendor/parking_lot/src/mutex.rs delete mode 100644 vendor/parking_lot/src/once.rs delete mode 100644 vendor/parking_lot/src/raw_fair_mutex.rs delete mode 100644 vendor/parking_lot/src/raw_mutex.rs delete mode 100644 vendor/parking_lot/src/raw_rwlock.rs delete mode 100644 vendor/parking_lot/src/remutex.rs delete mode 100644 vendor/parking_lot/src/rwlock.rs delete mode 100644 vendor/parking_lot/src/util.rs delete mode 100644 vendor/parking_lot/tests/issue_203.rs delete mode 100644 vendor/parking_lot/tests/issue_392.rs delete mode 100644 vendor/parking_lot_core/.cargo-checksum.json delete mode 100644 vendor/parking_lot_core/Cargo.lock delete mode 100644 vendor/parking_lot_core/Cargo.toml delete mode 100644 vendor/parking_lot_core/LICENSE-APACHE delete mode 100644 vendor/parking_lot_core/LICENSE-MIT delete mode 100644 vendor/parking_lot_core/build.rs delete mode 100644 vendor/parking_lot_core/src/lib.rs delete mode 100644 vendor/parking_lot_core/src/parking_lot.rs delete mode 100644 vendor/parking_lot_core/src/spinwait.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/generic.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/linux.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/mod.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/redox.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/sgx.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/unix.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/wasm.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/wasm_atomic.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/windows/bindings.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/windows/keyed_event.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/windows/mod.rs delete mode 100644 vendor/parking_lot_core/src/thread_parker/windows/waitaddress.rs delete mode 100644 vendor/parking_lot_core/src/util.rs delete mode 100644 vendor/parking_lot_core/src/word_lock.rs delete mode 100644 vendor/phf_shared/.cargo-checksum.json delete mode 100644 vendor/phf_shared/CHANGELOG.md delete mode 100644 vendor/phf_shared/Cargo.lock delete mode 100644 vendor/phf_shared/Cargo.toml delete mode 100644 vendor/phf_shared/LICENSE delete mode 100644 vendor/phf_shared/README.md delete mode 100644 vendor/phf_shared/src/lib.rs delete mode 100644 vendor/pico-args/.cargo-checksum.json delete mode 100644 vendor/pico-args/CHANGELOG.md delete mode 100644 vendor/pico-args/Cargo.lock delete mode 100644 vendor/pico-args/Cargo.toml delete mode 100644 vendor/pico-args/LICENSE delete mode 100644 vendor/pico-args/README.md delete mode 100644 vendor/pico-args/examples/app.rs delete mode 100644 vendor/pico-args/examples/dash_dash.rs delete mode 100644 vendor/pico-args/src/lib.rs delete mode 100644 vendor/pico-args/tests/tests.rs delete mode 100644 vendor/powerfmt/.cargo-checksum.json delete mode 100644 vendor/powerfmt/Cargo.toml delete mode 100644 vendor/powerfmt/LICENSE-Apache delete mode 100644 vendor/powerfmt/LICENSE-MIT delete mode 100644 vendor/powerfmt/README.md delete mode 100644 vendor/powerfmt/src/buf.rs delete mode 100644 vendor/powerfmt/src/ext.rs delete mode 100644 vendor/powerfmt/src/lib.rs delete mode 100644 vendor/powerfmt/src/smart_display.rs delete mode 100644 vendor/powerfmt/src/smart_display_impls.rs delete mode 100644 vendor/precomputed-hash/.cargo-checksum.json delete mode 100644 vendor/precomputed-hash/Cargo.toml delete mode 100644 vendor/precomputed-hash/LICENSE delete mode 100644 vendor/precomputed-hash/src/lib.rs delete mode 100644 vendor/pretty/.cargo-checksum.json delete mode 100644 vendor/pretty/CHANGELOG.md delete mode 100644 vendor/pretty/Cargo.lock delete mode 100644 vendor/pretty/Cargo.toml delete mode 100644 vendor/pretty/LICENSE delete mode 100644 vendor/pretty/README.md delete mode 100644 vendor/pretty/benches/trees.rs delete mode 100644 vendor/pretty/examples/colored.rs delete mode 100644 vendor/pretty/examples/trees.rs delete mode 100755 vendor/pretty/release.sh delete mode 100644 vendor/pretty/src/block.rs delete mode 100644 vendor/pretty/src/lib.rs delete mode 100644 vendor/pretty/src/render.rs delete mode 100644 vendor/psm/.cargo-checksum.json delete mode 100644 vendor/psm/Cargo.lock delete mode 100644 vendor/psm/Cargo.toml delete mode 100644 vendor/psm/LICENSE-APACHE delete mode 100644 vendor/psm/LICENSE-MIT delete mode 100644 vendor/psm/README.mkd delete mode 100644 vendor/psm/build.rs delete mode 100644 vendor/psm/examples/info.rs delete mode 100644 vendor/psm/examples/on_stack_fibo.rs delete mode 100644 vendor/psm/examples/on_stack_fibo_alloc_each_frame.rs delete mode 100644 vendor/psm/examples/panics.rs delete mode 100644 vendor/psm/examples/replace_stack_1.rs delete mode 100644 vendor/psm/examples/thread.rs delete mode 100644 vendor/psm/src/arch/aarch64_armasm.asm delete mode 100644 vendor/psm/src/arch/aarch_aapcs64.s delete mode 100644 vendor/psm/src/arch/arm_aapcs.s delete mode 100644 vendor/psm/src/arch/arm_armasm.asm delete mode 100644 vendor/psm/src/arch/loongarch64.s delete mode 100644 vendor/psm/src/arch/mips64_eabi.s delete mode 100644 vendor/psm/src/arch/mips_eabi.s delete mode 100644 vendor/psm/src/arch/powerpc32.s delete mode 100644 vendor/psm/src/arch/powerpc64.s delete mode 100644 vendor/psm/src/arch/powerpc64_aix.s delete mode 100644 vendor/psm/src/arch/powerpc64_openpower.s delete mode 100644 vendor/psm/src/arch/psm.h delete mode 100644 vendor/psm/src/arch/riscv.s delete mode 100644 vendor/psm/src/arch/riscv64.s delete mode 100644 vendor/psm/src/arch/sparc64.s delete mode 100644 vendor/psm/src/arch/sparc_sysv.s delete mode 100644 vendor/psm/src/arch/wasm32.o delete mode 100644 vendor/psm/src/arch/wasm32.s delete mode 100644 vendor/psm/src/arch/x86.s delete mode 100644 vendor/psm/src/arch/x86_64.s delete mode 100644 vendor/psm/src/arch/x86_64_msvc.asm delete mode 100644 vendor/psm/src/arch/x86_64_windows_gnu.s delete mode 100644 vendor/psm/src/arch/x86_msvc.asm delete mode 100644 vendor/psm/src/arch/x86_windows_gnu.s delete mode 100644 vendor/psm/src/arch/zseries_linux.s delete mode 100644 vendor/psm/src/lib.rs delete mode 100644 vendor/psm/tests/stack_direction.rs delete mode 100644 vendor/psm/tests/stack_direction_2.rs delete mode 100644 vendor/redox_syscall/.cargo-checksum.json delete mode 100644 vendor/redox_syscall/Cargo.lock delete mode 100644 vendor/redox_syscall/Cargo.toml delete mode 100644 vendor/redox_syscall/LICENSE delete mode 100644 vendor/redox_syscall/README.md delete mode 100644 vendor/redox_syscall/src/arch/aarch64.rs delete mode 100644 vendor/redox_syscall/src/arch/riscv64.rs delete mode 100644 vendor/redox_syscall/src/arch/x86.rs delete mode 100644 vendor/redox_syscall/src/arch/x86_64.rs delete mode 100644 vendor/redox_syscall/src/call.rs delete mode 100644 vendor/redox_syscall/src/data.rs delete mode 100644 vendor/redox_syscall/src/dirent.rs delete mode 100644 vendor/redox_syscall/src/error.rs delete mode 100644 vendor/redox_syscall/src/flag.rs delete mode 100644 vendor/redox_syscall/src/io/io.rs delete mode 100644 vendor/redox_syscall/src/io/mmio.rs delete mode 100644 vendor/redox_syscall/src/io/mod.rs delete mode 100644 vendor/redox_syscall/src/io/pio.rs delete mode 100644 vendor/redox_syscall/src/lib.rs delete mode 100644 vendor/redox_syscall/src/number.rs delete mode 100755 vendor/redox_syscall/src/scheme/generate.sh delete mode 100644 vendor/redox_syscall/src/scheme/mod.rs delete mode 100644 vendor/redox_syscall/src/scheme/scheme.rs delete mode 100644 vendor/redox_syscall/src/scheme/scheme_block.rs delete mode 100644 vendor/redox_syscall/src/scheme/scheme_block_mut.rs delete mode 100644 vendor/redox_syscall/src/scheme/scheme_mut.rs delete mode 100644 vendor/redox_syscall/src/scheme/seek.rs delete mode 100644 vendor/redox_syscall/src/schemev2.rs delete mode 100644 vendor/redox_syscall/src/sigabi.rs delete mode 100644 vendor/ref-cast-impl/.cargo-checksum.json delete mode 100644 vendor/ref-cast-impl/Cargo.lock delete mode 100644 vendor/ref-cast-impl/Cargo.toml delete mode 100644 vendor/ref-cast-impl/LICENSE-APACHE delete mode 100644 vendor/ref-cast-impl/LICENSE-MIT delete mode 100644 vendor/ref-cast-impl/src/lib.rs delete mode 100644 vendor/ref-cast/.cargo-checksum.json delete mode 100644 vendor/ref-cast/Cargo.lock delete mode 100644 vendor/ref-cast/Cargo.toml delete mode 100644 vendor/ref-cast/LICENSE-APACHE delete mode 100644 vendor/ref-cast/LICENSE-MIT delete mode 100644 vendor/ref-cast/README.md delete mode 100644 vendor/ref-cast/build.rs delete mode 100644 vendor/ref-cast/src/custom.rs delete mode 100644 vendor/ref-cast/src/layout.rs delete mode 100644 vendor/ref-cast/src/lib.rs delete mode 100644 vendor/ref-cast/src/trivial.rs delete mode 100644 vendor/ref-cast/tests/compiletest.rs delete mode 100644 vendor/ref-cast/tests/test_custom.rs delete mode 100644 vendor/ref-cast/tests/test_trivial.rs delete mode 100644 vendor/ref-cast/tests/ui/cross-crate.rs delete mode 100644 vendor/ref-cast/tests/ui/cross-crate.stderr delete mode 100644 vendor/ref-cast/tests/ui/dst-before-trivial.rs delete mode 100644 vendor/ref-cast/tests/ui/dst-before-trivial.stderr delete mode 100644 vendor/ref-cast/tests/ui/extra-arg.rs delete mode 100644 vendor/ref-cast/tests/ui/extra-arg.stderr delete mode 100644 vendor/ref-cast/tests/ui/function-body.rs delete mode 100644 vendor/ref-cast/tests/ui/function-body.stderr delete mode 100644 vendor/ref-cast/tests/ui/impl-trait.rs delete mode 100644 vendor/ref-cast/tests/ui/impl-trait.stderr delete mode 100644 vendor/ref-cast/tests/ui/no-custom.rs delete mode 100644 vendor/ref-cast/tests/ui/no-custom.stderr delete mode 100644 vendor/ref-cast/tests/ui/no-repr.rs delete mode 100644 vendor/ref-cast/tests/ui/no-repr.stderr delete mode 100644 vendor/ref-cast/tests/ui/not-trivial.rs delete mode 100644 vendor/ref-cast/tests/ui/not-trivial.stderr delete mode 100644 vendor/ref-cast/tests/ui/private.rs delete mode 100644 vendor/ref-cast/tests/ui/private.stderr delete mode 100644 vendor/ref-cast/tests/ui/repr-align.rs delete mode 100644 vendor/ref-cast/tests/ui/repr-align.stderr delete mode 100644 vendor/ref-cast/tests/ui/short-lifetime.rs delete mode 100644 vendor/ref-cast/tests/ui/short-lifetime.stderr delete mode 100644 vendor/ref-cast/tests/ui/unrecognized-repr.rs delete mode 100644 vendor/ref-cast/tests/ui/unrecognized-repr.stderr delete mode 100644 vendor/rustc_lexer/.cargo-checksum.json delete mode 100644 vendor/rustc_lexer/Cargo.toml delete mode 100644 vendor/rustc_lexer/src/cursor.rs delete mode 100644 vendor/rustc_lexer/src/lib.rs delete mode 100644 vendor/rustc_lexer/src/unescape.rs delete mode 100644 vendor/rustc_lexer/src/unescape/tests.rs delete mode 100644 vendor/rustc_version/.cargo-checksum.json delete mode 100644 vendor/rustc_version/Cargo.toml delete mode 100644 vendor/rustc_version/LICENSE-APACHE delete mode 100644 vendor/rustc_version/LICENSE-MIT delete mode 100644 vendor/rustc_version/README.md delete mode 100644 vendor/rustc_version/deny.toml delete mode 100644 vendor/rustc_version/src/lib.rs delete mode 100644 vendor/rustc_version/tests/all.rs delete mode 100644 vendor/same-file/.cargo-checksum.json delete mode 100644 vendor/same-file/COPYING delete mode 100644 vendor/same-file/Cargo.lock delete mode 100644 vendor/same-file/Cargo.toml delete mode 100644 vendor/same-file/LICENSE-MIT delete mode 100644 vendor/same-file/README.md delete mode 100644 vendor/same-file/UNLICENSE delete mode 100644 vendor/same-file/examples/is_same_file.rs delete mode 100644 vendor/same-file/examples/is_stderr.rs delete mode 100644 vendor/same-file/rustfmt.toml delete mode 100644 vendor/same-file/src/lib.rs delete mode 100644 vendor/same-file/src/unix.rs delete mode 100644 vendor/same-file/src/unknown.rs delete mode 100644 vendor/same-file/src/win.rs delete mode 100644 vendor/schemars/.cargo-checksum.json delete mode 100644 vendor/schemars/Cargo.lock delete mode 100644 vendor/schemars/Cargo.toml delete mode 100644 vendor/schemars/LICENSE delete mode 100644 vendor/schemars/README.md delete mode 100644 vendor/schemars/docs-rs-custom.css delete mode 100644 vendor/schemars/examples/custom_serialization.rs delete mode 100644 vendor/schemars/examples/custom_serialization.schema.json delete mode 100644 vendor/schemars/examples/custom_settings.rs delete mode 100644 vendor/schemars/examples/custom_settings.schema.json delete mode 100644 vendor/schemars/examples/doc_comments.rs delete mode 100644 vendor/schemars/examples/doc_comments.schema.json delete mode 100644 vendor/schemars/examples/enum_repr.rs delete mode 100644 vendor/schemars/examples/enum_repr.schema.json delete mode 100644 vendor/schemars/examples/from_value.rs delete mode 100644 vendor/schemars/examples/from_value.schema.json delete mode 100644 vendor/schemars/examples/main.rs delete mode 100644 vendor/schemars/examples/main.schema.json delete mode 100644 vendor/schemars/examples/remote_derive.rs delete mode 100644 vendor/schemars/examples/remote_derive.schema.json delete mode 100644 vendor/schemars/examples/schemars_attrs.rs delete mode 100644 vendor/schemars/examples/schemars_attrs.schema.json delete mode 100644 vendor/schemars/examples/serde_attrs.rs delete mode 100644 vendor/schemars/examples/serde_attrs.schema.json delete mode 100644 vendor/schemars/examples/serialize_contract.rs delete mode 100644 vendor/schemars/examples/serialize_contract.schema.json delete mode 100644 vendor/schemars/examples/validate.rs delete mode 100644 vendor/schemars/examples/validate.schema.json delete mode 100644 vendor/schemars/src/_private/mod.rs delete mode 100644 vendor/schemars/src/_private/regex_syntax.rs delete mode 100644 vendor/schemars/src/_private/rustdoc.rs delete mode 100644 vendor/schemars/src/consts.rs delete mode 100644 vendor/schemars/src/generate.rs delete mode 100644 vendor/schemars/src/json_schema_impls/array.rs delete mode 100644 vendor/schemars/src/json_schema_impls/arrayvec07.rs delete mode 100644 vendor/schemars/src/json_schema_impls/atomic.rs delete mode 100644 vendor/schemars/src/json_schema_impls/bytes1.rs delete mode 100644 vendor/schemars/src/json_schema_impls/chrono04.rs delete mode 100644 vendor/schemars/src/json_schema_impls/core.rs delete mode 100644 vendor/schemars/src/json_schema_impls/decimal.rs delete mode 100644 vendor/schemars/src/json_schema_impls/either1.rs delete mode 100644 vendor/schemars/src/json_schema_impls/ffi.rs delete mode 100644 vendor/schemars/src/json_schema_impls/indexmap2.rs delete mode 100644 vendor/schemars/src/json_schema_impls/jiff02.rs delete mode 100644 vendor/schemars/src/json_schema_impls/maps.rs delete mode 100644 vendor/schemars/src/json_schema_impls/mod.rs delete mode 100644 vendor/schemars/src/json_schema_impls/nonzero.rs delete mode 100644 vendor/schemars/src/json_schema_impls/primitives.rs delete mode 100644 vendor/schemars/src/json_schema_impls/semver1.rs delete mode 100644 vendor/schemars/src/json_schema_impls/sequences.rs delete mode 100644 vendor/schemars/src/json_schema_impls/serdejson.rs delete mode 100644 vendor/schemars/src/json_schema_impls/std_time.rs delete mode 100644 vendor/schemars/src/json_schema_impls/tuple.rs delete mode 100644 vendor/schemars/src/json_schema_impls/url2.rs delete mode 100644 vendor/schemars/src/json_schema_impls/uuid1.rs delete mode 100644 vendor/schemars/src/json_schema_impls/wrapper.rs delete mode 100644 vendor/schemars/src/lib.rs delete mode 100644 vendor/schemars/src/macros.rs delete mode 100644 vendor/schemars/src/schema.rs delete mode 100644 vendor/schemars/src/ser.rs delete mode 100644 vendor/schemars/src/transform.rs delete mode 100644 vendor/schemars/tests/integration/arrayvec.rs delete mode 100644 vendor/schemars/tests/integration/bound.rs delete mode 100644 vendor/schemars/tests/integration/bytes.rs delete mode 100644 vendor/schemars/tests/integration/chrono.rs delete mode 100644 vendor/schemars/tests/integration/contract.rs delete mode 100644 vendor/schemars/tests/integration/crate_alias.rs delete mode 100644 vendor/schemars/tests/integration/decimal.rs delete mode 100644 vendor/schemars/tests/integration/default.rs delete mode 100644 vendor/schemars/tests/integration/deprecated.rs delete mode 100644 vendor/schemars/tests/integration/docs.rs delete mode 100644 vendor/schemars/tests/integration/either.rs delete mode 100644 vendor/schemars/tests/integration/enum_repr.rs delete mode 100644 vendor/schemars/tests/integration/enums.rs delete mode 100644 vendor/schemars/tests/integration/enums_deny_unknown_fields.rs delete mode 100644 vendor/schemars/tests/integration/enums_flattened.rs delete mode 100644 vendor/schemars/tests/integration/examples.rs delete mode 100644 vendor/schemars/tests/integration/extend.rs delete mode 100644 vendor/schemars/tests/integration/flatten.rs delete mode 100644 vendor/schemars/tests/integration/from_value.rs delete mode 100644 vendor/schemars/tests/integration/garde.rs delete mode 100644 vendor/schemars/tests/integration/indexmap.rs delete mode 100644 vendor/schemars/tests/integration/inline_subschemas.rs delete mode 100644 vendor/schemars/tests/integration/jiff.rs delete mode 100644 vendor/schemars/tests/integration/macros.rs delete mode 100644 vendor/schemars/tests/integration/main.rs delete mode 100644 vendor/schemars/tests/integration/remote_derive.rs delete mode 100644 vendor/schemars/tests/integration/same_name.rs delete mode 100644 vendor/schemars/tests/integration/schema_name.rs delete mode 100644 vendor/schemars/tests/integration/schema_with.rs delete mode 100644 vendor/schemars/tests/integration/semver.rs delete mode 100644 vendor/schemars/tests/integration/settings.rs delete mode 100644 vendor/schemars/tests/integration/skip.rs delete mode 100644 vendor/schemars/tests/integration/smallvec.rs delete mode 100644 vendor/schemars/tests/integration/smol_str.rs delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/arrayvec.rs~arrayvec07.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/bound.rs~manual_bound_set.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/bytes.rs~bytes.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/bytes.rs~bytes.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/chrono.rs~chrono.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~adjacently_tagged_enum.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~adjacently_tagged_enum.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~externally_tagged_enum.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~externally_tagged_enum.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~internally_tagged_enum.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~internally_tagged_enum.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~struct_allow_unknown_fields.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~struct_allow_unknown_fields.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~struct_deny_unknown_fields.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~struct_deny_unknown_fields.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~tuple_struct.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~tuple_struct.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~untagged_enum.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/contract.rs~untagged_enum.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/decimal.rs~decimal_types.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/decimal.rs~decimal_types.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/default.rs~default_fields.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/default.rs~default_fields.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/deprecated.rs~deprecated_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/deprecated.rs~deprecated_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/docs.rs~doc_comments_enum.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/docs.rs~doc_comments_enum.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/docs.rs~doc_comments_override.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/docs.rs~doc_comments_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/either.rs~either.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enum_repr.rs~enum_repr.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~adjacently_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~externally_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~internally_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~no_variants.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~renamed.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~unit_variants_with_doc_comments.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums.rs~untagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_deny_unknown_fields.rs~adjacently_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_deny_unknown_fields.rs~externally_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_deny_unknown_fields.rs~internally_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_deny_unknown_fields.rs~untagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_flattened.rs~enums_flattened.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_flattened.rs~enums_flattened_deny_unknown_fields.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/enums_flattened.rs~enums_flattened_deny_unknown_fields_draft07.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/examples.rs~examples.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/examples.rs~examples.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/extend.rs~extend_adjacently_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/extend.rs~extend_externally_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/extend.rs~extend_internally_tagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/extend.rs~extend_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/extend.rs~extend_tuple_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/extend.rs~extend_untagged_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/flatten.rs~flattened_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/flatten.rs~flattened_value.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/from_value.rs~custom_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/from_value.rs~custom_struct_openapi3.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/from_value.rs~json_value.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/garde.rs~garde_attrs.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/garde.rs~garde_attrs_newtype.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/garde.rs~garde_attrs_tuple.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/inline_subschemas.rs~struct_normal.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/inline_subschemas.rs~struct_recursive.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/inline_subschemas.rs~struct_recursive.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/jiff.rs~jiff.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/remote_derive.rs~lifetime_param.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/remote_derive.rs~simple.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/remote_derive.rs~type_param.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/same_name.rs~same_name.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/schema_with.rs~schema_with.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/semver.rs~semver.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~draft07.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~draft07.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~draft2019_09.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~draft2019_09.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~draft2020_12.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~draft2020_12.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~include_type_name.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~include_type_name.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~openapi3.de.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/settings.rs~openapi3.ser.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/skip.rs~skip_enum_variants.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/skip.rs~skip_struct_field.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/structs.rs~deny_unknown_fields.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/structs.rs~newtype.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/structs.rs~normal.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/structs.rs~renamed_fields.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/structs.rs~tuple.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/structs.rs~unit.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/transform.rs~transform_enum.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/transform.rs~transform_struct.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/url.rs~url.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/uuid.rs~uuid.json delete mode 100644 vendor/schemars/tests/integration/snapshots/schemars/tests/integration/validator.rs~validate_attrs.json delete mode 100644 vendor/schemars/tests/integration/std_types.rs delete mode 100644 vendor/schemars/tests/integration/structs.rs delete mode 100644 vendor/schemars/tests/integration/test_helper.rs delete mode 100644 vendor/schemars/tests/integration/transform.rs delete mode 100644 vendor/schemars/tests/integration/transparent.rs delete mode 100644 vendor/schemars/tests/integration/url.rs delete mode 100644 vendor/schemars/tests/integration/uuid.rs delete mode 100644 vendor/schemars/tests/integration/validator.rs delete mode 100644 vendor/schemars/tests/ui.rs delete mode 100644 vendor/schemars/tests/ui/example_fn.rs delete mode 100644 vendor/schemars/tests/ui/example_fn.stderr delete mode 100644 vendor/schemars/tests/ui/invalid_attrs.rs delete mode 100644 vendor/schemars/tests/ui/invalid_attrs.stderr delete mode 100644 vendor/schemars/tests/ui/invalid_extend.rs delete mode 100644 vendor/schemars/tests/ui/invalid_extend.stderr delete mode 100644 vendor/schemars/tests/ui/invalid_validation_attrs.rs delete mode 100644 vendor/schemars/tests/ui/invalid_validation_attrs.stderr delete mode 100644 vendor/schemars/tests/ui/repr_missing.rs delete mode 100644 vendor/schemars/tests/ui/repr_missing.stderr delete mode 100644 vendor/schemars/tests/ui/repr_non_unit_variant.rs delete mode 100644 vendor/schemars/tests/ui/repr_non_unit_variant.stderr delete mode 100644 vendor/schemars/tests/ui/schema_for_arg_value.rs delete mode 100644 vendor/schemars/tests/ui/schema_for_arg_value.stderr delete mode 100644 vendor/schemars/tests/ui/transform_str.rs delete mode 100644 vendor/schemars/tests/ui/transform_str.stderr delete mode 100644 vendor/scopeguard/.cargo-checksum.json delete mode 100644 vendor/scopeguard/Cargo.lock delete mode 100644 vendor/scopeguard/Cargo.toml delete mode 100644 vendor/scopeguard/LICENSE-APACHE delete mode 100644 vendor/scopeguard/LICENSE-MIT delete mode 100644 vendor/scopeguard/README.md delete mode 100644 vendor/scopeguard/examples/readme.rs delete mode 100644 vendor/scopeguard/src/lib.rs delete mode 100644 vendor/semver/.cargo-checksum.json delete mode 100644 vendor/semver/Cargo.lock delete mode 100644 vendor/semver/Cargo.toml delete mode 100644 vendor/semver/LICENSE-APACHE delete mode 100644 vendor/semver/LICENSE-MIT delete mode 100644 vendor/semver/README.md delete mode 100644 vendor/semver/benches/parse.rs delete mode 100644 vendor/semver/build.rs delete mode 100644 vendor/semver/src/backport.rs delete mode 100644 vendor/semver/src/display.rs delete mode 100644 vendor/semver/src/error.rs delete mode 100644 vendor/semver/src/eval.rs delete mode 100644 vendor/semver/src/identifier.rs delete mode 100644 vendor/semver/src/impls.rs delete mode 100644 vendor/semver/src/lib.rs delete mode 100644 vendor/semver/src/parse.rs delete mode 100644 vendor/semver/src/serde.rs delete mode 100644 vendor/semver/tests/node/mod.rs delete mode 100644 vendor/semver/tests/test_autotrait.rs delete mode 100644 vendor/semver/tests/test_identifier.rs delete mode 100644 vendor/semver/tests/test_version.rs delete mode 100644 vendor/semver/tests/test_version_req.rs delete mode 100644 vendor/semver/tests/util/mod.rs delete mode 100644 vendor/serde_with/.cargo-checksum.json delete mode 100644 vendor/serde_with/CHANGELOG.md delete mode 100644 vendor/serde_with/Cargo.lock delete mode 100644 vendor/serde_with/Cargo.toml delete mode 100644 vendor/serde_with/LICENSE-APACHE delete mode 100644 vendor/serde_with/LICENSE-MIT delete mode 100644 vendor/serde_with/README.md delete mode 100644 vendor/serde_with/src/base64.rs delete mode 100644 vendor/serde_with/src/chrono_0_4.rs delete mode 100644 vendor/serde_with/src/content/de.rs delete mode 100644 vendor/serde_with/src/content/mod.rs delete mode 100644 vendor/serde_with/src/content/ser.rs delete mode 100644 vendor/serde_with/src/de/duplicates.rs delete mode 100644 vendor/serde_with/src/de/impls.rs delete mode 100644 vendor/serde_with/src/de/mod.rs delete mode 100644 vendor/serde_with/src/de/skip_error.rs delete mode 100644 vendor/serde_with/src/duplicate_key_impls/error_on_duplicate.rs delete mode 100644 vendor/serde_with/src/duplicate_key_impls/first_value_wins.rs delete mode 100644 vendor/serde_with/src/duplicate_key_impls/last_value_wins.rs delete mode 100644 vendor/serde_with/src/duplicate_key_impls/mod.rs delete mode 100644 vendor/serde_with/src/enum_map.rs delete mode 100644 vendor/serde_with/src/flatten_maybe.rs delete mode 100644 vendor/serde_with/src/formats.rs delete mode 100644 vendor/serde_with/src/guide.md delete mode 100644 vendor/serde_with/src/guide/feature_flags.rs delete mode 100644 vendor/serde_with/src/guide/serde_as.md delete mode 100644 vendor/serde_with/src/guide/serde_as_transformations.md delete mode 100644 vendor/serde_with/src/hex.rs delete mode 100644 vendor/serde_with/src/json.rs delete mode 100644 vendor/serde_with/src/key_value_map.rs delete mode 100644 vendor/serde_with/src/lib.rs delete mode 100644 vendor/serde_with/src/rust.rs delete mode 100644 vendor/serde_with/src/schemars_0_8.rs delete mode 100644 vendor/serde_with/src/schemars_0_9.rs delete mode 100644 vendor/serde_with/src/ser/duplicates.rs delete mode 100644 vendor/serde_with/src/ser/impls.rs delete mode 100644 vendor/serde_with/src/ser/mod.rs delete mode 100644 vendor/serde_with/src/ser/skip_error.rs delete mode 100644 vendor/serde_with/src/serde_conv.rs delete mode 100644 vendor/serde_with/src/time_0_3.rs delete mode 100644 vendor/serde_with/src/utils.rs delete mode 100644 vendor/serde_with/src/utils/duration.rs delete mode 100644 vendor/serde_with/src/with_prefix.rs delete mode 100644 vendor/serde_with/src/with_suffix.rs delete mode 100644 vendor/serde_with/tests/base64.rs delete mode 100644 vendor/serde_with/tests/chrono_0_4.rs delete mode 100644 vendor/serde_with/tests/derives/deserialize_fromstr.rs delete mode 100644 vendor/serde_with/tests/derives/lib.rs delete mode 100644 vendor/serde_with/tests/derives/serialize_display.rs delete mode 100644 vendor/serde_with/tests/hashbrown_0_14.rs delete mode 100644 vendor/serde_with/tests/hashbrown_0_15.rs delete mode 100644 vendor/serde_with/tests/hex.rs delete mode 100644 vendor/serde_with/tests/indexmap_1.rs delete mode 100644 vendor/serde_with/tests/indexmap_2.rs delete mode 100644 vendor/serde_with/tests/json.rs delete mode 100644 vendor/serde_with/tests/rust.rs delete mode 100644 vendor/serde_with/tests/schemars_0_8.rs delete mode 100644 vendor/serde_with/tests/schemars_0_8/schemars_basic.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/schemars_deserialize_only_bug_735.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/bytes.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/default_on_null.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/duration.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/enum_map.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/from_into.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/key_value_map.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/key_value_map_enum.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/key_value_map_flatten.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/map.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/map_fixed.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/one_or_many_nested.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/one_or_many_prefer_one.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/pickfirst.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/pickfirst_nested.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/set_last_value_wins.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/set_prevent_duplicates.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/snapshots/string_with_separator.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/test_std/map.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/test_std/option.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/test_std/set.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/test_std/tuples.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/test_std/vec.json delete mode 100644 vendor/serde_with/tests/schemars_0_8/test_std/vec_deque.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/main.rs delete mode 100644 vendor/serde_with/tests/schemars_0_9/schemars_basic.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/schemars_deserialize_only_bug_735.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/bytes.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/default_on_null.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/duration.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/enum_map.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/from_into.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/key_value_map.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/key_value_map_enum.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/key_value_map_flatten.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/map.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/map_fixed.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/one_or_many_nested.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/one_or_many_prefer_one.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/pickfirst.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/pickfirst_nested.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/set_last_value_wins.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/set_prevent_duplicates.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/snapshots/string_with_separator.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/test_std/map.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/test_std/option.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/test_std/set.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/test_std/tuples.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/test_std/vec.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/test_std/vec_deque.json delete mode 100644 vendor/serde_with/tests/schemars_0_9/utils.rs delete mode 100644 vendor/serde_with/tests/serde_as/collections.rs delete mode 100644 vendor/serde_with/tests/serde_as/default_on.rs delete mode 100644 vendor/serde_with/tests/serde_as/enum_map.rs delete mode 100644 vendor/serde_with/tests/serde_as/frominto.rs delete mode 100644 vendor/serde_with/tests/serde_as/fromintoref.rs delete mode 100644 vendor/serde_with/tests/serde_as/key_value_map.rs delete mode 100644 vendor/serde_with/tests/serde_as/lib.rs delete mode 100644 vendor/serde_with/tests/serde_as/map_tuple_list.rs delete mode 100644 vendor/serde_with/tests/serde_as/pickfirst.rs delete mode 100644 vendor/serde_with/tests/serde_as/serde_as_macro.rs delete mode 100644 vendor/serde_with/tests/serde_as/serde_conv.rs delete mode 100644 vendor/serde_with/tests/serde_as/time.rs delete mode 100644 vendor/serde_with/tests/time_0_3.rs delete mode 100644 vendor/serde_with/tests/utils.rs delete mode 100644 vendor/serde_with/tests/version_numbers.rs delete mode 100644 vendor/serde_with/tests/with_prefix.rs delete mode 100644 vendor/serde_with/tests/with_suffix.rs delete mode 100644 vendor/serde_with_macros/.cargo-checksum.json delete mode 100644 vendor/serde_with_macros/CHANGELOG.md delete mode 100644 vendor/serde_with_macros/Cargo.lock delete mode 100644 vendor/serde_with_macros/Cargo.toml delete mode 100644 vendor/serde_with_macros/LICENSE-APACHE delete mode 100644 vendor/serde_with_macros/LICENSE-MIT delete mode 100644 vendor/serde_with_macros/README.md delete mode 100644 vendor/serde_with_macros/src/apply.rs delete mode 100644 vendor/serde_with_macros/src/lazy_bool.rs delete mode 100644 vendor/serde_with_macros/src/lib.rs delete mode 100644 vendor/serde_with_macros/src/utils.rs delete mode 100644 vendor/serde_with_macros/tests/apply.rs delete mode 100644 vendor/serde_with_macros/tests/compiler-messages.rs delete mode 100644 vendor/serde_with_macros/tests/serde_as_issue_267.rs delete mode 100644 vendor/serde_with_macros/tests/serde_as_issue_538.rs delete mode 100644 vendor/serde_with_macros/tests/skip_serializing_null.rs delete mode 100644 vendor/serde_with_macros/tests/version_numbers.rs delete mode 100644 vendor/sha3/.cargo-checksum.json delete mode 100644 vendor/sha3/CHANGELOG.md delete mode 100644 vendor/sha3/Cargo.toml delete mode 100644 vendor/sha3/LICENSE-APACHE delete mode 100644 vendor/sha3/LICENSE-MIT delete mode 100644 vendor/sha3/README.md delete mode 100644 vendor/sha3/benches/mod.rs delete mode 100644 vendor/sha3/src/lib.rs delete mode 100644 vendor/sha3/src/macros.rs delete mode 100644 vendor/sha3/src/state.rs delete mode 100644 vendor/sha3/tests/aliases.rs delete mode 100644 vendor/sha3/tests/cshake.rs delete mode 100644 vendor/sha3/tests/data/cshake128.blb delete mode 100644 vendor/sha3/tests/data/cshake256.blb delete mode 100644 vendor/sha3/tests/data/keccak_224.blb delete mode 100644 vendor/sha3/tests/data/keccak_256.blb delete mode 100644 vendor/sha3/tests/data/keccak_256_full.blb delete mode 100644 vendor/sha3/tests/data/keccak_384.blb delete mode 100644 vendor/sha3/tests/data/keccak_512.blb delete mode 100644 vendor/sha3/tests/data/sha3_224.blb delete mode 100644 vendor/sha3/tests/data/sha3_256.blb delete mode 100644 vendor/sha3/tests/data/sha3_384.blb delete mode 100644 vendor/sha3/tests/data/sha3_512.blb delete mode 100644 vendor/sha3/tests/data/shake128.blb delete mode 100644 vendor/sha3/tests/data/shake256.blb delete mode 100644 vendor/sha3/tests/data/turboshake128.blb delete mode 100644 vendor/sha3/tests/data/turboshake256.blb delete mode 100644 vendor/sha3/tests/mod.rs delete mode 100644 vendor/sha3/tests/turboshake.rs delete mode 100644 vendor/siphasher/.cargo-checksum.json delete mode 100644 vendor/siphasher/COPYING delete mode 100644 vendor/siphasher/Cargo.toml delete mode 100644 vendor/siphasher/README.md delete mode 100644 vendor/siphasher/src/lib.rs delete mode 100644 vendor/siphasher/src/sip.rs delete mode 100644 vendor/siphasher/src/sip128.rs delete mode 100644 vendor/siphasher/src/tests.rs delete mode 100644 vendor/siphasher/src/tests128.rs delete mode 100644 vendor/smol_str/.cargo-checksum.json delete mode 100644 vendor/smol_str/CHANGELOG.md delete mode 100644 vendor/smol_str/Cargo.toml delete mode 100644 vendor/smol_str/LICENSE-APACHE delete mode 100644 vendor/smol_str/LICENSE-MIT delete mode 100644 vendor/smol_str/README.md delete mode 100644 vendor/smol_str/bors.toml delete mode 100644 vendor/smol_str/src/borsh.rs delete mode 100644 vendor/smol_str/src/lib.rs delete mode 100644 vendor/smol_str/src/serde.rs delete mode 100644 vendor/smol_str/tests/test.rs delete mode 100644 vendor/smol_str/tests/tidy.rs delete mode 100644 vendor/stacker/.cargo-checksum.json delete mode 100644 vendor/stacker/Cargo.lock delete mode 100644 vendor/stacker/Cargo.toml delete mode 100644 vendor/stacker/LICENSE-APACHE delete mode 100644 vendor/stacker/LICENSE-MIT delete mode 100644 vendor/stacker/README.md delete mode 100644 vendor/stacker/build.rs delete mode 100644 vendor/stacker/src/alloc_stack_restore_guard.rs delete mode 100644 vendor/stacker/src/arch/asm.h delete mode 100644 vendor/stacker/src/arch/windows.c delete mode 100644 vendor/stacker/src/backends/fallback.rs delete mode 100644 vendor/stacker/src/backends/macos.rs delete mode 100644 vendor/stacker/src/backends/mod.rs delete mode 100644 vendor/stacker/src/backends/openbsd.rs delete mode 100644 vendor/stacker/src/backends/unix.rs delete mode 100644 vendor/stacker/src/backends/windows.rs delete mode 100644 vendor/stacker/src/lib.rs delete mode 100644 vendor/stacker/src/mmap_stack_restore_guard.rs delete mode 100644 vendor/stacker/tests/simple.rs delete mode 100644 vendor/stacker/tests/smoke.rs delete mode 100644 vendor/string_cache/.cargo-checksum.json delete mode 100644 vendor/string_cache/Cargo.lock delete mode 100644 vendor/string_cache/Cargo.toml delete mode 100644 vendor/string_cache/LICENSE-APACHE delete mode 100644 vendor/string_cache/LICENSE-MIT delete mode 100644 vendor/string_cache/README.md delete mode 100644 vendor/string_cache/examples/simple.rs delete mode 100644 vendor/string_cache/src/atom.rs delete mode 100644 vendor/string_cache/src/dynamic_set.rs delete mode 100644 vendor/string_cache/src/lib.rs delete mode 100644 vendor/string_cache/src/static_sets.rs delete mode 100644 vendor/string_cache/src/trivial_impls.rs delete mode 100644 vendor/string_cache/tests/small-stack.rs delete mode 100644 vendor/term/.cargo-checksum.json delete mode 100644 vendor/term/Cargo.lock delete mode 100644 vendor/term/Cargo.toml delete mode 100644 vendor/term/LICENSE-APACHE delete mode 100644 vendor/term/LICENSE-MIT delete mode 100644 vendor/term/README.md delete mode 100644 vendor/term/src/lib.rs delete mode 100644 vendor/term/src/terminfo/mod.rs delete mode 100644 vendor/term/src/terminfo/parm.rs delete mode 100644 vendor/term/src/terminfo/parser/compiled.rs delete mode 100644 vendor/term/src/terminfo/parser/names.rs delete mode 100644 vendor/term/src/terminfo/searcher.rs delete mode 100644 vendor/term/src/win.rs delete mode 100644 vendor/term/tests/data/dumb delete mode 100644 vendor/term/tests/data/linux delete mode 100644 vendor/term/tests/data/linux-16color delete mode 100644 vendor/term/tests/data/linux-basic delete mode 100644 vendor/term/tests/data/linux-c delete mode 100644 vendor/term/tests/data/linux-c-nc delete mode 100644 vendor/term/tests/data/linux-koi8 delete mode 100644 vendor/term/tests/data/linux-koi8r delete mode 100644 vendor/term/tests/data/linux-lat delete mode 100644 vendor/term/tests/data/linux-m delete mode 100644 vendor/term/tests/data/linux-nic delete mode 100644 vendor/term/tests/data/linux-vt delete mode 100644 vendor/term/tests/data/linux2.2 delete mode 100644 vendor/term/tests/data/linux2.6 delete mode 100644 vendor/term/tests/data/linux2.6.26 delete mode 100644 vendor/term/tests/data/linux3.0 delete mode 100644 vendor/term/tests/data/rxvt delete mode 100644 vendor/term/tests/data/rxvt-16color delete mode 100644 vendor/term/tests/data/rxvt-256color delete mode 100644 vendor/term/tests/data/rxvt-88color delete mode 100644 vendor/term/tests/data/rxvt-basic delete mode 100644 vendor/term/tests/data/rxvt-color delete mode 100644 vendor/term/tests/data/rxvt-cygwin delete mode 100644 vendor/term/tests/data/rxvt-cygwin-native delete mode 100644 vendor/term/tests/data/rxvt-xpm delete mode 100644 vendor/term/tests/data/screen delete mode 100644 vendor/term/tests/data/screen-256color delete mode 100644 vendor/term/tests/data/vt100 delete mode 100644 vendor/term/tests/data/xterm delete mode 100644 vendor/term/tests/data/xterm-256color delete mode 100644 vendor/term/tests/terminfo.rs delete mode 100644 vendor/thiserror-impl/.cargo-checksum.json delete mode 100644 vendor/thiserror-impl/Cargo.lock delete mode 100644 vendor/thiserror-impl/Cargo.toml delete mode 100644 vendor/thiserror-impl/LICENSE-APACHE delete mode 100644 vendor/thiserror-impl/LICENSE-MIT delete mode 100644 vendor/thiserror-impl/src/ast.rs delete mode 100644 vendor/thiserror-impl/src/attr.rs delete mode 100644 vendor/thiserror-impl/src/expand.rs delete mode 100644 vendor/thiserror-impl/src/fallback.rs delete mode 100644 vendor/thiserror-impl/src/fmt.rs delete mode 100644 vendor/thiserror-impl/src/generics.rs delete mode 100644 vendor/thiserror-impl/src/lib.rs delete mode 100644 vendor/thiserror-impl/src/prop.rs delete mode 100644 vendor/thiserror-impl/src/scan_expr.rs delete mode 100644 vendor/thiserror-impl/src/unraw.rs delete mode 100644 vendor/thiserror-impl/src/valid.rs delete mode 100644 vendor/thiserror/.cargo-checksum.json delete mode 100644 vendor/thiserror/Cargo.lock delete mode 100644 vendor/thiserror/Cargo.toml delete mode 100644 vendor/thiserror/LICENSE-APACHE delete mode 100644 vendor/thiserror/LICENSE-MIT delete mode 100644 vendor/thiserror/README.md delete mode 100644 vendor/thiserror/build.rs delete mode 100644 vendor/thiserror/build/probe.rs delete mode 100644 vendor/thiserror/rust-toolchain.toml delete mode 100644 vendor/thiserror/src/aserror.rs delete mode 100644 vendor/thiserror/src/display.rs delete mode 100644 vendor/thiserror/src/lib.rs delete mode 100644 vendor/thiserror/src/provide.rs delete mode 100644 vendor/thiserror/src/var.rs delete mode 100644 vendor/thiserror/tests/compiletest.rs delete mode 100644 vendor/thiserror/tests/test_backtrace.rs delete mode 100644 vendor/thiserror/tests/test_display.rs delete mode 100644 vendor/thiserror/tests/test_error.rs delete mode 100644 vendor/thiserror/tests/test_expr.rs delete mode 100644 vendor/thiserror/tests/test_from.rs delete mode 100644 vendor/thiserror/tests/test_generics.rs delete mode 100644 vendor/thiserror/tests/test_lints.rs delete mode 100644 vendor/thiserror/tests/test_option.rs delete mode 100644 vendor/thiserror/tests/test_path.rs delete mode 100644 vendor/thiserror/tests/test_source.rs delete mode 100644 vendor/thiserror/tests/test_transparent.rs delete mode 100644 vendor/thiserror/tests/ui/bad-field-attr.rs delete mode 100644 vendor/thiserror/tests/ui/bad-field-attr.stderr delete mode 100644 vendor/thiserror/tests/ui/concat-display.rs delete mode 100644 vendor/thiserror/tests/ui/concat-display.stderr delete mode 100644 vendor/thiserror/tests/ui/display-underscore.rs delete mode 100644 vendor/thiserror/tests/ui/display-underscore.stderr delete mode 100644 vendor/thiserror/tests/ui/duplicate-enum-source.rs delete mode 100644 vendor/thiserror/tests/ui/duplicate-enum-source.stderr delete mode 100644 vendor/thiserror/tests/ui/duplicate-fmt.rs delete mode 100644 vendor/thiserror/tests/ui/duplicate-fmt.stderr delete mode 100644 vendor/thiserror/tests/ui/duplicate-struct-source.rs delete mode 100644 vendor/thiserror/tests/ui/duplicate-struct-source.stderr delete mode 100644 vendor/thiserror/tests/ui/duplicate-transparent.rs delete mode 100644 vendor/thiserror/tests/ui/duplicate-transparent.stderr delete mode 100644 vendor/thiserror/tests/ui/expression-fallback.rs delete mode 100644 vendor/thiserror/tests/ui/expression-fallback.stderr delete mode 100644 vendor/thiserror/tests/ui/fallback-impl-with-display.rs delete mode 100644 vendor/thiserror/tests/ui/fallback-impl-with-display.stderr delete mode 100644 vendor/thiserror/tests/ui/from-backtrace-backtrace.rs delete mode 100644 vendor/thiserror/tests/ui/from-backtrace-backtrace.stderr delete mode 100644 vendor/thiserror/tests/ui/from-not-source.rs delete mode 100644 vendor/thiserror/tests/ui/from-not-source.stderr delete mode 100644 vendor/thiserror/tests/ui/invalid-input-impl-anyway.rs delete mode 100644 vendor/thiserror/tests/ui/invalid-input-impl-anyway.stderr delete mode 100644 vendor/thiserror/tests/ui/lifetime.rs delete mode 100644 vendor/thiserror/tests/ui/lifetime.stderr delete mode 100644 vendor/thiserror/tests/ui/missing-display.rs delete mode 100644 vendor/thiserror/tests/ui/missing-display.stderr delete mode 100644 vendor/thiserror/tests/ui/missing-fmt.rs delete mode 100644 vendor/thiserror/tests/ui/missing-fmt.stderr delete mode 100644 vendor/thiserror/tests/ui/no-display.rs delete mode 100644 vendor/thiserror/tests/ui/no-display.stderr delete mode 100644 vendor/thiserror/tests/ui/numbered-positional-tuple.rs delete mode 100644 vendor/thiserror/tests/ui/numbered-positional-tuple.stderr delete mode 100644 vendor/thiserror/tests/ui/raw-identifier.rs delete mode 100644 vendor/thiserror/tests/ui/raw-identifier.stderr delete mode 100644 vendor/thiserror/tests/ui/same-from-type.rs delete mode 100644 vendor/thiserror/tests/ui/same-from-type.stderr delete mode 100644 vendor/thiserror/tests/ui/source-enum-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/source-enum-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/source-enum-unnamed-field-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/source-struct-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/source-struct-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/source-struct-unnamed-field-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/struct-with-fmt.rs delete mode 100644 vendor/thiserror/tests/ui/struct-with-fmt.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-display.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-display.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-many.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-many.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-source.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-source.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-enum-unnamed-field-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-many.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-many.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-source.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-source.stderr delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.rs delete mode 100644 vendor/thiserror/tests/ui/transparent-struct-unnamed-field-not-error.stderr delete mode 100644 vendor/thiserror/tests/ui/unconditional-recursion.rs delete mode 100644 vendor/thiserror/tests/ui/unconditional-recursion.stderr delete mode 100644 vendor/thiserror/tests/ui/unexpected-field-fmt.rs delete mode 100644 vendor/thiserror/tests/ui/unexpected-field-fmt.stderr delete mode 100644 vendor/thiserror/tests/ui/unexpected-struct-source.rs delete mode 100644 vendor/thiserror/tests/ui/unexpected-struct-source.stderr delete mode 100644 vendor/thiserror/tests/ui/union.rs delete mode 100644 vendor/thiserror/tests/ui/union.stderr delete mode 100644 vendor/time-core/.cargo-checksum.json delete mode 100644 vendor/time-core/Cargo.lock delete mode 100644 vendor/time-core/Cargo.toml delete mode 100644 vendor/time-core/LICENSE-Apache delete mode 100644 vendor/time-core/LICENSE-MIT delete mode 100644 vendor/time-core/src/convert.rs delete mode 100644 vendor/time-core/src/hint.rs delete mode 100644 vendor/time-core/src/lib.rs delete mode 100644 vendor/time-core/src/util.rs delete mode 100644 vendor/time-macros/.cargo-checksum.json delete mode 100644 vendor/time-macros/Cargo.lock delete mode 100644 vendor/time-macros/Cargo.toml delete mode 100644 vendor/time-macros/LICENSE-Apache delete mode 100644 vendor/time-macros/LICENSE-MIT delete mode 100644 vendor/time-macros/src/date.rs delete mode 100644 vendor/time-macros/src/datetime.rs delete mode 100644 vendor/time-macros/src/error.rs delete mode 100644 vendor/time-macros/src/format_description/ast.rs delete mode 100644 vendor/time-macros/src/format_description/format_item.rs delete mode 100644 vendor/time-macros/src/format_description/lexer.rs delete mode 100644 vendor/time-macros/src/format_description/mod.rs delete mode 100644 vendor/time-macros/src/format_description/public/component.rs delete mode 100644 vendor/time-macros/src/format_description/public/mod.rs delete mode 100644 vendor/time-macros/src/format_description/public/modifier.rs delete mode 100644 vendor/time-macros/src/helpers/mod.rs delete mode 100644 vendor/time-macros/src/helpers/string.rs delete mode 100644 vendor/time-macros/src/lib.rs delete mode 100644 vendor/time-macros/src/offset.rs delete mode 100644 vendor/time-macros/src/quote.rs delete mode 100644 vendor/time-macros/src/serde_format_description.rs delete mode 100644 vendor/time-macros/src/time.rs delete mode 100644 vendor/time-macros/src/to_tokens.rs delete mode 100644 vendor/time-macros/src/utc_datetime.rs delete mode 100644 vendor/time/.cargo-checksum.json delete mode 100644 vendor/time/Cargo.lock delete mode 100644 vendor/time/Cargo.toml delete mode 100644 vendor/time/LICENSE-Apache delete mode 100644 vendor/time/LICENSE-MIT delete mode 100644 vendor/time/README.md delete mode 100644 vendor/time/src/date.rs delete mode 100644 vendor/time/src/duration.rs delete mode 100644 vendor/time/src/error/component_range.rs delete mode 100644 vendor/time/src/error/conversion_range.rs delete mode 100644 vendor/time/src/error/different_variant.rs delete mode 100644 vendor/time/src/error/format.rs delete mode 100644 vendor/time/src/error/indeterminate_offset.rs delete mode 100644 vendor/time/src/error/invalid_format_description.rs delete mode 100644 vendor/time/src/error/invalid_variant.rs delete mode 100644 vendor/time/src/error/mod.rs delete mode 100644 vendor/time/src/error/parse.rs delete mode 100644 vendor/time/src/error/parse_from_description.rs delete mode 100644 vendor/time/src/error/try_from_parsed.rs delete mode 100644 vendor/time/src/ext/digit_count.rs delete mode 100644 vendor/time/src/ext/instant.rs delete mode 100644 vendor/time/src/ext/mod.rs delete mode 100644 vendor/time/src/ext/numerical_duration.rs delete mode 100644 vendor/time/src/ext/numerical_std_duration.rs delete mode 100644 vendor/time/src/format_description/borrowed_format_item.rs delete mode 100644 vendor/time/src/format_description/component.rs delete mode 100644 vendor/time/src/format_description/mod.rs delete mode 100644 vendor/time/src/format_description/modifier.rs delete mode 100644 vendor/time/src/format_description/owned_format_item.rs delete mode 100644 vendor/time/src/format_description/parse/ast.rs delete mode 100644 vendor/time/src/format_description/parse/format_item.rs delete mode 100644 vendor/time/src/format_description/parse/lexer.rs delete mode 100644 vendor/time/src/format_description/parse/mod.rs delete mode 100644 vendor/time/src/format_description/parse/strftime.rs delete mode 100644 vendor/time/src/format_description/well_known/iso8601.rs delete mode 100644 vendor/time/src/format_description/well_known/iso8601/adt_hack.rs delete mode 100644 vendor/time/src/format_description/well_known/rfc2822.rs delete mode 100644 vendor/time/src/format_description/well_known/rfc3339.rs delete mode 100644 vendor/time/src/formatting/formattable.rs delete mode 100644 vendor/time/src/formatting/iso8601.rs delete mode 100644 vendor/time/src/formatting/mod.rs delete mode 100644 vendor/time/src/hint.rs delete mode 100644 vendor/time/src/instant.rs delete mode 100644 vendor/time/src/internal_macros.rs delete mode 100644 vendor/time/src/interop/js_sys_date_offsetdatetime.rs delete mode 100644 vendor/time/src/interop/js_sys_date_utcdatetime.rs delete mode 100644 vendor/time/src/interop/mod.rs delete mode 100644 vendor/time/src/interop/offsetdatetime_systemtime.rs delete mode 100644 vendor/time/src/interop/offsetdatetime_utcdatetime.rs delete mode 100644 vendor/time/src/interop/utcdatetime_systemtime.rs delete mode 100644 vendor/time/src/lib.rs delete mode 100644 vendor/time/src/macros.rs delete mode 100644 vendor/time/src/month.rs delete mode 100644 vendor/time/src/offset_date_time.rs delete mode 100644 vendor/time/src/parsing/combinator/mod.rs delete mode 100644 vendor/time/src/parsing/combinator/rfc/iso8601.rs delete mode 100644 vendor/time/src/parsing/combinator/rfc/mod.rs delete mode 100644 vendor/time/src/parsing/combinator/rfc/rfc2234.rs delete mode 100644 vendor/time/src/parsing/combinator/rfc/rfc2822.rs delete mode 100644 vendor/time/src/parsing/component.rs delete mode 100644 vendor/time/src/parsing/iso8601.rs delete mode 100644 vendor/time/src/parsing/mod.rs delete mode 100644 vendor/time/src/parsing/parsable.rs delete mode 100644 vendor/time/src/parsing/parsed.rs delete mode 100644 vendor/time/src/parsing/shim.rs delete mode 100644 vendor/time/src/primitive_date_time.rs delete mode 100644 vendor/time/src/quickcheck.rs delete mode 100644 vendor/time/src/rand.rs delete mode 100644 vendor/time/src/serde/iso8601.rs delete mode 100644 vendor/time/src/serde/mod.rs delete mode 100644 vendor/time/src/serde/rfc2822.rs delete mode 100644 vendor/time/src/serde/rfc3339.rs delete mode 100644 vendor/time/src/serde/timestamp/microseconds.rs delete mode 100644 vendor/time/src/serde/timestamp/milliseconds.rs delete mode 100644 vendor/time/src/serde/timestamp/milliseconds_i64.rs delete mode 100644 vendor/time/src/serde/timestamp/mod.rs delete mode 100644 vendor/time/src/serde/timestamp/nanoseconds.rs delete mode 100644 vendor/time/src/serde/visitor.rs delete mode 100644 vendor/time/src/sys/local_offset_at/imp.rs delete mode 100644 vendor/time/src/sys/local_offset_at/mod.rs delete mode 100644 vendor/time/src/sys/local_offset_at/unix.rs delete mode 100644 vendor/time/src/sys/local_offset_at/wasm_js.rs delete mode 100644 vendor/time/src/sys/local_offset_at/windows.rs delete mode 100644 vendor/time/src/sys/mod.rs delete mode 100644 vendor/time/src/sys/refresh_tz/imp.rs delete mode 100644 vendor/time/src/sys/refresh_tz/mod.rs delete mode 100644 vendor/time/src/sys/refresh_tz/unix.rs delete mode 100644 vendor/time/src/tests.rs delete mode 100644 vendor/time/src/time.rs delete mode 100644 vendor/time/src/utc_date_time.rs delete mode 100644 vendor/time/src/utc_offset.rs delete mode 100644 vendor/time/src/util.rs delete mode 100644 vendor/time/src/weekday.rs delete mode 100644 vendor/tinyvec/.cargo-checksum.json delete mode 100644 vendor/tinyvec/CHANGELOG.md delete mode 100644 vendor/tinyvec/Cargo.lock delete mode 100644 vendor/tinyvec/Cargo.toml delete mode 100644 vendor/tinyvec/LICENSE-APACHE.md delete mode 100644 vendor/tinyvec/LICENSE-MIT.md delete mode 100644 vendor/tinyvec/LICENSE-ZLIB.md delete mode 100644 vendor/tinyvec/README.md delete mode 100644 vendor/tinyvec/benches/macros.rs delete mode 100644 vendor/tinyvec/benches/smallvec.rs delete mode 100644 vendor/tinyvec/debug_metadata/README.md delete mode 100644 vendor/tinyvec/debug_metadata/tinyvec.natvis delete mode 100644 vendor/tinyvec/rustfmt.toml delete mode 100644 vendor/tinyvec/src/array.rs delete mode 100644 vendor/tinyvec/src/array/const_generic_impl.rs delete mode 100644 vendor/tinyvec/src/array/generated_impl.rs delete mode 100644 vendor/tinyvec/src/array/generic_array_impl.rs delete mode 100644 vendor/tinyvec/src/arrayvec.rs delete mode 100644 vendor/tinyvec/src/arrayvec_drain.rs delete mode 100644 vendor/tinyvec/src/lib.rs delete mode 100644 vendor/tinyvec/src/slicevec.rs delete mode 100644 vendor/tinyvec/src/tinyvec.rs delete mode 100644 vendor/tinyvec/tests/arrayvec.rs delete mode 100644 vendor/tinyvec/tests/debugger_visualizer.rs delete mode 100644 vendor/tinyvec/tests/tinyvec.rs delete mode 100644 vendor/tinyvec_macros/.cargo-checksum.json delete mode 100644 vendor/tinyvec_macros/Cargo.toml delete mode 100644 vendor/tinyvec_macros/LICENSE-APACHE.md delete mode 100644 vendor/tinyvec_macros/LICENSE-MIT.md delete mode 100644 vendor/tinyvec_macros/LICENSE-ZLIB.md delete mode 100644 vendor/tinyvec_macros/src/lib.rs delete mode 100644 vendor/typed-arena/.cargo-checksum.json delete mode 100644 vendor/typed-arena/CHANGELOG.md delete mode 100644 vendor/typed-arena/Cargo.toml delete mode 100644 vendor/typed-arena/LICENSE delete mode 100644 vendor/typed-arena/README.md delete mode 100644 vendor/typed-arena/benches/benches.rs delete mode 100644 vendor/typed-arena/src/lib.rs delete mode 100644 vendor/typed-arena/src/test.rs delete mode 100644 vendor/typenum/.cargo-checksum.json delete mode 100644 vendor/typenum/CHANGELOG.md delete mode 100644 vendor/typenum/Cargo.lock delete mode 100644 vendor/typenum/Cargo.toml delete mode 100644 vendor/typenum/LICENSE delete mode 100644 vendor/typenum/LICENSE-APACHE delete mode 100644 vendor/typenum/LICENSE-MIT delete mode 100644 vendor/typenum/README.md delete mode 100644 vendor/typenum/build.rs delete mode 100644 vendor/typenum/clippy.toml delete mode 100644 vendor/typenum/flake.lock delete mode 100644 vendor/typenum/flake.nix delete mode 100644 vendor/typenum/justfile delete mode 100644 vendor/typenum/src/array.rs delete mode 100644 vendor/typenum/src/bit.rs delete mode 100644 vendor/typenum/src/gen.rs delete mode 100644 vendor/typenum/src/gen/consts.rs delete mode 100644 vendor/typenum/src/gen/generic_const_mappings.rs delete mode 100644 vendor/typenum/src/gen/op.rs delete mode 100644 vendor/typenum/src/int.rs delete mode 100644 vendor/typenum/src/lib.rs delete mode 100644 vendor/typenum/src/marker_traits.rs delete mode 100644 vendor/typenum/src/operator_aliases.rs delete mode 100644 vendor/typenum/src/private.rs delete mode 100644 vendor/typenum/src/type_operators.rs delete mode 100644 vendor/typenum/src/uint.rs delete mode 100644 vendor/typenum/tests/test.rs delete mode 100644 vendor/unicode-normalization/.cargo-checksum.json delete mode 100644 vendor/unicode-normalization/COPYRIGHT delete mode 100644 vendor/unicode-normalization/Cargo.toml delete mode 100644 vendor/unicode-normalization/LICENSE-APACHE delete mode 100644 vendor/unicode-normalization/LICENSE-MIT delete mode 100644 vendor/unicode-normalization/README.md delete mode 100644 vendor/unicode-normalization/benches/bench.rs delete mode 100755 vendor/unicode-normalization/scripts/unicode.py delete mode 100644 vendor/unicode-normalization/src/__test_api.rs delete mode 100644 vendor/unicode-normalization/src/decompose.rs delete mode 100644 vendor/unicode-normalization/src/lib.rs delete mode 100644 vendor/unicode-normalization/src/lookups.rs delete mode 100644 vendor/unicode-normalization/src/normalize.rs delete mode 100644 vendor/unicode-normalization/src/perfect_hash.rs delete mode 100644 vendor/unicode-normalization/src/quick_check.rs delete mode 100644 vendor/unicode-normalization/src/recompose.rs delete mode 100644 vendor/unicode-normalization/src/replace.rs delete mode 100644 vendor/unicode-normalization/src/stream_safe.rs delete mode 100644 vendor/unicode-normalization/src/tables.rs delete mode 100644 vendor/unicode-normalization/src/test.rs delete mode 100644 vendor/unicode-script/.cargo-checksum.json delete mode 100644 vendor/unicode-script/Cargo.toml delete mode 100644 vendor/unicode-script/LICENSE-APACHE delete mode 100644 vendor/unicode-script/LICENSE-MIT delete mode 100644 vendor/unicode-script/README.md delete mode 100644 vendor/unicode-script/scripts/unicode.py delete mode 100644 vendor/unicode-script/src/lib.rs delete mode 100644 vendor/unicode-script/src/tables.rs delete mode 100644 vendor/unicode-security/.cargo-checksum.json delete mode 100644 vendor/unicode-security/COPYRIGHT delete mode 100644 vendor/unicode-security/Cargo.toml delete mode 100644 vendor/unicode-security/LICENSE-APACHE delete mode 100644 vendor/unicode-security/LICENSE-MIT delete mode 100644 vendor/unicode-security/README.md delete mode 100755 vendor/unicode-security/scripts/unicode.py delete mode 100644 vendor/unicode-security/src/confusable_detection.rs delete mode 100644 vendor/unicode-security/src/general_security_profile.rs delete mode 100644 vendor/unicode-security/src/lib.rs delete mode 100644 vendor/unicode-security/src/mixed_script.rs delete mode 100644 vendor/unicode-security/src/restriction_level.rs delete mode 100644 vendor/unicode-security/src/tables.rs delete mode 100644 vendor/unicode-security/src/tests.rs delete mode 100644 vendor/unicode-width/.cargo-checksum.json delete mode 100644 vendor/unicode-width/COPYRIGHT delete mode 100644 vendor/unicode-width/Cargo.toml delete mode 100644 vendor/unicode-width/LICENSE-APACHE delete mode 100644 vendor/unicode-width/LICENSE-MIT delete mode 100644 vendor/unicode-width/README.md delete mode 100644 vendor/unicode-width/benches/benches.rs delete mode 100755 vendor/unicode-width/scripts/unicode.py delete mode 100644 vendor/unicode-width/src/lib.rs delete mode 100644 vendor/unicode-width/src/tables.rs delete mode 100644 vendor/unicode-width/tests/emoji-test.txt delete mode 100644 vendor/unicode-width/tests/tests.rs delete mode 100644 vendor/unicode-xid/.cargo-checksum.json delete mode 100644 vendor/unicode-xid/COPYRIGHT delete mode 100644 vendor/unicode-xid/Cargo.toml delete mode 100644 vendor/unicode-xid/LICENSE-APACHE delete mode 100644 vendor/unicode-xid/LICENSE-MIT delete mode 100644 vendor/unicode-xid/README.md delete mode 100644 vendor/unicode-xid/benches/xid.rs delete mode 100644 vendor/unicode-xid/src/lib.rs delete mode 100644 vendor/unicode-xid/src/tables.rs delete mode 100644 vendor/unicode-xid/src/tests.rs delete mode 100644 vendor/unicode-xid/tests/exhaustive_tests.rs delete mode 100644 vendor/version_check/.cargo-checksum.json delete mode 100644 vendor/version_check/Cargo.toml delete mode 100644 vendor/version_check/LICENSE-APACHE delete mode 100644 vendor/version_check/LICENSE-MIT delete mode 100644 vendor/version_check/README.md delete mode 100644 vendor/version_check/src/channel.rs delete mode 100644 vendor/version_check/src/date.rs delete mode 100644 vendor/version_check/src/lib.rs delete mode 100644 vendor/version_check/src/version.rs delete mode 100644 vendor/walkdir/.cargo-checksum.json delete mode 100644 vendor/walkdir/COPYING delete mode 100644 vendor/walkdir/Cargo.toml delete mode 100644 vendor/walkdir/LICENSE-MIT delete mode 100644 vendor/walkdir/README.md delete mode 100644 vendor/walkdir/UNLICENSE delete mode 100644 vendor/walkdir/compare/nftw.c delete mode 100644 vendor/walkdir/compare/walk.py delete mode 100644 vendor/walkdir/rustfmt.toml delete mode 100644 vendor/walkdir/src/dent.rs delete mode 100644 vendor/walkdir/src/error.rs delete mode 100644 vendor/walkdir/src/lib.rs delete mode 100644 vendor/walkdir/src/tests/mod.rs delete mode 100644 vendor/walkdir/src/tests/recursive.rs delete mode 100644 vendor/walkdir/src/tests/util.rs delete mode 100644 vendor/walkdir/src/util.rs delete mode 100644 vendor/winapi-util/.cargo-checksum.json delete mode 100644 vendor/winapi-util/COPYING delete mode 100644 vendor/winapi-util/Cargo.toml delete mode 100644 vendor/winapi-util/LICENSE-MIT delete mode 100644 vendor/winapi-util/README.md delete mode 100644 vendor/winapi-util/UNLICENSE delete mode 100644 vendor/winapi-util/rustfmt.toml delete mode 100644 vendor/winapi-util/src/console.rs delete mode 100644 vendor/winapi-util/src/file.rs delete mode 100644 vendor/winapi-util/src/lib.rs delete mode 100644 vendor/winapi-util/src/sysinfo.rs delete mode 100644 vendor/winapi-util/src/win.rs delete mode 100644 vendor/windows-core/.cargo-checksum.json delete mode 100644 vendor/windows-core/Cargo.lock delete mode 100644 vendor/windows-core/Cargo.toml delete mode 100644 vendor/windows-core/license-apache-2.0 delete mode 100644 vendor/windows-core/license-mit delete mode 100644 vendor/windows-core/readme.md delete mode 100644 vendor/windows-core/src/agile_reference.rs delete mode 100644 vendor/windows-core/src/array.rs delete mode 100644 vendor/windows-core/src/as_impl.rs delete mode 100644 vendor/windows-core/src/com_object.rs delete mode 100644 vendor/windows-core/src/event.rs delete mode 100644 vendor/windows-core/src/guid.rs delete mode 100644 vendor/windows-core/src/handles.rs delete mode 100644 vendor/windows-core/src/imp/bindings.rs delete mode 100644 vendor/windows-core/src/imp/can_into.rs delete mode 100644 vendor/windows-core/src/imp/com_bindings.rs delete mode 100644 vendor/windows-core/src/imp/factory_cache.rs delete mode 100644 vendor/windows-core/src/imp/generic_factory.rs delete mode 100644 vendor/windows-core/src/imp/marshaler.rs delete mode 100644 vendor/windows-core/src/imp/mod.rs delete mode 100644 vendor/windows-core/src/imp/ref_count.rs delete mode 100644 vendor/windows-core/src/imp/sha1.rs delete mode 100644 vendor/windows-core/src/imp/weak_ref_count.rs delete mode 100644 vendor/windows-core/src/imp/windows.rs delete mode 100644 vendor/windows-core/src/inspectable.rs delete mode 100644 vendor/windows-core/src/interface.rs delete mode 100644 vendor/windows-core/src/lib.rs delete mode 100644 vendor/windows-core/src/out_param.rs delete mode 100644 vendor/windows-core/src/out_ref.rs delete mode 100644 vendor/windows-core/src/param.rs delete mode 100644 vendor/windows-core/src/param_value.rs delete mode 100644 vendor/windows-core/src/ref.rs delete mode 100644 vendor/windows-core/src/runtime_name.rs delete mode 100644 vendor/windows-core/src/runtime_type.rs delete mode 100644 vendor/windows-core/src/scoped_interface.rs delete mode 100644 vendor/windows-core/src/type.rs delete mode 100644 vendor/windows-core/src/unknown.rs delete mode 100644 vendor/windows-core/src/weak.rs delete mode 100644 vendor/windows-core/src/windows.rs delete mode 100644 vendor/windows-core/windows-core.natvis delete mode 100644 vendor/windows-implement/.cargo-checksum.json delete mode 100644 vendor/windows-implement/Cargo.lock delete mode 100644 vendor/windows-implement/Cargo.toml delete mode 100644 vendor/windows-implement/license-apache-2.0 delete mode 100644 vendor/windows-implement/license-mit delete mode 100644 vendor/windows-implement/src/gen.rs delete mode 100644 vendor/windows-implement/src/lib.rs delete mode 100644 vendor/windows-implement/src/tests.rs delete mode 100644 vendor/windows-interface/.cargo-checksum.json delete mode 100644 vendor/windows-interface/Cargo.lock delete mode 100644 vendor/windows-interface/Cargo.toml delete mode 100644 vendor/windows-interface/license-apache-2.0 delete mode 100644 vendor/windows-interface/license-mit delete mode 100644 vendor/windows-interface/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index 5489dd82..bec695a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,21 +26,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - [[package]] name = "anstream" version = "0.6.19" @@ -97,21 +82,6 @@ version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" -[[package]] -name = "arrayvec" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" - -[[package]] -name = "ascii-canvas" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef1e3e699d84ab1b0911a1010c5c106aa34ae89aeac103be5ce0c3859db1e891" -dependencies = [ - "term", -] - [[package]] name = "async-stream" version = "0.3.6" @@ -155,7 +125,6 @@ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" name = "authzd" version = "0.1.0" dependencies = [ - "cedar-policy", "clap", "envoy-types", "log", @@ -176,12 +145,6 @@ dependencies = [ "urlencoding", ] -[[package]] -name = "autocfg" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" - [[package]] name = "axum" version = "0.8.4" @@ -248,51 +211,12 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" -[[package]] -name = "beef" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a8241f3ebb85c056b509d4327ad0358fbbba6ffb340bf388f26350aeda225b1" - -[[package]] -name = "bit-set" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" -dependencies = [ - "bit-vec", -] - -[[package]] -name = "bit-vec" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" - [[package]] name = "bitflags" version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967" -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "borsh" -version = "1.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad8646f98db542e39fc66e68a20b2144f6a732636df7c2354e74645faaa433ce" -dependencies = [ - "cfg_aliases", -] - [[package]] name = "bumpalo" version = "3.19.0" @@ -314,120 +238,12 @@ dependencies = [ "shlex", ] -[[package]] -name = "cedar-policy" -version = "4.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d37df3afde553492d8413d02a733e86a786c29f5b36c6d8d72bc6e5c0c7f63" -dependencies = [ - "cedar-policy-core", - "cedar-policy-formatter", - "cedar-policy-validator", - "itertools", - "lalrpop-util", - "lazy_static", - "miette", - "nonempty", - "ref-cast", - "semver", - "serde", - "serde_json", - "serde_with", - "smol_str", - "thiserror", -] - -[[package]] -name = "cedar-policy-core" -version = "4.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd896075d493e8283e960c94cf85d85773dc3359cf948a5f5ea88a6f249e8665" -dependencies = [ - "chrono", - "educe", - "either", - "itertools", - "lalrpop", - "lalrpop-util", - "lazy_static", - "miette", - "nonempty", - "ref-cast", - "regex", - "rustc_lexer", - "serde", - "serde_json", - "serde_with", - "smol_str", - "stacker", - "thiserror", -] - -[[package]] -name = "cedar-policy-formatter" -version = "4.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95db50a024d5ed3efe4b9b513124b564313716ada017860c17995ec227ab46b1" -dependencies = [ - "cedar-policy-core", - "itertools", - "lazy_static", - "logos", - "miette", - "pretty", - "regex", - "smol_str", -] - -[[package]] -name = "cedar-policy-validator" -version = "4.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f40762e669e4ec5a4b3a2b3d3aa2567d768aa74b735760f13197312c1150f69" -dependencies = [ - "cedar-policy-core", - "educe", - "itertools", - "lalrpop", - "lalrpop-util", - "lazy_static", - "miette", - "nonempty", - "ref-cast", - "serde", - "serde_json", - "serde_with", - "smol_str", - "stacker", - "thiserror", - "unicode-security", -] - [[package]] name = "cfg-if" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" -[[package]] -name = "cfg_aliases" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" - -[[package]] -name = "chrono" -version = "0.4.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "num-traits", - "serde", - "windows-link", -] - [[package]] name = "clap" version = "4.5.41" @@ -490,80 +306,6 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" -[[package]] -name = "cpufeatures" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" -dependencies = [ - "libc", -] - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "darling" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn", -] - -[[package]] -name = "darling_macro" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" -dependencies = [ - "darling_core", - "quote", - "syn", -] - -[[package]] -name = "deranged" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c9e6a11ca8224451684bc0d7d5a7adbf8f2fd6887261a1cfc3c0432f9d4068e" -dependencies = [ - "powerfmt", - "serde", -] - -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", -] - [[package]] name = "displaydoc" version = "0.2.5" @@ -575,39 +317,12 @@ dependencies = [ "syn", ] -[[package]] -name = "dyn-clone" -version = "1.0.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c7a8fb8a9fbf66c1f703fe16184d10ca0ee9d23be5b4436400408ba54a95005" - -[[package]] -name = "educe" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" -dependencies = [ - "enum-ordinalize", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "either" version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" -[[package]] -name = "ena" -version = "0.14.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d248bdd43ce613d87415282f69b9bb99d947d290b10962dd6c56233312c2ad5" -dependencies = [ - "log", -] - [[package]] name = "encoding_rs" version = "0.8.35" @@ -617,26 +332,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "enum-ordinalize" -version = "4.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea0dcfa4e54eeb516fe454635a95753ddd39acda650ce703031c6973e315dd5" -dependencies = [ - "enum-ordinalize-derive", -] - -[[package]] -name = "enum-ordinalize-derive" -version = "4.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d28318a75d4aead5c4db25382e8ef717932d0346600cacae6357eb5941bc5ff" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "envoy-types" version = "0.6.0" @@ -745,16 +440,6 @@ dependencies = [ "pin-utils", ] -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - [[package]] name = "getrandom" version = "0.2.16" @@ -796,19 +481,13 @@ dependencies = [ "futures-core", "futures-sink", "http", - "indexmap 2.9.0", + "indexmap", "slab", "tokio", "tokio-util", "tracing", ] -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - [[package]] name = "hashbrown" version = "0.15.4" @@ -821,21 +500,6 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - -[[package]] -name = "home" -version = "0.5.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" -dependencies = [ - "windows-sys 0.59.0", -] - [[package]] name = "http" version = "1.3.1" @@ -974,30 +638,6 @@ dependencies = [ "windows-registry", ] -[[package]] -name = "iana-time-zone" -version = "0.1.63" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "log", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - [[package]] name = "icu_collections" version = "2.0.0" @@ -1084,12 +724,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - [[package]] name = "idna" version = "1.0.3" @@ -1111,17 +745,6 @@ dependencies = [ "icu_properties", ] -[[package]] -name = "indexmap" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" -dependencies = [ - "autocfg", - "hashbrown 0.12.3", - "serde", -] - [[package]] name = "indexmap" version = "2.9.0" @@ -1129,8 +752,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cea70ddb795996207ad57735b50c5982d8844f38ba9ee5f1aedcfb708a2aa11e" dependencies = [ "equivalent", - "hashbrown 0.15.4", - "serde", + "hashbrown", ] [[package]] @@ -1180,47 +802,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "keccak" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" -dependencies = [ - "cpufeatures", -] - -[[package]] -name = "lalrpop" -version = "0.22.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba4ebbd48ce411c1d10fb35185f5a51a7bfa3d8b24b4e330d30c9e3a34129501" -dependencies = [ - "ascii-canvas", - "bit-set", - "ena", - "itertools", - "lalrpop-util", - "petgraph", - "pico-args", - "regex", - "regex-syntax", - "sha3", - "string_cache", - "term", - "unicode-xid", - "walkdir", -] - -[[package]] -name = "lalrpop-util" -version = "0.22.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5baa5e9ff84f1aefd264e6869907646538a52147a755d494517a8007fb48733" -dependencies = [ - "regex-automata", - "rustversion", -] - [[package]] name = "lazy_static" version = "1.5.0" @@ -1245,56 +826,12 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" -[[package]] -name = "lock_api" -version = "0.4.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765" -dependencies = [ - "autocfg", - "scopeguard", -] - [[package]] name = "log" version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" -[[package]] -name = "logos" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab6f536c1af4c7cc81edf73da1f8029896e7e1e16a219ef09b184e76a296f3db" -dependencies = [ - "logos-derive", -] - -[[package]] -name = "logos-codegen" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "189bbfd0b61330abea797e5e9276408f2edbe4f822d7ad08685d67419aafb34e" -dependencies = [ - "beef", - "fnv", - "lazy_static", - "proc-macro2", - "quote", - "regex-syntax", - "rustc_version", - "syn", -] - -[[package]] -name = "logos-derive" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebfe8e1a19049ddbfccbd14ac834b215e11b85b90bab0c2dba7c7b92fb5d5cba" -dependencies = [ - "logos-codegen", -] - [[package]] name = "matchit" version = "0.8.4" @@ -1307,29 +844,6 @@ version = "2.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" -[[package]] -name = "miette" -version = "7.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7" -dependencies = [ - "cfg-if", - "miette-derive", - "serde", - "unicode-width", -] - -[[package]] -name = "miette-derive" -version = "7.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "mime" version = "0.3.17" @@ -1380,43 +894,13 @@ dependencies = [ ] [[package]] -name = "new_debug_unreachable" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" - -[[package]] -name = "nonempty" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "303e8749c804ccd6ca3b428de7fe0d86cb86bc7606bc15291f100fd487960bb8" -dependencies = [ - "serde", -] - -[[package]] -name = "nu-ansi-term" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" -dependencies = [ - "overload", - "winapi", -] - -[[package]] -name = "num-conv" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" - -[[package]] -name = "num-traits" -version = "0.2.19" +name = "nu-ansi-term" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" dependencies = [ - "autocfg", + "overload", + "winapi", ] [[package]] @@ -1490,29 +974,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" -[[package]] -name = "parking_lot" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.9.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5" -dependencies = [ - "cfg-if", - "libc", - "redox_syscall", - "smallvec", - "windows-targets 0.52.6", -] - [[package]] name = "percent-encoding" version = "2.3.1" @@ -1526,24 +987,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" dependencies = [ "fixedbitset", - "indexmap 2.9.0", -] - -[[package]] -name = "phf_shared" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" -dependencies = [ - "siphasher", + "indexmap", ] -[[package]] -name = "pico-args" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5be167a7af36ee22fe3115051bc51f6e6c7054c9348e28deb4f49bd6f705a315" - [[package]] name = "pin-project" version = "1.1.10" @@ -1596,29 +1042,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "powerfmt" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" - -[[package]] -name = "precomputed-hash" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" - -[[package]] -name = "pretty" -version = "0.12.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac98773b7109bc75f475ab5a134c9b64b87e59d776d31098d8f346922396a477" -dependencies = [ - "arrayvec", - "typed-arena", - "unicode-width", -] - [[package]] name = "prettyplease" version = "0.2.35" @@ -1690,15 +1113,6 @@ dependencies = [ "prost", ] -[[package]] -name = "psm" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e944464ec8536cd1beb0bbfd96987eb5e3b72f2ecdafdc5c769a37f1fa2ae1f" -dependencies = [ - "cc", -] - [[package]] name = "quote" version = "1.0.40" @@ -1714,35 +1128,6 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" -[[package]] -name = "redox_syscall" -version = "0.5.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6" -dependencies = [ - "bitflags", -] - -[[package]] -name = "ref-cast" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a0ae411dbe946a674d89546582cea4ba2bb8defac896622d6496f14c23ba5cf" -dependencies = [ - "ref-cast-impl", -] - -[[package]] -name = "ref-cast-impl" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1165225c21bff1f3bbce98f5a1f889949bc902d3575308cc7b0de30b4f6d27c7" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "regex" version = "1.11.1" @@ -1832,24 +1217,6 @@ version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "989e6739f80c4ad5b13e0fd7fe89531180375b18520cc8c82080e4dc4035b84f" -[[package]] -name = "rustc_lexer" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c86aae0c77166108c01305ee1a36a1e77289d7dc6ca0a3cd91ff4992de2d16a5" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "rustc_version" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" -dependencies = [ - "semver", -] - [[package]] name = "rustix" version = "1.0.7" @@ -1908,15 +1275,6 @@ version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" -[[package]] -name = "same-file" -version = "1.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" -dependencies = [ - "winapi-util", -] - [[package]] name = "schannel" version = "0.1.27" @@ -1926,24 +1284,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "schemars" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" -dependencies = [ - "dyn-clone", - "ref-cast", - "serde", - "serde_json", -] - -[[package]] -name = "scopeguard" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" - [[package]] name = "security-framework" version = "2.11.1" @@ -1967,12 +1307,6 @@ dependencies = [ "libc", ] -[[package]] -name = "semver" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" - [[package]] name = "serde" version = "1.0.219" @@ -1999,7 +1333,6 @@ version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" dependencies = [ - "indexmap 2.9.0", "itoa", "memchr", "ryu", @@ -2018,47 +1351,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_with" -version = "3.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf65a400f8f66fb7b0552869ad70157166676db75ed8181f8104ea91cf9d0b42" -dependencies = [ - "base64", - "chrono", - "hex", - "indexmap 1.9.3", - "indexmap 2.9.0", - "schemars", - "serde", - "serde_derive", - "serde_json", - "serde_with_macros", - "time", -] - -[[package]] -name = "serde_with_macros" -version = "3.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81679d9ed988d5e9a5e6531dc3f2c28efbd639cbd1dfb628df08edea6004da77" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "sha3" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" -dependencies = [ - "digest", - "keccak", -] - [[package]] name = "sharded-slab" version = "0.1.7" @@ -2074,12 +1366,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" -[[package]] -name = "siphasher" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" - [[package]] name = "slab" version = "0.4.10" @@ -2092,16 +1378,6 @@ version = "1.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" -[[package]] -name = "smol_str" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9676b89cd56310a87b93dec47b11af744f34d5fc9f367b829474eec0a891350d" -dependencies = [ - "borsh", - "serde", -] - [[package]] name = "socket2" version = "0.5.10" @@ -2118,31 +1394,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" -[[package]] -name = "stacker" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cddb07e32ddb770749da91081d8d0ac3a16f1a569a18b20348cd371f5dead06b" -dependencies = [ - "cc", - "cfg-if", - "libc", - "psm", - "windows-sys 0.59.0", -] - -[[package]] -name = "string_cache" -version = "0.8.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" -dependencies = [ - "new_debug_unreachable", - "parking_lot", - "phf_shared", - "precomputed-hash", -] - [[package]] name = "strsim" version = "0.11.1" @@ -2220,36 +1471,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "term" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a984c8d058c627faaf5e8e2ed493fa3c51771889196de1016cf9c1c6e90d750" -dependencies = [ - "home", - "windows-sys 0.59.0", -] - -[[package]] -name = "thiserror" -version = "2.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "2.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "thread_local" version = "1.1.9" @@ -2259,37 +1480,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "time" -version = "0.3.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40" -dependencies = [ - "deranged", - "itoa", - "num-conv", - "powerfmt", - "serde", - "time-core", - "time-macros", -] - -[[package]] -name = "time-core" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c" - -[[package]] -name = "time-macros" -version = "0.2.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3526739392ec93fd8b359c8e98514cb3e8e021beb4e5f597b00a0221f8ed8a49" -dependencies = [ - "num-conv", - "time-core", -] - [[package]] name = "tinystr" version = "0.8.1" @@ -2300,21 +1490,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "tinyvec" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - [[package]] name = "tokio" version = "1.45.1" @@ -2450,7 +1625,7 @@ checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" dependencies = [ "futures-core", "futures-util", - "indexmap 2.9.0", + "indexmap", "pin-project-lite", "slab", "sync_wrapper", @@ -2567,61 +1742,12 @@ version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" -[[package]] -name = "typed-arena" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" - -[[package]] -name = "typenum" -version = "1.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" - [[package]] name = "unicode-ident" version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" -[[package]] -name = "unicode-normalization" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-script" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb421b350c9aff471779e262955939f565ec18b86c15364e6bdf0d662ca7c1f" - -[[package]] -name = "unicode-security" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e4ddba1535dd35ed8b61c52166b7155d7f4e4b8847cec6f48e71dc66d8b5e50" -dependencies = [ - "unicode-normalization", - "unicode-script", -] - -[[package]] -name = "unicode-width" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" - -[[package]] -name = "unicode-xid" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" - [[package]] name = "untrusted" version = "0.9.0" @@ -2669,22 +1795,6 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" -[[package]] -name = "version_check" -version = "0.9.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" - -[[package]] -name = "walkdir" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] - [[package]] name = "want" version = "0.3.1" @@ -2806,56 +1916,12 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" -[[package]] -name = "winapi-util" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" -dependencies = [ - "windows-sys 0.59.0", -] - [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows-core" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" -dependencies = [ - "windows-implement", - "windows-interface", - "windows-link", - "windows-result", - "windows-strings", -] - -[[package]] -name = "windows-implement" -version = "0.60.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-interface" -version = "0.59.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "windows-link" version = "0.1.3" diff --git a/Cargo.toml b/Cargo.toml index fb0668bc..8ae68ab6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,6 @@ name = "authzd" path = "src/lib.rs" [dependencies] -cedar-policy = "4.4.1" clap = { version = "4.5", features = ["derive", "env"] } envoy-types = "0.6.0" log = "0.4.27" diff --git a/Makefile b/Makefile index dbab0614..28fc0dfe 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,6 @@ setup: mise install mise exec go -- go install github.com/xlgmokha/minit@latest mise exec rust -- rustup component add clippy rustfmt rust-analyzer - mise exec rust -- cargo install --locked cedar-policy-cli $(AUTHZD_BIN): $(shell find src -name "*.rs" 2>/dev/null) Cargo.toml @cargo build --bin authzd --offline @@ -48,14 +47,7 @@ clean: fmt-rust: @cargo fmt -fmt-cedar: - @for policy in etc/authzd/*.cedar; do cedar format --policies $$policy --write; done - -fmt: fmt-rust fmt-cedar - -lint-cedar: - @for policy in etc/authzd/*.cedar; do cedar check-parse --policies $$policy; done - @for policy in etc/authzd/*.cedar; do cedar format --policies $$policy --check; done +fmt: fmt-rust lint-rust: @cargo clippy @@ -63,7 +55,7 @@ lint-rust: lint-envoy: @./bin/envoy --mode validate -c ./etc/envoy/envoy.yaml || echo "Envoy not available, skipping validation" -lint: lint-rust lint-cedar lint-envoy +lint: lint-rust lint-envoy doc: @cargo doc --open diff --git a/buf.gen.yaml b/buf.gen.yaml index e7215145..5af20b34 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -6,5 +6,3 @@ plugins: out: src/rpc opt: - compile_well_known_types - - disable_comments - - skip_debug diff --git a/build.rs b/build.rs index 57c72ec4..318f9bc9 100644 --- a/build.rs +++ b/build.rs @@ -1,21 +1,21 @@ use std::io::Result; fn main() -> Result<()> { - tonic_build::configure() - .build_server(false) - .out_dir("src/rpc") - .compile_protos( - &[ - "etc/proto/authzed/authzed/api/v1/core.proto", - "etc/proto/authzed/authzed/api/v1/debug.proto", - "etc/proto/authzed/authzed/api/v1/error_reason.proto", - "etc/proto/authzed/authzed/api/v1/experimental_service.proto", - "etc/proto/authzed/authzed/api/v1/openapi.proto", - "etc/proto/authzed/authzed/api/v1/permission_service.proto", - "etc/proto/authzed/authzed/api/v1/schema_service.proto", - "etc/proto/authzed/authzed/api/v1/watch_service.proto", - ], - &["etc/proto/authzed"], - )?; + // tonic_build::configure() + // .build_server(false) + // .out_dir("src/rpc") + // .compile_protos( + // &[ + // "etc/proto/authzed/authzed/api/v1/core.proto", + // "etc/proto/authzed/authzed/api/v1/debug.proto", + // "etc/proto/authzed/authzed/api/v1/error_reason.proto", + // "etc/proto/authzed/authzed/api/v1/experimental_service.proto", + // "etc/proto/authzed/authzed/api/v1/openapi.proto", + // "etc/proto/authzed/authzed/api/v1/permission_service.proto", + // "etc/proto/authzed/authzed/api/v1/schema_service.proto", + // "etc/proto/authzed/authzed/api/v1/watch_service.proto", + // ], + // &["etc/proto/authzed"], + // )?; Ok(()) } diff --git a/etc/authzd/gitlab.com/gitlab-org/gitlab/entities.json b/etc/authzd/gitlab.com/gitlab-org/gitlab/entities.json deleted file mode 100644 index a7af8c80..00000000 --- a/etc/authzd/gitlab.com/gitlab-org/gitlab/entities.json +++ /dev/null @@ -1,251 +0,0 @@ -[ - { - "uid": { - "type": "Project", - "id": "278964" - }, - "attrs": { - "name": "GitLab", - "path": "gitlab", - "full_path": "gitlab-org/gitlab" - }, - "parents": [ - { - "type": "Group", - "id": "9970" - } - ] - }, - { - "uid": { - "type": "User", - "id": "1" - }, - "attrs": { - "username": "sytses", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "263716" - }, - "attrs": { - "username": "grzesiek", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "370493" - }, - "attrs": { - "username": "luke", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "426128" - }, - "attrs": { - "username": "felipe_artur", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "138401" - }, - "attrs": { - "username": "chriscool", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "367626" - }, - "attrs": { - "username": "alejandro", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "516904" - }, - "attrs": { - "username": "tauriedavis", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "527558" - }, - "attrs": { - "username": "eliran.mesika", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "215818" - }, - "attrs": { - "username": "tmaczukin", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "429540" - }, - "attrs": { - "username": "ahanselka", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "506061" - }, - "attrs": { - "username": "ahmadsherif", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "581582" - }, - "attrs": { - "username": "arihantar", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "626804" - }, - "attrs": { - "username": "pedroms", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "597578" - }, - "attrs": { - "username": "WarheadsSE", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "739252" - }, - "attrs": { - "username": "jdrumtra", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "739361" - }, - "attrs": { - "username": "Elsje", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "201566" - }, - "attrs": { - "username": "annabeldunstone", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "829774" - }, - "attrs": { - "username": "jivanvl", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "4849" - }, - "attrs": { - "username": "balasankarc", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "790854" - }, - "attrs": { - "username": "harishsr", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "9970" - }, - "attrs": { - "name": "GitLab.org", - "path": "gitlab-org", - "full_path": "gitlab-org" - }, - "parents": [] - } -] \ No newline at end of file diff --git a/etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/entities.json b/etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/entities.json deleted file mode 100644 index 6bc513fb..00000000 --- a/etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/authzd/entities.json +++ /dev/null @@ -1,285 +0,0 @@ -[ - { - "uid": { - "type": "Project", - "id": "69516684" - }, - "attrs": { - "name": "authz.d", - "path": "authzd", - "full_path": "gitlab-org/software-supply-chain-security/authorization/authzd" - }, - "parents": [ - { - "type": "Group", - "id": "76595764" - } - ] - }, - { - "uid": { - "type": "User", - "id": "1" - }, - "attrs": { - "username": "sytses", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "116" - }, - "attrs": { - "username": "marin", - "access_level": 50 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "13356" - }, - "attrs": { - "username": "dblessing", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "3585" - }, - "attrs": { - "username": "axil", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "12452" - }, - "attrs": { - "username": "ayufan", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "64248" - }, - "attrs": { - "username": "stanhu", - "access_level": 50 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "263716" - }, - "attrs": { - "username": "grzesiek", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "283999" - }, - "attrs": { - "username": "dbalexandre", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "2293" - }, - "attrs": { - "username": "brodock", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "215818" - }, - "attrs": { - "username": "tmaczukin", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "128633" - }, - "attrs": { - "username": "rymai", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "273486" - }, - "attrs": { - "username": "jameslopez", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "201566" - }, - "attrs": { - "username": "annabeldunstone", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "426128" - }, - "attrs": { - "username": "felipe_artur", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "138401" - }, - "attrs": { - "username": "chriscool", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "367626" - }, - "attrs": { - "username": "alejandro", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "516904" - }, - "attrs": { - "username": "tauriedavis", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "527558" - }, - "attrs": { - "username": "eliran.mesika", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "429540" - }, - "attrs": { - "username": "ahanselka", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "506061" - }, - "attrs": { - "username": "ahmadsherif", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "9970" - }, - "attrs": { - "name": "GitLab.org", - "path": "gitlab-org", - "full_path": "gitlab-org" - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "97830335" - }, - "attrs": { - "name": "software-supply-chain-security", - "path": "software-supply-chain-security", - "full_path": "gitlab-org/software-supply-chain-security" - }, - "parents": [ - { - "type": "Group", - "id": "9970" - } - ] - }, - { - "uid": { - "type": "Group", - "id": "76595764" - }, - "attrs": { - "name": "Authorization", - "path": "authorization", - "full_path": "gitlab-org/software-supply-chain-security/authorization" - }, - "parents": [ - { - "type": "Group", - "id": "97830335" - } - ] - } -] \ No newline at end of file diff --git a/etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/entities.json b/etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/entities.json deleted file mode 100644 index 4846592a..00000000 --- a/etc/authzd/gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/entities.json +++ /dev/null @@ -1,285 +0,0 @@ -[ - { - "uid": { - "type": "Project", - "id": "68877410" - }, - "attrs": { - "name": "sparkle.d", - "path": "sparkled", - "full_path": "gitlab-org/software-supply-chain-security/authorization/sparkled" - }, - "parents": [ - { - "type": "Group", - "id": "76595764" - } - ] - }, - { - "uid": { - "type": "User", - "id": "1" - }, - "attrs": { - "username": "sytses", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "116" - }, - "attrs": { - "username": "marin", - "access_level": 50 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "13356" - }, - "attrs": { - "username": "dblessing", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "3585" - }, - "attrs": { - "username": "axil", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "12452" - }, - "attrs": { - "username": "ayufan", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "64248" - }, - "attrs": { - "username": "stanhu", - "access_level": 50 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "263716" - }, - "attrs": { - "username": "grzesiek", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "283999" - }, - "attrs": { - "username": "dbalexandre", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "2293" - }, - "attrs": { - "username": "brodock", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "215818" - }, - "attrs": { - "username": "tmaczukin", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "128633" - }, - "attrs": { - "username": "rymai", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "273486" - }, - "attrs": { - "username": "jameslopez", - "access_level": 40 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "201566" - }, - "attrs": { - "username": "annabeldunstone", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "426128" - }, - "attrs": { - "username": "felipe_artur", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "138401" - }, - "attrs": { - "username": "chriscool", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "367626" - }, - "attrs": { - "username": "alejandro", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "516904" - }, - "attrs": { - "username": "tauriedavis", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "527558" - }, - "attrs": { - "username": "eliran.mesika", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "429540" - }, - "attrs": { - "username": "ahanselka", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "506061" - }, - "attrs": { - "username": "ahmadsherif", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "9970" - }, - "attrs": { - "name": "GitLab.org", - "path": "gitlab-org", - "full_path": "gitlab-org" - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "97830335" - }, - "attrs": { - "name": "software-supply-chain-security", - "path": "software-supply-chain-security", - "full_path": "gitlab-org/software-supply-chain-security" - }, - "parents": [ - { - "type": "Group", - "id": "9970" - } - ] - }, - { - "uid": { - "type": "Group", - "id": "76595764" - }, - "attrs": { - "name": "Authorization", - "path": "authorization", - "full_path": "gitlab-org/software-supply-chain-security/authorization" - }, - "parents": [ - { - "type": "Group", - "id": "97830335" - } - ] - } -] \ No newline at end of file diff --git a/etc/authzd/policy0.cedar b/etc/authzd/policy0.cedar deleted file mode 100644 index bcc9a316..00000000 --- a/etc/authzd/policy0.cedar +++ /dev/null @@ -1,16 +0,0 @@ -permit (principal, action, resource) -when -{ - context has path && - context has method && - (context.method == "GET" || context.method == "HEAD") && - (context.path like "*.css" || - context.path like "*.js" || - context.path like "*.ico" || - context.path like "*.png" || - context.path like "*.jpg" || - context.path like "*.jpeg" || - context.path like "*.gif" || - context.path like "*.bmp" || - context.path like "*.html") -}; diff --git a/etc/authzd/policy1.cedar b/etc/authzd/policy1.cedar deleted file mode 100644 index 966bbcfb..00000000 --- a/etc/authzd/policy1.cedar +++ /dev/null @@ -1,37 +0,0 @@ -permit (principal, action, resource) -when -{ - context has host && - context has method && - context has path && - ((context.host == "sparkle.runway.gitlab.net" || - context.host == "sparkle.staging.runway.gitlab.net" || - context.host like "localhost:*") && - ((context.method == "GET" && - (context.path == "/" || - context.path == "/callback" || - context.path == "/dashboard/nav" || - context.path == "/health" || - context.path == "/signout" || - context.path == "/sparkles")) || - (context.method == "POST" && (context.path == "/sparkles/restore")))) -}; - -permit ( - principal is User, - action == Action::"POST", - resource == Resource::"/sparkles" -) -when -{ - context has host && - context.host == "sparkle.staging.runway.gitlab.net" && - principal has username -}; - -permit ( - principal == User::"1", - action == Action::"GET", - resource == Resource::"/dashboard" -) -when { context has host && context.host == "localhost:10000" }; diff --git a/etc/authzd/spice.schema b/etc/authzd/spice.schema index 0d6a6482..da408b80 100644 --- a/etc/authzd/spice.schema +++ b/etc/authzd/spice.schema @@ -1,7 +1,17 @@ definition user {} + definition project { relation developer: user relation maintainer: user + + permission read = developer + maintainer + permission write = maintainer +} + +definition group { + relation developer: user + relation maintainer: user + permission read = developer + maintainer permission write = maintainer } diff --git a/etc/authzd/staging.gitlab.com/authorization/sparkle/team/entities.json b/etc/authzd/staging.gitlab.com/authorization/sparkle/team/entities.json deleted file mode 100644 index 5515d6a1..00000000 --- a/etc/authzd/staging.gitlab.com/authorization/sparkle/team/entities.json +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "uid": { - "type": "Project", - "id": "16781932" - }, - "attrs": { - "name": "team", - "path": "team", - "full_path": "authorization/sparkle/team" - }, - "parents": [ - { - "type": "Group", - "id": "24445167" - } - ] - }, - { - "uid": { - "type": "User", - "id": "1675940" - }, - "attrs": { - "username": "mokhax", - "access_level": 50 - }, - "parents": [] - }, - { - "uid": { - "type": "User", - "id": "1676317" - }, - "attrs": { - "username": "jayswain", - "access_level": 30 - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "24445166" - }, - "attrs": { - "name": "authorization", - "path": "authorization", - "full_path": "authorization" - }, - "parents": [] - }, - { - "uid": { - "type": "Group", - "id": "24445167" - }, - "attrs": { - "name": "sparkle", - "path": "sparkle", - "full_path": "authorization/sparkle" - }, - "parents": [ - { - "type": "Group", - "id": "24445166" - } - ] - } -] \ No newline at end of file diff --git a/share/man/cedar/README.md b/share/man/cedar/README.md deleted file mode 100644 index ec665d69..00000000 --- a/share/man/cedar/README.md +++ /dev/null @@ -1,125 +0,0 @@ -# Cedar Authorization Guide - -Cedar provides policy-based authorization using Amazon's Cedar policy -language. This service handles request authorization through Envoy's -`ext_authz` filter. - -## Architecture - -``` -+---------------------------------------------------------------------+ -| Client Request | -+---------------------------------------------------------------------+ - │ - V -+---------------------------------------------------------------------+ -│ Envoy Proxy (:20000) | -│ | -│ * JWT Filter extracts x-jwt-claim-sub header | -│ * ext_authz sends CheckRequest to authzd | -+---------------------------------------------------------------------+ - | ext_authz - V - +---------------------+ - | authzd (:50052) | - | | - | +-----------------+ | - | | Cedar Policies | | - | | * Static Assets | | - | | * JWT Claims | | - | | * Path Rules | | - | +-----------------+ | - +---------------------+ -``` - -## Authorization Flow - -``` - Client Envoy authzd - | | | - | HTTP Request + JWT | | - |---------------------->| | - | | Extract JWT claims | - | | Add x-jwt-claim-sub | - | | | - | | ext_authz CheckRequest | - | |----------------------->| - | | | - | | | Evaluate - | | | Cedar - | | | policies - | | Allow/Deny | - | |<-----------------------| - | | | - | Forward request | | - | or 403 Forbidden | | - |<----------------------| | -``` - -## Cedar Policies - -### Policy Structure - -Policies are stored in `etc/authzd/*.cedar` files using Cedar's policy language: - -```cedar -permit ( - principal == User::"1", - action == Action::"GET", - resource == Resource::"/sparkle/" -) -when -{ - context has host && - context.host == "sparkle.staging.runway.gitlab.net" && - principal has username -}; -``` - -## JWT Integration - -### JWT Header Extraction - -Envoy's JWT filter extracts claims and adds them as headers: - -- `x-jwt-claim-sub` - User ID (subject) - -## Policy Development - -### Adding New Policies - -1. Create or edit `.cedar` files in `etc/authzd/` -2. Use Cedar policy syntax for rules -3. Test with `make test` -4. Validate with `make lint` - -### Policy Validation - -```bash -# Check policy syntax -cedar check-parse --policies etc/authzd/policy1.cedar - -# Format policies -cedar format --policies etc/authzd/policy1.cedar --check -``` - -### Testing Policies - -```bash -# Run Cedar authorization tests -cargo test authorization::cedar_authorizer_test - -# Test specific scenarios -cargo test test_sparkle_homepage -``` - -## Make Targets - -- `make test` - Run all tests including Cedar policy tests -- `make lint` - Validate Cedar policy syntax and formatting - -## References - -- [Cedar Policy Language](https://docs.cedarpolicy.com/) -- [Cedar Language Guide](https://docs.cedarpolicy.com/policies/syntax.html) -- [Envoy JWT Authentication](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/jwt_authn_filter) diff --git a/src/authorization/cedar/authorizer.rs b/src/authorization/cedar/authorizer.rs deleted file mode 100644 index c7086dd3..00000000 --- a/src/authorization/cedar/authorizer.rs +++ /dev/null @@ -1,179 +0,0 @@ -use std::fs; -use std::str::FromStr; - -#[derive(Debug)] -pub struct Authorizer { - authorizer: cedar_policy::Authorizer, - entities: cedar_policy::Entities, - policies: cedar_policy::PolicySet, -} - -impl Authorizer { - pub fn new(policies: cedar_policy::PolicySet, entities: cedar_policy::Entities) -> Authorizer { - Authorizer { - policies, - entities, - authorizer: cedar_policy::Authorizer::new(), - } - } - - pub fn new_from(path: &std::path::Path, entities: cedar_policy::Entities) -> Authorizer { - Self::new( - Self::load_from(path).unwrap_or_else(|e| { - tracing::error!( - path = ?path, - error = %e, - "Failed to load Cedar policies, using empty policy set" - ); - cedar_policy::PolicySet::default() - }), - entities, - ) - } - - fn load_from( - path: &std::path::Path, - ) -> Result> { - if !path.exists() { - return Ok(cedar_policy::PolicySet::default()); - } - - if path.is_file() && path.extension().is_some_and(|ext| ext == "cedar") { - let content = fs::read_to_string(path)?; - return Ok(cedar_policy::PolicySet::from_str(&content)?); - } - - if !path.is_dir() { - return Ok(cedar_policy::PolicySet::default()); - } - - let mut policies = cedar_policy::PolicySet::new(); - for entry in fs::read_dir(path)? { - policies.merge(&Self::load_from(&entry?.path())?, true)?; - } - Ok(policies) - } - - fn map_from( - &self, - http_request: envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest, - ) -> Result> { - let principal = self.principal_from(&http_request)?; - let permission = self.permission_from(&http_request)?; - let resource = self.resource_from(&http_request)?; - let context = self.context_from(http_request)?; - - Ok(cedar_policy::Request::new( - principal, permission, resource, context, None, - )?) - } - - fn principal_from( - &self, - http_request: &envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest, - ) -> Result> { - let subject = http_request - .headers - .get("x-jwt-claim-sub") - .map_or("", |v| v); - - Ok(cedar_policy::EntityUid::from_type_name_and_id( - cedar_policy::EntityTypeName::from_str("User")?, - cedar_policy::EntityId::from_str(subject)?, - )) - } - - fn permission_from( - &self, - http_request: &envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest, - ) -> Result> { - Ok(cedar_policy::EntityUid::from_type_name_and_id( - cedar_policy::EntityTypeName::from_str("Action")?, - cedar_policy::EntityId::from_str(&http_request.method)?, - )) - } - - fn resource_from( - &self, - http_request: &envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest, - ) -> Result> { - Ok(cedar_policy::EntityUid::from_type_name_and_id( - cedar_policy::EntityTypeName::from_str("Resource")?, - cedar_policy::EntityId::from_str(&http_request.path)?, - )) - } - - fn context_from( - &self, - http_request: envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest, - ) -> Result> { - let mut items = std::collections::HashMap::new(); - - items.insert("host".to_string(), self.safe_string(&http_request.host)); - items.insert("method".to_string(), self.safe_string(&http_request.method)); - items.insert("path".to_string(), self.safe_string(&http_request.path)); - - Ok(cedar_policy::Context::from_pairs( - items.into_iter().collect::>(), - )?) - } - - fn safe_string(&self, item: &str) -> cedar_policy::RestrictedExpression { - cedar_policy::RestrictedExpression::new_string(item.to_string()) - } -} - -impl Default for Authorizer { - fn default() -> Self { - Self::new_from( - std::path::Path::new("./etc/authzd"), - cedar_policy::Entities::empty(), - ) - } -} - -impl crate::authorization::authorizer::Authorizer for Authorizer { - fn authorize(&self, request: envoy_types::pb::envoy::service::auth::v3::CheckRequest) -> bool { - let http_request = match request - .attributes - .as_ref() - .and_then(|attr| attr.request.as_ref()) - .and_then(|req| req.http.as_ref()) - { - Some(http) => http, - None => return false, - }; - - match self.map_from(http_request.clone()) { - Ok(cedar_request) => { - let response = - self.authorizer - .is_authorized(&cedar_request, &self.policies, &self.entities); - - let decision = response.decision(); - - tracing::info!( - decision = ?decision, - diagnostics = ?response.diagnostics(), - principal = %cedar_request.principal().unwrap(), - action = %cedar_request.action().unwrap(), - resource = %cedar_request.resource().unwrap(), - host = %http_request.host, - method = %http_request.method, - path = %http_request.path, - "http" - ); - - matches!(decision, cedar_policy::Decision::Allow) - } - Err(e) => { - tracing::error!( - error = %e, - path = %http_request.path, - "Failed to create Cedar request" - ); - false - } - } - } -} diff --git a/src/authorization/cedar/entities.rs b/src/authorization/cedar/entities.rs deleted file mode 100644 index 050f6f26..00000000 --- a/src/authorization/cedar/entities.rs +++ /dev/null @@ -1,145 +0,0 @@ -use crate::gitlab::Api; -use serde::Serialize; -use std::collections::HashSet; -use std::future::Future; -use std::pin::Pin; - -type BoxFuture<'a, T> = Pin + 'a>>; - -// Cedar entity structures -// Note: We define custom types instead of using cedar_policy::Entity directly because: -// 1. Cedar's Entity type is for runtime use, not JSON serialization -// 2. These types ensure our JSON output matches Cedar's expected format exactly -// 3. The #[serde(rename)] attributes handle Cedar's specific field naming requirements -#[derive(Debug, Serialize)] -pub struct CedarEntity { - pub uid: CedarUid, - pub attrs: serde_json::Value, - pub parents: Vec, -} - -#[derive(Debug, Serialize)] -pub struct CedarUid { - #[serde(rename = "type")] - pub entity_type: String, - pub id: String, -} - -#[derive(Debug, Serialize)] -pub struct CedarParent { - #[serde(rename = "type")] - pub parent_type: String, - pub id: String, -} - -pub struct EntitiesRepository { - api: Api, -} - -impl EntitiesRepository { - pub fn new(api: Api) -> EntitiesRepository { - EntitiesRepository { api } - } - - pub async fn all( - &self, - project_path: String, - ) -> Result, Box> { - let mut entities = Vec::new(); - let mut groups = HashSet::new(); - - let project = self.api.get_project(&project_path).await?; - - entities.push(CedarEntity { - uid: CedarUid { - entity_type: "Project".to_string(), - id: project.id.to_string(), - }, - attrs: serde_json::json!({ - "name": project.name, - "path": project.path, - "full_path": format!("{}/{}", project.namespace.full_path, project.path), - }), - parents: if project.namespace.kind == "group" { - vec![CedarParent { - parent_type: "Group".to_string(), - id: project.namespace.id.to_string(), - }] - } else { - vec![] - }, - }); - - for member in self.api.get_project_members(project.id).await? { - if member.state == "active" { - entities.push(CedarEntity { - uid: CedarUid { - entity_type: "User".to_string(), - id: member.id.to_string(), - }, - attrs: serde_json::json!({ - "username": member.username, - "access_level": member.access_level, - }), - parents: vec![], - }); - } - } - - if project.namespace.kind == "group" { - self.fetch_hierarchy(project.namespace.id, &mut entities, &mut groups) - .await?; - } - - Ok(entities) - } - - /// Validates that the entities can be parsed by Cedar - pub fn is_valid(entities: &[CedarEntity]) -> Result<(), Box> { - let json = serde_json::to_string(entities)?; - cedar_policy::Entities::from_json_str(&json, None)?; - Ok(()) - } - - fn fetch_hierarchy<'a>( - &'a self, - group_id: u64, - entities: &'a mut Vec, - groups: &'a mut HashSet, - ) -> BoxFuture<'a, Result<(), Box>> { - Box::pin(async move { - if groups.contains(&group_id) { - return Ok(()); - } - - groups.insert(group_id); - - let group = self.api.get_group(group_id).await?; - - let parents = if let Some(parent_id) = group.parent_id { - self.fetch_hierarchy(parent_id, entities, groups).await?; - vec![CedarParent { - parent_type: "Group".to_string(), - id: parent_id.to_string(), - }] - } else { - vec![] - }; - - entities.push(CedarEntity { - uid: CedarUid { - entity_type: "Group".to_string(), - id: group.id.to_string(), - }, - attrs: serde_json::json!({ - "name": group.name, - "path": group.path, - "full_path": group.full_path, - }), - parents, - }); - - Ok(()) - }) - } -} diff --git a/src/authorization/cedar/mod.rs b/src/authorization/cedar/mod.rs deleted file mode 100644 index 8be10feb..00000000 --- a/src/authorization/cedar/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -pub mod authorizer; -pub mod entities; - -pub use authorizer::*; -pub use entities::*; diff --git a/src/authorization/mod.rs b/src/authorization/mod.rs index 664096e5..c3aa366d 100644 --- a/src/authorization/mod.rs +++ b/src/authorization/mod.rs @@ -1,5 +1,4 @@ pub mod authorizer; -pub mod cedar; pub mod check_service; pub mod default; pub mod server; diff --git a/src/bin/cli.rs b/src/bin/cli.rs index a6d2fa8a..64b5734d 100644 --- a/src/bin/cli.rs +++ b/src/bin/cli.rs @@ -1,13 +1,7 @@ -use authzd::EntitiesRepository; -use authzd::gitlab::Api; use clap::{Parser, Subcommand}; #[derive(Parser, Debug)] -#[command( - author, - version, - about = "Authorization CLI for managing Cedar entities and policies" -)] +#[command(author, version, about = "Authorization CLI for managing policies")] struct Args { #[command(subcommand)] command: Commands, @@ -15,29 +9,6 @@ struct Args { #[derive(Subcommand, Debug)] enum Commands { - /// Generate entities from GitLab API - Generate { - /// Project ID or path (e.g., gitlab-org/gitlab) - #[arg(short, long)] - project: String, - - /// Output file path - #[arg(short, long, default_value = "entities.json")] - output: String, - - /// GitLab API token - #[arg(short, long, env = "GITLAB_TOKEN")] - token: String, - - /// GitLab instance URL - #[arg( - short = 'H', - long, - env = "GITLAB_HOST", - default_value = "https://gitlab.com" - )] - host: String, - }, Server { /// Address to bind to #[arg(short, long, env = "BIND_ADDR", default_value = "127.0.0.1:50052")] @@ -50,24 +21,6 @@ async fn main() -> Result<(), Box> { let args = Args::parse(); match args.command { - Commands::Generate { - project, - output, - token, - host, - } => { - let repository = EntitiesRepository::new(Api::new(token, host)); - let entities = repository.all(project).await?; - EntitiesRepository::is_valid(&entities)?; - let json = serde_json::to_string_pretty(&entities)?; - std::fs::write(&output, json)?; - - println!( - "Successfully generated {} entities to {}", - entities.len(), - output - ); - } Commands::Server { addr } => { tracing_subscriber::fmt() .json() @@ -85,7 +38,7 @@ async fn main() -> Result<(), Box> { tracing::info!(address = %addr, "Starting"); authzd::authorization::Server::new( - authzd::authorization::cedar::Authorizer::default(), + authzd::authorization::spice::Authorizer::default(), )? .serve(addr.parse().unwrap()) .await?; diff --git a/src/gitlab/api.rs b/src/gitlab/api.rs deleted file mode 100644 index 9047ddaf..00000000 --- a/src/gitlab/api.rs +++ /dev/null @@ -1,53 +0,0 @@ -use crate::gitlab::{Group, Member, Project}; -use reqwest::Client; - -pub struct Api { - pub token: String, - pub host: String, - client: Client, -} - -impl Api { - pub fn new(token: String, host: String) -> Api { - Api { - token, - host, - client: Client::new(), - } - } - - pub async fn get_project(&self, project: &str) -> Result> { - self.get::(format!("/api/v4/projects/{}", urlencoding::encode(project))) - .await - } - - pub async fn get_project_members( - &self, - project_id: u64, - ) -> Result, Box> { - self.get::>(format!("/api/v4/projects/{project_id}/members/all")) - .await - } - - pub async fn get_group(&self, group_id: u64) -> Result> { - self.get::(format!("/api/v4/groups/{group_id}")) - .await - } - - async fn get( - &self, - path: String, - ) -> Result> { - let url = format!("{}{}", self.host.trim_end_matches('/'), path); - - Ok(self - .client - .get(&url) - .header("PRIVATE-TOKEN", &self.token) - .send() - .await? - .error_for_status()? - .json() - .await?) - } -} diff --git a/src/gitlab/group.rs b/src/gitlab/group.rs deleted file mode 100644 index 6b00e87d..00000000 --- a/src/gitlab/group.rs +++ /dev/null @@ -1,10 +0,0 @@ -use serde::Deserialize; - -#[derive(Debug, Deserialize)] -pub struct Group { - pub id: u64, - pub name: String, - pub path: String, - pub full_path: String, - pub parent_id: Option, -} diff --git a/src/gitlab/member.rs b/src/gitlab/member.rs deleted file mode 100644 index b44b88f2..00000000 --- a/src/gitlab/member.rs +++ /dev/null @@ -1,9 +0,0 @@ -use serde::Deserialize; - -#[derive(Debug, Deserialize)] -pub struct Member { - pub id: u64, - pub username: String, - pub state: String, - pub access_level: u64, -} diff --git a/src/gitlab/mod.rs b/src/gitlab/mod.rs deleted file mode 100644 index e1993d81..00000000 --- a/src/gitlab/mod.rs +++ /dev/null @@ -1,11 +0,0 @@ -pub mod api; -pub mod group; -pub mod member; -pub mod namespace; -pub mod project; - -pub use api::Api; -pub use group::Group; -pub use member::Member; -pub use namespace::Namespace; -pub use project::Project; diff --git a/src/gitlab/namespace.rs b/src/gitlab/namespace.rs deleted file mode 100644 index d4a1e8f4..00000000 --- a/src/gitlab/namespace.rs +++ /dev/null @@ -1,11 +0,0 @@ -use serde::Deserialize; - -#[derive(Debug, Deserialize)] -pub struct Namespace { - pub id: u64, - pub name: String, - pub path: String, - pub kind: String, - pub full_path: String, - pub parent_id: Option, -} diff --git a/src/gitlab/project.rs b/src/gitlab/project.rs deleted file mode 100644 index ba88c2e3..00000000 --- a/src/gitlab/project.rs +++ /dev/null @@ -1,11 +0,0 @@ -use serde::Deserialize; - -use super::Namespace; - -#[derive(Debug, Deserialize)] -pub struct Project { - pub id: u64, - pub name: String, - pub path: String, - pub namespace: Namespace, -} diff --git a/src/lib.rs b/src/lib.rs index 918543dd..2f021af8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,4 @@ pub mod authorization; -pub mod gitlab; -pub use authorization::cedar::{Authorizer as CedarAuthorizer, CedarEntity, EntitiesRepository}; pub use authorization::spice::Authorizer as SpiceAuthorizer; pub use authorization::{Authorizer, CheckService, Server}; diff --git a/src/rpc/authzed.api.materialize.v0.rs b/src/rpc/authzed.api.materialize.v0.rs new file mode 100644 index 00000000..57bdacfd --- /dev/null +++ b/src/rpc/authzed.api.materialize.v0.rs @@ -0,0 +1,315 @@ +// @generated +// This file is @generated by prost-build. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchPermissionsRequest { + /// permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must + /// be a subset or equal to the permissions that were enabled for the service. + #[prost(message, repeated, tag="1")] + pub permissions: ::prost::alloc::vec::Vec, + /// optional_starting_after is the revision token to start watching from. If not provided, the stream + /// will start from the current revision at the moment of the request. + #[prost(message, optional, tag="2")] + pub optional_starting_after: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchedPermission { + /// resource_type is the type of the resource to watch for changes. + #[prost(string, tag="1")] + pub resource_type: ::prost::alloc::string::String, + /// permission is the permission to watch for changes. + #[prost(string, tag="2")] + pub permission: ::prost::alloc::string::String, + /// subject_type is the type of the subject to watch for changes. + #[prost(string, tag="3")] + pub subject_type: ::prost::alloc::string::String, + /// optional_subject_relation is the relation on the subject to watch for changes. + #[prost(string, tag="4")] + pub optional_subject_relation: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchPermissionsResponse { + #[prost(oneof="watch_permissions_response::Response", tags="1, 2")] + pub response: ::core::option::Option, +} +/// Nested message and enum types in `WatchPermissionsResponse`. +pub mod watch_permissions_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Response { + /// change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB. + /// The consumer should apply this change to the current state of the computed permissions in their target system. + /// Once an event arrives with completed_revision instead, the consumer shall consider there are not more changes + /// originating from that revision. + /// + /// The consumer should keep track of the revision in order to resume streaming in the event of consumer restarts. + #[prost(message, tag="1")] + Change(super::PermissionChange), + /// completed_revision is the revision token that indicates all changes originating from a revision have been + /// streamed and thus the revision should be considered completed. It may also be + /// received without accompanying set of changes, indicating that a mutation in the origin SpiceDB cluster did + /// not yield any effective changes in the computed permissions + #[prost(message, tag="2")] + CompletedRevision(super::super::super::v1::ZedToken), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PermissionChange { + /// revision represents the revision at which the change occurred. + #[prost(message, optional, tag="1")] + pub revision: ::core::option::Option, + /// resource is the resource that the permission change is related to. + #[prost(message, optional, tag="2")] + pub resource: ::core::option::Option, + /// permission is the permission that has changed. + #[prost(string, tag="3")] + pub permission: ::prost::alloc::string::String, + /// subject is the subject that the permission change is related to. + #[prost(message, optional, tag="4")] + pub subject: ::core::option::Option, + /// permissionship is the new permissionship of the subject over the resource after the change. + #[prost(enumeration="permission_change::Permissionship", tag="5")] + pub permissionship: i32, +} +/// Nested message and enum types in `PermissionChange`. +pub mod permission_change { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Permissionship { + Unspecified = 0, + NoPermission = 1, + HasPermission = 2, + ConditionalPermission = 3, + } + impl Permissionship { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Permissionship::Unspecified => "PERMISSIONSHIP_UNSPECIFIED", + Permissionship::NoPermission => "PERMISSIONSHIP_NO_PERMISSION", + Permissionship::HasPermission => "PERMISSIONSHIP_HAS_PERMISSION", + Permissionship::ConditionalPermission => "PERMISSIONSHIP_CONDITIONAL_PERMISSION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "PERMISSIONSHIP_UNSPECIFIED" => Some(Self::Unspecified), + "PERMISSIONSHIP_NO_PERMISSION" => Some(Self::NoPermission), + "PERMISSIONSHIP_HAS_PERMISSION" => Some(Self::HasPermission), + "PERMISSIONSHIP_CONDITIONAL_PERMISSION" => Some(Self::ConditionalPermission), + _ => None, + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchPermissionSetsRequest { + /// optional_starting_after is used to specify the SpiceDB revision to start watching from. + /// If not specified, the watch will start from the current SpiceDB revision time of the request ("head revision"). + #[prost(message, optional, tag="1")] + pub optional_starting_after: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchPermissionSetsResponse { + #[prost(oneof="watch_permission_sets_response::Response", tags="1, 2, 3, 4")] + pub response: ::core::option::Option, +} +/// Nested message and enum types in `WatchPermissionSetsResponse`. +pub mod watch_permission_sets_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Response { + /// change is the permission set delta that has occurred as result of a mutation in origin SpiceDB. + /// The consumer should apply this change to the current state of the permission sets in their target system. + /// Once an event arrives with completed_revision instead, the consumer shall consider the set of + /// changes originating from that revision completed. + /// + /// The consumer should keep track of the revision in order to resume streaming in the event of consumer restarts. + #[prost(message, tag="1")] + Change(super::PermissionSetChange), + /// completed_revision is the revision token that indicates the completion of a set of changes. It may also be + /// received without accompanying set of changes, indicating that a mutation in the origin SpiceDB cluster did + /// not yield any effective changes in the permission sets + #[prost(message, tag="2")] + CompletedRevision(super::super::super::v1::ZedToken), + /// lookup_permission_sets_required is a signal that the consumer should perform a LookupPermissionSets call because + /// the permission set snapshot needs to be rebuilt from scratch. This typically happens when the origin SpiceDB + /// cluster has seen its schema changed. + #[prost(message, tag="3")] + LookupPermissionSetsRequired(super::LookupPermissionSetsRequired), + /// breaking_schema_change is a signal that a breaking schema change has been written to the origin SpiceDB cluster, + /// and that the consumer should expect delays in the ingestion of new changes, + /// because the permission set snapshot needs to be rebuilt from scratch. Once the snapshot is ready, the consumer + /// will receive a LookupPermissionSetsRequired event. + #[prost(message, tag="4")] + BreakingSchemaChange(super::BreakingSchemaChange), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Cursor { + /// limit is the number of permission sets to stream over a single LookupPermissionSets call that was requested. + #[prost(uint32, tag="1")] + pub limit: u32, + /// token is the snapshot revision at which the cursor was computed. + #[prost(message, optional, tag="4")] + pub token: ::core::option::Option, + /// starting_index is an offset of the permission set represented by this cursor + #[prost(uint32, tag="5")] + pub starting_index: u32, + /// completed_members is a boolean flag that indicates that the cursor has reached the end of the permission sets + #[prost(bool, tag="6")] + pub completed_members: bool, + /// starting_key is a string cursor used by some backends to resume the stream from a specific point. + #[prost(string, tag="7")] + pub starting_key: ::prost::alloc::string::String, + /// cursor is a string-encoded internal materialize cursor. + #[prost(string, tag="8")] + pub cursor: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupPermissionSetsRequest { + /// limit is the number of permission sets to stream over a single LookupPermissionSets. Once the limit is reached, + /// the server will close the stream. If more permission sets are available, the consume should open a new stream + /// providing optional_starting_after_cursor, using the cursor from the last response. + #[prost(uint32, tag="1")] + pub limit: u32, + /// optional_at_revision specifies the client is requesting to lookup PermissionSets at a specific revision. It's + /// optional, and if not provided, PermissionSets will be looked up at the current revision. The cursor always + /// takes precedence in defining the revision when present. + #[prost(message, optional, tag="2")] + pub optional_at_revision: ::core::option::Option, + /// optional_starting_after_cursor is used to specify the offset to start streaming permission sets from. + #[prost(message, optional, tag="4")] + pub optional_starting_after_cursor: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupPermissionSetsResponse { + /// change represents the permission set delta necessary to transition an uninitialized target system to + /// a specific snapshot revision. In practice it's not different from the WatchPermissionSetsResponse.change, except + /// all changes will be of time SET_OPERATION_ADDED because it's assumed there is no known previous state. + /// + /// Applying the deltas to a previously initialized target system would yield incorrect results. + #[prost(message, optional, tag="1")] + pub change: ::core::option::Option, + /// cursor points to a specific permission set in a revision. + /// The consumer should keep track of the cursor in order to resume streaming in the event of consumer restarts. This + /// is particularly important in backfill scenarios that may take hours or event days to complete. + #[prost(message, optional, tag="2")] + pub cursor: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PermissionSetChange { + /// revision represents the revision at which the permission set change occurred. + #[prost(message, optional, tag="1")] + pub at_revision: ::core::option::Option, + /// operation represents the type of set operation that took place as part of the change + #[prost(enumeration="permission_set_change::SetOperation", tag="2")] + pub operation: i32, + /// parent_set represents the permission set parent of either another set or a member + #[prost(message, optional, tag="3")] + pub parent_set: ::core::option::Option, + #[prost(oneof="permission_set_change::Child", tags="4, 5")] + pub child: ::core::option::Option, +} +/// Nested message and enum types in `PermissionSetChange`. +pub mod permission_set_change { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SetOperation { + Unspecified = 0, + Added = 1, + Removed = 2, + } + impl SetOperation { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SetOperation::Unspecified => "SET_OPERATION_UNSPECIFIED", + SetOperation::Added => "SET_OPERATION_ADDED", + SetOperation::Removed => "SET_OPERATION_REMOVED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "SET_OPERATION_UNSPECIFIED" => Some(Self::Unspecified), + "SET_OPERATION_ADDED" => Some(Self::Added), + "SET_OPERATION_REMOVED" => Some(Self::Removed), + _ => None, + } + } + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Child { + /// child_set represents the scenario where another set is considered member of the parent set + #[prost(message, tag="4")] + ChildSet(super::SetReference), + /// child_member represents the scenario where an specific object is considered member of the parent set + #[prost(message, tag="5")] + ChildMember(super::MemberReference), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SetReference { + /// object_type is the type of object in a permission set + #[prost(string, tag="1")] + pub object_type: ::prost::alloc::string::String, + /// object_id is the ID of a permission set + #[prost(string, tag="2")] + pub object_id: ::prost::alloc::string::String, + /// permission_or_relation is the permission or relation referenced by this permission set + #[prost(string, tag="3")] + pub permission_or_relation: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MemberReference { + /// object_type is the type of object of a permission set member + #[prost(string, tag="1")] + pub object_type: ::prost::alloc::string::String, + /// object_id is the ID of a permission set member + #[prost(string, tag="2")] + pub object_id: ::prost::alloc::string::String, + /// optional_permission_or_relation is the permission or relation referenced by this permission set member + #[prost(string, tag="3")] + pub optional_permission_or_relation: ::prost::alloc::string::String, +} +/// LookupPermissionSetsRequired is a signal that the consumer should perform a LookupPermissionSets call because +/// the permission set snapshot needs to be rebuilt from scratch. This typically happens when the origin SpiceDB +/// cluster has seen its schema changed, see BreakingSchemaChange event. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupPermissionSetsRequired { + /// required_lookup_at is the snapshot revision at which the permission set needs to be rebuilt to. + #[prost(message, optional, tag="1")] + pub required_lookup_at: ::core::option::Option, +} +/// BreakingSchemaChange is used to signal a breaking schema change has happened, and that the consumer should +/// expect delays in the ingestion of new changes, because the permission set snapshot needs to be rebuilt from scratch. +/// Once the snapshot is ready, the consumer will receive a LookupPermissionSetsRequired event. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BreakingSchemaChange { + /// change_at is the revision at which a breaking schema event has happened. + #[prost(message, optional, tag="1")] + pub change_at: ::core::option::Option, +} +// @@protoc_insertion_point(module) diff --git a/src/rpc/authzed.api.v1.rs b/src/rpc/authzed.api.v1.rs new file mode 100644 index 00000000..6ad6df94 --- /dev/null +++ b/src/rpc/authzed.api.v1.rs @@ -0,0 +1,2496 @@ +// @generated +// This file is @generated by prost-build. +/// Relationship specifies how a resource relates to a subject. Relationships +/// form the data for the graph over which all permissions questions are +/// answered. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Relationship { + /// resource is the resource to which the subject is related, in some manner + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, + /// relation is how the resource and subject are related. + #[prost(string, tag="2")] + pub relation: ::prost::alloc::string::String, + /// subject is the subject to which the resource is related, in some manner. + #[prost(message, optional, tag="3")] + pub subject: ::core::option::Option, + /// optional_caveat is a reference to a the caveat that must be enforced over the relationship + #[prost(message, optional, tag="4")] + pub optional_caveat: ::core::option::Option, + /// optional_expires_at is the time at which the relationship expires, if any. + #[prost(message, optional, tag="5")] + pub optional_expires_at: ::core::option::Option, +} +/// ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships. +/// The context consists of key-value pairs that will be injected at evaluation time. +/// The keys must match the arguments defined on the caveat in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ContextualizedCaveat { + /// caveat_name is the name of the caveat expression to use, as defined in the schema + #[prost(string, tag="1")] + pub caveat_name: ::prost::alloc::string::String, + /// context consists of any named values that are defined at write time for the caveat expression + #[prost(message, optional, tag="2")] + pub context: ::core::option::Option, +} +/// SubjectReference is used for referring to the subject portion of a +/// Relationship. The relation component is optional and is used for defining a +/// sub-relation on the subject, e.g. group:123#members +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SubjectReference { + #[prost(message, optional, tag="1")] + pub object: ::core::option::Option, + #[prost(string, tag="2")] + pub optional_relation: ::prost::alloc::string::String, +} +/// ObjectReference is used to refer to a specific object in the system. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ObjectReference { + #[prost(string, tag="1")] + pub object_type: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub object_id: ::prost::alloc::string::String, +} +/// ZedToken is used to provide causality metadata between Write and Check +/// requests. +/// +/// See the authzed.api.v1.Consistency message for more information. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ZedToken { + #[prost(string, tag="1")] + pub token: ::prost::alloc::string::String, +} +/// Cursor is used to provide resumption of listing between calls to APIs +/// such as LookupResources. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Cursor { + #[prost(string, tag="1")] + pub token: ::prost::alloc::string::String, +} +/// RelationshipUpdate is used for mutating a single relationship within the +/// service. +/// +/// CREATE will create the relationship only if it doesn't exist, and error +/// otherwise. +/// +/// TOUCH will upsert the relationship, and will not error if it +/// already exists. +/// +/// DELETE will delete the relationship. If the relationship does not exist, +/// this operation will no-op. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RelationshipUpdate { + #[prost(enumeration="relationship_update::Operation", tag="1")] + pub operation: i32, + #[prost(message, optional, tag="2")] + pub relationship: ::core::option::Option, +} +/// Nested message and enum types in `RelationshipUpdate`. +pub mod relationship_update { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Operation { + Unspecified = 0, + Create = 1, + Touch = 2, + Delete = 3, + } + impl Operation { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Operation::Unspecified => "OPERATION_UNSPECIFIED", + Operation::Create => "OPERATION_CREATE", + Operation::Touch => "OPERATION_TOUCH", + Operation::Delete => "OPERATION_DELETE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "OPERATION_UNSPECIFIED" => Some(Self::Unspecified), + "OPERATION_CREATE" => Some(Self::Create), + "OPERATION_TOUCH" => Some(Self::Touch), + "OPERATION_DELETE" => Some(Self::Delete), + _ => None, + } + } + } +} +/// PermissionRelationshipTree is used for representing a tree of a resource and +/// its permission relationships with other objects. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PermissionRelationshipTree { + #[prost(message, optional, tag="3")] + pub expanded_object: ::core::option::Option, + #[prost(string, tag="4")] + pub expanded_relation: ::prost::alloc::string::String, + #[prost(oneof="permission_relationship_tree::TreeType", tags="1, 2")] + pub tree_type: ::core::option::Option, +} +/// Nested message and enum types in `PermissionRelationshipTree`. +pub mod permission_relationship_tree { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum TreeType { + #[prost(message, tag="1")] + Intermediate(super::AlgebraicSubjectSet), + #[prost(message, tag="2")] + Leaf(super::DirectSubjectSet), + } +} +/// AlgebraicSubjectSet is a subject set which is computed based on applying the +/// specified operation to the operands according to the algebra of sets. +/// +/// UNION is a logical set containing the subject members from all operands. +/// +/// INTERSECTION is a logical set containing only the subject members which are +/// present in all operands. +/// +/// EXCLUSION is a logical set containing only the subject members which are +/// present in the first operand, and none of the other operands. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AlgebraicSubjectSet { + #[prost(enumeration="algebraic_subject_set::Operation", tag="1")] + pub operation: i32, + #[prost(message, repeated, tag="2")] + pub children: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `AlgebraicSubjectSet`. +pub mod algebraic_subject_set { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Operation { + Unspecified = 0, + Union = 1, + Intersection = 2, + Exclusion = 3, + } + impl Operation { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Operation::Unspecified => "OPERATION_UNSPECIFIED", + Operation::Union => "OPERATION_UNION", + Operation::Intersection => "OPERATION_INTERSECTION", + Operation::Exclusion => "OPERATION_EXCLUSION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "OPERATION_UNSPECIFIED" => Some(Self::Unspecified), + "OPERATION_UNION" => Some(Self::Union), + "OPERATION_INTERSECTION" => Some(Self::Intersection), + "OPERATION_EXCLUSION" => Some(Self::Exclusion), + _ => None, + } + } + } +} +/// DirectSubjectSet is a subject set which is simply a collection of subjects. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DirectSubjectSet { + #[prost(message, repeated, tag="1")] + pub subjects: ::prost::alloc::vec::Vec, +} +/// PartialCaveatInfo carries information necessary for the client to take action +/// in the event a response contains a partially evaluated caveat +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PartialCaveatInfo { + /// missing_required_context is a list of one or more fields that were missing and prevented caveats + /// from being fully evaluated + #[prost(string, repeated, tag="1")] + pub missing_required_context: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// DebugInformation defines debug information returned by an API call in a footer when +/// requested with a specific debugging header. +/// +/// The specific debug information returned will depend on the type of the API call made. +/// +/// See the github.com/authzed/authzed-go project for the specific header and footer names. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DebugInformation { + /// check holds debug information about a check request. + #[prost(message, optional, tag="1")] + pub check: ::core::option::Option, + /// schema_used holds the schema used for the request. + #[prost(string, tag="2")] + pub schema_used: ::prost::alloc::string::String, +} +/// CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission +/// API call. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckDebugTrace { + /// resource holds the resource on which the Check was performed. + /// for batched calls, the object_id field contains a comma-separated list of object IDs + /// for all the resources checked in the batch. + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, + /// permission holds the name of the permission or relation on which the Check was performed. + #[prost(string, tag="2")] + pub permission: ::prost::alloc::string::String, + /// permission_type holds information indicating whether it was a permission or relation. + #[prost(enumeration="check_debug_trace::PermissionType", tag="3")] + pub permission_type: i32, + /// subject holds the subject on which the Check was performed. This will be static across all calls within + /// the same Check tree. + #[prost(message, optional, tag="4")] + pub subject: ::core::option::Option, + /// result holds the result of the Check call. + #[prost(enumeration="check_debug_trace::Permissionship", tag="5")] + pub result: i32, + /// caveat_evaluation_info holds information about the caveat evaluated for this step of the trace. + #[prost(message, optional, tag="8")] + pub caveat_evaluation_info: ::core::option::Option, + /// duration holds the time spent executing this Check operation. + #[prost(message, optional, tag="9")] + pub duration: ::core::option::Option, + /// optional_expires_at is the time at which at least one of the relationships used to + /// compute this result, expires (if any). This is *not* related to the caching window. + #[prost(message, optional, tag="10")] + pub optional_expires_at: ::core::option::Option, + /// trace_operation_id is a unique identifier for this trace's operation, that will + /// be shared for all traces created for the same check operation in SpiceDB. + /// + /// In cases where SpiceDB performs automatic batching of subproblems, this ID can be used + /// to correlate work that was shared across multiple traces. + /// + /// This identifier is generated by SpiceDB, is to be considered opaque to the caller + /// and only guaranteed to be unique within the same overall Check or CheckBulk operation. + #[prost(string, tag="11")] + pub trace_operation_id: ::prost::alloc::string::String, + /// source holds the source of the result. It is of the form: + /// `:`, where sourcetype can be, among others: + /// `spicedb`, `materialize`, etc. + #[prost(string, tag="12")] + pub source: ::prost::alloc::string::String, + /// resolution holds information about how the problem was resolved. + #[prost(oneof="check_debug_trace::Resolution", tags="6, 7")] + pub resolution: ::core::option::Option, +} +/// Nested message and enum types in `CheckDebugTrace`. +pub mod check_debug_trace { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct SubProblems { + #[prost(message, repeated, tag="1")] + pub traces: ::prost::alloc::vec::Vec, + } + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum PermissionType { + Unspecified = 0, + Relation = 1, + Permission = 2, + } + impl PermissionType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + PermissionType::Unspecified => "PERMISSION_TYPE_UNSPECIFIED", + PermissionType::Relation => "PERMISSION_TYPE_RELATION", + PermissionType::Permission => "PERMISSION_TYPE_PERMISSION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "PERMISSION_TYPE_UNSPECIFIED" => Some(Self::Unspecified), + "PERMISSION_TYPE_RELATION" => Some(Self::Relation), + "PERMISSION_TYPE_PERMISSION" => Some(Self::Permission), + _ => None, + } + } + } + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Permissionship { + Unspecified = 0, + NoPermission = 1, + HasPermission = 2, + ConditionalPermission = 3, + } + impl Permissionship { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Permissionship::Unspecified => "PERMISSIONSHIP_UNSPECIFIED", + Permissionship::NoPermission => "PERMISSIONSHIP_NO_PERMISSION", + Permissionship::HasPermission => "PERMISSIONSHIP_HAS_PERMISSION", + Permissionship::ConditionalPermission => "PERMISSIONSHIP_CONDITIONAL_PERMISSION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "PERMISSIONSHIP_UNSPECIFIED" => Some(Self::Unspecified), + "PERMISSIONSHIP_NO_PERMISSION" => Some(Self::NoPermission), + "PERMISSIONSHIP_HAS_PERMISSION" => Some(Self::HasPermission), + "PERMISSIONSHIP_CONDITIONAL_PERMISSION" => Some(Self::ConditionalPermission), + _ => None, + } + } + } + /// resolution holds information about how the problem was resolved. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Resolution { + /// was_cached_result, if true, indicates that the result was found in the cache and returned directly. + #[prost(bool, tag="6")] + WasCachedResult(bool), + /// sub_problems holds the sub problems that were executed to resolve the answer to this Check. An empty list + /// and a permissionship of PERMISSIONSHIP_HAS_PERMISSION indicates the subject was found within this relation. + #[prost(message, tag="7")] + SubProblems(SubProblems), + } +} +/// CaveatEvalInfo holds information about a caveat expression that was evaluated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CaveatEvalInfo { + /// expression is the expression that was evaluated. + #[prost(string, tag="1")] + pub expression: ::prost::alloc::string::String, + /// result is the result of the evaluation. + #[prost(enumeration="caveat_eval_info::Result", tag="2")] + pub result: i32, + /// context consists of any named values that were used for evaluating the caveat expression. + #[prost(message, optional, tag="3")] + pub context: ::core::option::Option, + /// partial_caveat_info holds information of a partially-evaluated caveated response, if applicable. + #[prost(message, optional, tag="4")] + pub partial_caveat_info: ::core::option::Option, + /// caveat_name is the name of the caveat that was executed, if applicable. + #[prost(string, tag="5")] + pub caveat_name: ::prost::alloc::string::String, +} +/// Nested message and enum types in `CaveatEvalInfo`. +pub mod caveat_eval_info { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Result { + Unspecified = 0, + Unevaluated = 1, + False = 2, + True = 3, + MissingSomeContext = 4, + } + impl Result { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Result::Unspecified => "RESULT_UNSPECIFIED", + Result::Unevaluated => "RESULT_UNEVALUATED", + Result::False => "RESULT_FALSE", + Result::True => "RESULT_TRUE", + Result::MissingSomeContext => "RESULT_MISSING_SOME_CONTEXT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESULT_UNSPECIFIED" => Some(Self::Unspecified), + "RESULT_UNEVALUATED" => Some(Self::Unevaluated), + "RESULT_FALSE" => Some(Self::False), + "RESULT_TRUE" => Some(Self::True), + "RESULT_MISSING_SOME_CONTEXT" => Some(Self::MissingSomeContext), + _ => None, + } + } + } +} +/// Defines the supported values for `google.rpc.ErrorInfo.reason` for the +/// `authzed.com` error domain. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ErrorReason { + /// Do not use this default value. + Unspecified = 0, + /// The request gave a schema that could not be parsed. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_SCHEMA_PARSE_ERROR", + /// "domain": "authzed.com", + /// "metadata": { + /// "start_line_number": "1", + /// "start_column_position": "19", + /// "end_line_number": "1", + /// "end_column_position": "19", + /// "source_code": "somedefinition", + /// } + /// } + /// + /// The line numbers and column positions are 0-indexed and may not be present. + SchemaParseError = 1, + /// The request contains a schema with a type error. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_SCHEMA_TYPE_ERROR", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition", + /// ... additional keys based on the kind of type error ... + /// } + /// } + SchemaTypeError = 2, + /// The request referenced an unknown object definition in the schema. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_UNKNOWN_DEFINITION", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition" + /// } + /// } + UnknownDefinition = 3, + /// The request referenced an unknown relation or permission under a definition in the schema. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition", + /// "relation_or_permission_name": "somepermission" + /// } + /// } + UnknownRelationOrPermission = 4, + /// The WriteRelationships request contained more updates than the maximum configured. + /// + /// Example of an ErrorInfo: + /// + /// { "reason": "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST", + /// "domain": "authzed.com", + /// "metadata": { + /// "update_count": "525", + /// "maximum_updates_allowed": "500", + /// } + /// } + TooManyUpdatesInRequest = 5, + /// The request contained more preconditions than the maximum configured. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST", + /// "domain": "authzed.com", + /// "metadata": { + /// "precondition_count": "525", + /// "maximum_preconditions_allowed": "500", + /// } + /// } + TooManyPreconditionsInRequest = 6, + /// The request contained a precondition that failed. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE", + /// "domain": "authzed.com", + /// "metadata": { + /// "precondition_resource_type": "document", + /// ... other fields for the filter ... + /// "precondition_operation": "MUST_EXIST", + /// } + /// } + WriteOrDeletePreconditionFailure = 7, + /// A write or delete request was made to an instance that is deployed in read-only mode. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_SERVICE_READ_ONLY", + /// "domain": "authzed.com" + /// } + ServiceReadOnly = 8, + /// The request referenced an unknown caveat in the schema. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_UNKNOWN_CAVEAT", + /// "domain": "authzed.com", + /// "metadata": { + /// "caveat_name": "somecaveat" + /// } + /// } + UnknownCaveat = 9, + /// The request tries to use a subject type that was not valid for a relation. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_INVALID_SUBJECT_TYPE", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition", + /// "relation_name": "somerelation", + /// "subject_type": "user:*" + /// } + /// } + InvalidSubjectType = 10, + /// The request tries to specify a caveat parameter value with the wrong type. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition", + /// "relation_name": "somerelation", + /// "caveat_name": "somecaveat", + /// "parameter_name": "someparameter", + /// "expected_type": "int", + /// } + /// } + CaveatParameterTypeError = 11, + /// The request tries to perform two or more updates on the same relationship in the same WriteRelationships call. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition", + /// "relationship": "somerelationship", + /// } + /// } + UpdatesOnSameRelationship = 12, + /// The request tries to write a relationship on a permission instead of a relation. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_CANNOT_UPDATE_PERMISSION", + /// "domain": "authzed.com", + /// "metadata": { + /// "definition_name": "somedefinition", + /// "permission_name": "somerelation", + /// } + /// } + CannotUpdatePermission = 13, + /// The request failed to evaluate a caveat expression due to an error. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_CAVEAT_EVALUATION_ERROR", + /// "domain": "authzed.com", + /// "metadata": { + /// "caveat_name": "somecaveat", + /// } + /// } + CaveatEvaluationError = 14, + /// The request failed because the provided cursor was invalid in some way. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_INVALID_CURSOR", + /// "domain": "authzed.com", + /// "metadata": { + /// ... additional keys based on the kind of cursor error ... + /// } + /// } + InvalidCursor = 15, + /// The request failed because there are too many matching relationships to be + /// deleted within a single transactional deletion call. To avoid, set + /// `optional_allow_partial_deletions` to true on the DeleteRelationships call. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE", + /// "domain": "authzed.com", + /// "metadata": { + /// ... fields for the filter ... + /// } + /// } + TooManyRelationshipsForTransactionalDelete = 16, + /// The request failed because the client attempted to write a relationship + /// with a context that exceeded the configured server limit. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE", + /// "domain": "authzed.com", + /// "metadata": { + /// "relationship": "relationship_exceeding_the_limit", + /// "max_allowed_size": "server_max_allowed_context_size", + /// "context_size": "actual_relationship_context_size" , + /// } + /// } + MaxRelationshipContextSize = 17, + /// The request failed because a relationship marked to be CREATEd + /// was already present within the datastore. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP", + /// "domain": "authzed.com", + /// "metadata": { + /// "relationship": "relationship_that_already_existed", + /// "resource_type": "resource type", + /// "resource_object_id": "resource object id", + /// ... additional decomposed relationship fields ... + /// } + /// } + AttemptToRecreateRelationship = 18, + /// The request failed because it caused the maximum depth allowed to be + /// exceeded. This typically indicates that there is a circular data traversal + /// somewhere in the schema, but can also be raised if the data traversal is simply + /// too deep. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED", + /// "domain": "authzed.com", + /// "metadata": { + /// "maximum_depth_allowed": "50", + /// ... additional fields based on request type ... + /// } + /// } + MaximumDepthExceeded = 19, + /// The request failed due to a serialization error in the backend database. + /// This typically indicates that various in flight transactions conflicted with each other + /// and the database had to abort one or more of them. SpiceDB will retry a few times before returning + /// the error to the client. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_SERIALIZATION_FAILURE", + /// "domain": "authzed.com", + /// "metadata": {} + /// } + SerializationFailure = 20, + /// The request contained more check items than the maximum configured. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST", + /// "domain": "authzed.com", + /// "metadata": { + /// "check_count": "525", + /// "maximum_checks_allowed": "500", + /// } + /// } + TooManyChecksInRequest = 21, + /// The request's specified limit is too large. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT", + /// "domain": "authzed.com", + /// "metadata": { + /// "limit_provided": "525", + /// "maximum_limit_allowed": "500", + /// } + /// } + ExceedsMaximumAllowableLimit = 22, + /// The request failed because the provided filter was invalid in some way. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_INVALID_FILTER", + /// "domain": "authzed.com", + /// "metadata": { + /// "filter": "...", + /// } + /// } + InvalidFilter = 23, + /// The request failed because too many concurrent updates were attempted + /// against the in-memory datastore. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES", + /// "domain": "authzed.com", + /// "metadata": {} + /// } + InmemoryTooManyConcurrentUpdates = 24, + /// The request failed because the precondition specified is empty. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_EMPTY_PRECONDITION", + /// "domain": "authzed.com", + /// "metadata": {} + /// } + EmptyPrecondition = 25, + /// The request failed because the counter was already registered. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_COUNTER_ALREADY_REGISTERED", + /// "domain": "authzed.com", + /// "metadata": { "counter_name": "name" } + /// } + CounterAlreadyRegistered = 26, + /// The request failed because the counter was not registered. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_COUNTER_NOT_REGISTERED", + /// "domain": "authzed.com", + /// "metadata": { "counter_name": "name" } + /// } + CounterNotRegistered = 27, + /// The request failed because a wildcard was not allowed. For CheckPermission, + /// this means that the subject or resource ID was a wildcard. For LookupResources, + /// this means that the subject ID was a wildcard. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_WILDCARD_NOT_ALLOWED", + /// "domain": "authzed.com", + /// "metadata": { "disallowed_field": "subject_id" } + /// } + WildcardNotAllowed = 28, + /// The request failed because the transaction metadata was too large. + /// + /// Example of an ErrorInfo: + /// + /// { + /// "reason": "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE", + /// "domain": "authzed.com", + /// "metadata": { + /// "metadata_byte_size": "1024", + /// "maximum_allowed_metadata_byte_size": "512", + /// } + /// } + TransactionMetadataTooLarge = 29, +} +impl ErrorReason { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ErrorReason::Unspecified => "ERROR_REASON_UNSPECIFIED", + ErrorReason::SchemaParseError => "ERROR_REASON_SCHEMA_PARSE_ERROR", + ErrorReason::SchemaTypeError => "ERROR_REASON_SCHEMA_TYPE_ERROR", + ErrorReason::UnknownDefinition => "ERROR_REASON_UNKNOWN_DEFINITION", + ErrorReason::UnknownRelationOrPermission => "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION", + ErrorReason::TooManyUpdatesInRequest => "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST", + ErrorReason::TooManyPreconditionsInRequest => "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST", + ErrorReason::WriteOrDeletePreconditionFailure => "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE", + ErrorReason::ServiceReadOnly => "ERROR_REASON_SERVICE_READ_ONLY", + ErrorReason::UnknownCaveat => "ERROR_REASON_UNKNOWN_CAVEAT", + ErrorReason::InvalidSubjectType => "ERROR_REASON_INVALID_SUBJECT_TYPE", + ErrorReason::CaveatParameterTypeError => "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR", + ErrorReason::UpdatesOnSameRelationship => "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP", + ErrorReason::CannotUpdatePermission => "ERROR_REASON_CANNOT_UPDATE_PERMISSION", + ErrorReason::CaveatEvaluationError => "ERROR_REASON_CAVEAT_EVALUATION_ERROR", + ErrorReason::InvalidCursor => "ERROR_REASON_INVALID_CURSOR", + ErrorReason::TooManyRelationshipsForTransactionalDelete => "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE", + ErrorReason::MaxRelationshipContextSize => "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE", + ErrorReason::AttemptToRecreateRelationship => "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP", + ErrorReason::MaximumDepthExceeded => "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED", + ErrorReason::SerializationFailure => "ERROR_REASON_SERIALIZATION_FAILURE", + ErrorReason::TooManyChecksInRequest => "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST", + ErrorReason::ExceedsMaximumAllowableLimit => "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT", + ErrorReason::InvalidFilter => "ERROR_REASON_INVALID_FILTER", + ErrorReason::InmemoryTooManyConcurrentUpdates => "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES", + ErrorReason::EmptyPrecondition => "ERROR_REASON_EMPTY_PRECONDITION", + ErrorReason::CounterAlreadyRegistered => "ERROR_REASON_COUNTER_ALREADY_REGISTERED", + ErrorReason::CounterNotRegistered => "ERROR_REASON_COUNTER_NOT_REGISTERED", + ErrorReason::WildcardNotAllowed => "ERROR_REASON_WILDCARD_NOT_ALLOWED", + ErrorReason::TransactionMetadataTooLarge => "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ERROR_REASON_UNSPECIFIED" => Some(Self::Unspecified), + "ERROR_REASON_SCHEMA_PARSE_ERROR" => Some(Self::SchemaParseError), + "ERROR_REASON_SCHEMA_TYPE_ERROR" => Some(Self::SchemaTypeError), + "ERROR_REASON_UNKNOWN_DEFINITION" => Some(Self::UnknownDefinition), + "ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION" => Some(Self::UnknownRelationOrPermission), + "ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST" => Some(Self::TooManyUpdatesInRequest), + "ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST" => Some(Self::TooManyPreconditionsInRequest), + "ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE" => Some(Self::WriteOrDeletePreconditionFailure), + "ERROR_REASON_SERVICE_READ_ONLY" => Some(Self::ServiceReadOnly), + "ERROR_REASON_UNKNOWN_CAVEAT" => Some(Self::UnknownCaveat), + "ERROR_REASON_INVALID_SUBJECT_TYPE" => Some(Self::InvalidSubjectType), + "ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR" => Some(Self::CaveatParameterTypeError), + "ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP" => Some(Self::UpdatesOnSameRelationship), + "ERROR_REASON_CANNOT_UPDATE_PERMISSION" => Some(Self::CannotUpdatePermission), + "ERROR_REASON_CAVEAT_EVALUATION_ERROR" => Some(Self::CaveatEvaluationError), + "ERROR_REASON_INVALID_CURSOR" => Some(Self::InvalidCursor), + "ERROR_REASON_TOO_MANY_RELATIONSHIPS_FOR_TRANSACTIONAL_DELETE" => Some(Self::TooManyRelationshipsForTransactionalDelete), + "ERROR_REASON_MAX_RELATIONSHIP_CONTEXT_SIZE" => Some(Self::MaxRelationshipContextSize), + "ERROR_REASON_ATTEMPT_TO_RECREATE_RELATIONSHIP" => Some(Self::AttemptToRecreateRelationship), + "ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED" => Some(Self::MaximumDepthExceeded), + "ERROR_REASON_SERIALIZATION_FAILURE" => Some(Self::SerializationFailure), + "ERROR_REASON_TOO_MANY_CHECKS_IN_REQUEST" => Some(Self::TooManyChecksInRequest), + "ERROR_REASON_EXCEEDS_MAXIMUM_ALLOWABLE_LIMIT" => Some(Self::ExceedsMaximumAllowableLimit), + "ERROR_REASON_INVALID_FILTER" => Some(Self::InvalidFilter), + "ERROR_REASON_INMEMORY_TOO_MANY_CONCURRENT_UPDATES" => Some(Self::InmemoryTooManyConcurrentUpdates), + "ERROR_REASON_EMPTY_PRECONDITION" => Some(Self::EmptyPrecondition), + "ERROR_REASON_COUNTER_ALREADY_REGISTERED" => Some(Self::CounterAlreadyRegistered), + "ERROR_REASON_COUNTER_NOT_REGISTERED" => Some(Self::CounterNotRegistered), + "ERROR_REASON_WILDCARD_NOT_ALLOWED" => Some(Self::WildcardNotAllowed), + "ERROR_REASON_TRANSACTION_METADATA_TOO_LARGE" => Some(Self::TransactionMetadataTooLarge), + _ => None, + } + } +} +/// Consistency will define how a request is handled by the backend. +/// By defining a consistency requirement, and a token at which those +/// requirements should be applied, where applicable. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Consistency { + #[prost(oneof="consistency::Requirement", tags="1, 2, 3, 4")] + pub requirement: ::core::option::Option, +} +/// Nested message and enum types in `Consistency`. +pub mod consistency { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Requirement { + /// minimize_latency indicates that the latency for the call should be + /// minimized by having the system select the fastest snapshot available. + #[prost(bool, tag="1")] + MinimizeLatency(bool), + /// at_least_as_fresh indicates that all data used in the API call must be + /// *at least as fresh* as that found in the ZedToken; more recent data might + /// be used if available or faster. + #[prost(message, tag="2")] + AtLeastAsFresh(super::ZedToken), + /// at_exact_snapshot indicates that all data used in the API call must be + /// *at the given* snapshot in time; if the snapshot is no longer available, + /// an error will be returned to the caller. + #[prost(message, tag="3")] + AtExactSnapshot(super::ZedToken), + /// fully_consistent indicates that all data used in the API call *must* be + /// at the most recent snapshot found. + /// + /// NOTE: using this method can be *quite slow*, so unless there is a need to + /// do so, it is recommended to use `at_least_as_fresh` with a stored + /// ZedToken. + #[prost(bool, tag="4")] + FullyConsistent(bool), + } +} +/// RelationshipFilter is a collection of filters which when applied to a +/// relationship will return relationships that have exactly matching fields. +/// +/// All fields are optional and if left unspecified will not filter relationships, +/// but at least one field must be specified. +/// +/// NOTE: The performance of the API will be affected by the selection of fields +/// on which to filter. If a field is not indexed, the performance of the API +/// can be significantly slower. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RelationshipFilter { + /// resource_type is the *optional* resource type of the relationship. + /// NOTE: It is not prefixed with "optional_" for legacy compatibility. + #[prost(string, tag="1")] + pub resource_type: ::prost::alloc::string::String, + /// optional_resource_id is the *optional* resource ID of the relationship. + /// If specified, optional_resource_id_prefix cannot be specified. + #[prost(string, tag="2")] + pub optional_resource_id: ::prost::alloc::string::String, + /// optional_resource_id_prefix is the *optional* prefix for the resource ID of the relationship. + /// If specified, optional_resource_id cannot be specified. + #[prost(string, tag="5")] + pub optional_resource_id_prefix: ::prost::alloc::string::String, + /// relation is the *optional* relation of the relationship. + #[prost(string, tag="3")] + pub optional_relation: ::prost::alloc::string::String, + /// optional_subject_filter is the optional filter for the subjects of the relationships. + #[prost(message, optional, tag="4")] + pub optional_subject_filter: ::core::option::Option, +} +/// SubjectFilter specifies a filter on the subject of a relationship. +/// +/// subject_type is required and all other fields are optional, and will not +/// impose any additional requirements if left unspecified. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SubjectFilter { + #[prost(string, tag="1")] + pub subject_type: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub optional_subject_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub optional_relation: ::core::option::Option, +} +/// Nested message and enum types in `SubjectFilter`. +pub mod subject_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct RelationFilter { + #[prost(string, tag="1")] + pub relation: ::prost::alloc::string::String, + } +} +/// ReadRelationshipsRequest specifies one or more filters used to read matching +/// relationships within the system. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReadRelationshipsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// relationship_filter defines the filter to be applied to the relationships + /// to be returned. + #[prost(message, optional, tag="2")] + pub relationship_filter: ::core::option::Option, + /// optional_limit, if non-zero, specifies the limit on the number of relationships to return + /// before the stream is closed on the server side. By default, the stream will continue + /// resolving relationships until exhausted or the stream is closed due to the client or a + /// network issue. + #[prost(uint32, tag="3")] + pub optional_limit: u32, + /// optional_cursor, if specified, indicates the cursor after which results should resume being returned. + /// The cursor can be found on the ReadRelationshipsResponse object. + #[prost(message, optional, tag="4")] + pub optional_cursor: ::core::option::Option, +} +/// ReadRelationshipsResponse contains a Relationship found that matches the +/// specified relationship filter(s). A instance of this response message will +/// be streamed to the client for each relationship found. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReadRelationshipsResponse { + /// read_at is the ZedToken at which the relationship was found. + #[prost(message, optional, tag="1")] + pub read_at: ::core::option::Option, + /// relationship is the found relationship. + #[prost(message, optional, tag="2")] + pub relationship: ::core::option::Option, + /// after_result_cursor holds a cursor that can be used to resume the ReadRelationships stream after this + /// result. + #[prost(message, optional, tag="3")] + pub after_result_cursor: ::core::option::Option, +} +/// Precondition specifies how and the existence or absence of certain +/// relationships as expressed through the accompanying filter should affect +/// whether or not the operation proceeds. +/// +/// MUST_NOT_MATCH will fail the parent request if any relationships match the +/// relationships filter. +/// MUST_MATCH will fail the parent request if there are no +/// relationships that match the filter. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Precondition { + #[prost(enumeration="precondition::Operation", tag="1")] + pub operation: i32, + #[prost(message, optional, tag="2")] + pub filter: ::core::option::Option, +} +/// Nested message and enum types in `Precondition`. +pub mod precondition { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Operation { + Unspecified = 0, + MustNotMatch = 1, + MustMatch = 2, + } + impl Operation { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Operation::Unspecified => "OPERATION_UNSPECIFIED", + Operation::MustNotMatch => "OPERATION_MUST_NOT_MATCH", + Operation::MustMatch => "OPERATION_MUST_MATCH", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "OPERATION_UNSPECIFIED" => Some(Self::Unspecified), + "OPERATION_MUST_NOT_MATCH" => Some(Self::MustNotMatch), + "OPERATION_MUST_MATCH" => Some(Self::MustMatch), + _ => None, + } + } + } +} +/// WriteRelationshipsRequest contains a list of Relationship mutations that +/// should be applied to the service. If the optional_preconditions parameter +/// is included, all of the specified preconditions must also be satisfied before +/// the write will be committed. All updates will be applied transactionally, +/// and if any preconditions fail, the entire transaction will be reverted. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WriteRelationshipsRequest { + #[prost(message, repeated, tag="1")] + pub updates: ::prost::alloc::vec::Vec, + /// To be bounded by configuration + #[prost(message, repeated, tag="2")] + pub optional_preconditions: ::prost::alloc::vec::Vec, + /// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. + /// If specified, this metadata will be supplied in the WatchResponse for the updates associated with this + /// transaction. + #[prost(message, optional, tag="3")] + pub optional_transaction_metadata: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WriteRelationshipsResponse { + #[prost(message, optional, tag="1")] + pub written_at: ::core::option::Option, +} +/// DeleteRelationshipsRequest specifies which Relationships should be deleted, +/// requesting the delete of *ALL* relationships that match the specified +/// filters. If the optional_preconditions parameter is included, all of the +/// specified preconditions must also be satisfied before the delete will be +/// executed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteRelationshipsRequest { + #[prost(message, optional, tag="1")] + pub relationship_filter: ::core::option::Option, + /// To be bounded by configuration + #[prost(message, repeated, tag="2")] + pub optional_preconditions: ::prost::alloc::vec::Vec, + /// optional_limit, if non-zero, specifies the limit on the number of relationships to be deleted. + /// If there are more matching relationships found to be deleted than the limit specified here, + /// the deletion call will fail with an error to prevent partial deletion. If partial deletion + /// is needed, specify below that partial deletion is allowed. Partial deletions can be used + /// in a loop to delete large amounts of relationships in a *non-transactional* manner. + #[prost(uint32, tag="3")] + pub optional_limit: u32, + /// optional_allow_partial_deletions, if true and a limit is specified, will delete matching found + /// relationships up to the count specified in optional_limit, and no more. + #[prost(bool, tag="4")] + pub optional_allow_partial_deletions: bool, + /// optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. + /// If specified, this metadata will be supplied in the WatchResponse for the deletions associated with + /// this transaction. + #[prost(message, optional, tag="5")] + pub optional_transaction_metadata: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteRelationshipsResponse { + /// deleted_at is the revision at which the relationships were deleted. + #[prost(message, optional, tag="1")] + pub deleted_at: ::core::option::Option, + /// deletion_progress is an enumeration of the possible outcomes that occurred when attempting to delete the specified relationships. + #[prost(enumeration="delete_relationships_response::DeletionProgress", tag="2")] + pub deletion_progress: i32, + /// relationships_deleted_count is the number of relationships that were deleted. + #[prost(uint64, tag="3")] + pub relationships_deleted_count: u64, +} +/// Nested message and enum types in `DeleteRelationshipsResponse`. +pub mod delete_relationships_response { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum DeletionProgress { + Unspecified = 0, + /// DELETION_PROGRESS_COMPLETE indicates that all remaining relationships matching the filter + /// were deleted. Will be returned even if no relationships were deleted. + Complete = 1, + /// DELETION_PROGRESS_PARTIAL indicates that a subset of the relationships matching the filter + /// were deleted. Only returned if optional_allow_partial_deletions was true, an optional_limit was + /// specified, and there existed more relationships matching the filter than optional_limit would allow. + /// Once all remaining relationships have been deleted, DELETION_PROGRESS_COMPLETE will be returned. + Partial = 2, + } + impl DeletionProgress { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + DeletionProgress::Unspecified => "DELETION_PROGRESS_UNSPECIFIED", + DeletionProgress::Complete => "DELETION_PROGRESS_COMPLETE", + DeletionProgress::Partial => "DELETION_PROGRESS_PARTIAL", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DELETION_PROGRESS_UNSPECIFIED" => Some(Self::Unspecified), + "DELETION_PROGRESS_COMPLETE" => Some(Self::Complete), + "DELETION_PROGRESS_PARTIAL" => Some(Self::Partial), + _ => None, + } + } + } +} +/// CheckPermissionRequest issues a check on whether a subject has a permission +/// or is a member of a relation, on a specific resource. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckPermissionRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// resource is the resource on which to check the permission or relation. + #[prost(message, optional, tag="2")] + pub resource: ::core::option::Option, + /// permission is the name of the permission (or relation) on which to execute + /// the check. + #[prost(string, tag="3")] + pub permission: ::prost::alloc::string::String, + /// subject is the subject that will be checked for the permission or relation. + #[prost(message, optional, tag="4")] + pub subject: ::core::option::Option, + /// context consists of named values that are injected into the caveat evaluation context + #[prost(message, optional, tag="5")] + pub context: ::core::option::Option, + /// with_tracing, if true, indicates that the response should include a debug trace. + /// This can be useful for debugging and performance analysis, but adds a small amount + /// of compute overhead to the request. + #[prost(bool, tag="6")] + pub with_tracing: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckPermissionResponse { + #[prost(message, optional, tag="1")] + pub checked_at: ::core::option::Option, + /// Permissionship communicates whether or not the subject has the requested + /// permission or has a relationship with the given resource, over the given + /// relation. + /// + /// This value will be authzed.api.v1.PERMISSIONSHIP_HAS_PERMISSION if the + /// requested subject is a member of the computed permission set or there + /// exists a relationship with the requested relation from the given resource + /// to the given subject. + #[prost(enumeration="check_permission_response::Permissionship", tag="2")] + pub permissionship: i32, + /// partial_caveat_info holds information of a partially-evaluated caveated response + #[prost(message, optional, tag="3")] + pub partial_caveat_info: ::core::option::Option, + /// debug_trace is the debugging trace of this check, if requested. + #[prost(message, optional, tag="4")] + pub debug_trace: ::core::option::Option, + /// optional_expires_at is the time at which at least one of the relationships used to + /// compute this result, expires (if any). This is *not* related to the caching window. + #[prost(message, optional, tag="5")] + pub optional_expires_at: ::core::option::Option, +} +/// Nested message and enum types in `CheckPermissionResponse`. +pub mod check_permission_response { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Permissionship { + Unspecified = 0, + NoPermission = 1, + HasPermission = 2, + ConditionalPermission = 3, + } + impl Permissionship { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Permissionship::Unspecified => "PERMISSIONSHIP_UNSPECIFIED", + Permissionship::NoPermission => "PERMISSIONSHIP_NO_PERMISSION", + Permissionship::HasPermission => "PERMISSIONSHIP_HAS_PERMISSION", + Permissionship::ConditionalPermission => "PERMISSIONSHIP_CONDITIONAL_PERMISSION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "PERMISSIONSHIP_UNSPECIFIED" => Some(Self::Unspecified), + "PERMISSIONSHIP_NO_PERMISSION" => Some(Self::NoPermission), + "PERMISSIONSHIP_HAS_PERMISSION" => Some(Self::HasPermission), + "PERMISSIONSHIP_CONDITIONAL_PERMISSION" => Some(Self::ConditionalPermission), + _ => None, + } + } + } +} +/// CheckBulkPermissionsRequest issues a check on whether a subject has permission +/// or is a member of a relation on a specific resource for each item in the list. +/// +/// The ordering of the items in the response is maintained in the response. +/// Checks with the same subject/permission will automatically be batched for performance optimization. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckBulkPermissionsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub items: ::prost::alloc::vec::Vec, + /// with_tracing, if true, indicates that each response should include a debug trace. + /// This can be useful for debugging and performance analysis, but adds a small amount + /// of compute overhead to the request. + #[prost(bool, tag="3")] + pub with_tracing: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckBulkPermissionsRequestItem { + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, + #[prost(string, tag="2")] + pub permission: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub subject: ::core::option::Option, + #[prost(message, optional, tag="4")] + pub context: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckBulkPermissionsResponse { + #[prost(message, optional, tag="1")] + pub checked_at: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub pairs: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckBulkPermissionsPair { + #[prost(message, optional, tag="1")] + pub request: ::core::option::Option, + #[prost(oneof="check_bulk_permissions_pair::Response", tags="2, 3")] + pub response: ::core::option::Option, +} +/// Nested message and enum types in `CheckBulkPermissionsPair`. +pub mod check_bulk_permissions_pair { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Response { + #[prost(message, tag="2")] + Item(super::CheckBulkPermissionsResponseItem), + #[prost(message, tag="3")] + Error(super::super::super::super::google::rpc::Status), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CheckBulkPermissionsResponseItem { + #[prost(enumeration="check_permission_response::Permissionship", tag="1")] + pub permissionship: i32, + #[prost(message, optional, tag="2")] + pub partial_caveat_info: ::core::option::Option, + /// debug_trace is the debugging trace of this check, if requested. + #[prost(message, optional, tag="3")] + pub debug_trace: ::core::option::Option, +} +/// ExpandPermissionTreeRequest returns a tree representing the expansion of all +/// relationships found accessible from a permission or relation on a particular +/// resource. +/// +/// ExpandPermissionTreeRequest is typically used to determine the full set of +/// subjects with a permission, along with the relationships that grant said +/// access. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpandPermissionTreeRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// resource is the resource over which to run the expansion. + #[prost(message, optional, tag="2")] + pub resource: ::core::option::Option, + /// permission is the name of the permission or relation over which to run the + /// expansion for the resource. + #[prost(string, tag="3")] + pub permission: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpandPermissionTreeResponse { + #[prost(message, optional, tag="1")] + pub expanded_at: ::core::option::Option, + /// tree_root is a tree structure whose leaf nodes are subjects, and + /// intermediate nodes represent the various operations (union, intersection, + /// exclusion) to reach those subjects. + #[prost(message, optional, tag="2")] + pub tree_root: ::core::option::Option, +} +/// LookupResourcesRequest performs a lookup of all resources of a particular +/// kind on which the subject has the specified permission or the relation in +/// which the subject exists, streaming back the IDs of those resources. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupResourcesRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// resource_object_type is the type of resource object for which the IDs will + /// be returned. + #[prost(string, tag="2")] + pub resource_object_type: ::prost::alloc::string::String, + /// permission is the name of the permission or relation for which the subject + /// must Check. + #[prost(string, tag="3")] + pub permission: ::prost::alloc::string::String, + /// subject is the subject with access to the resources. + #[prost(message, optional, tag="4")] + pub subject: ::core::option::Option, + /// context consists of named values that are injected into the caveat evaluation context + #[prost(message, optional, tag="5")] + pub context: ::core::option::Option, + /// optional_limit, if non-zero, specifies the limit on the number of resources to return + /// before the stream is closed on the server side. By default, the stream will continue + /// resolving resources until exhausted or the stream is closed due to the client or a + /// network issue. + #[prost(uint32, tag="6")] + pub optional_limit: u32, + /// optional_cursor, if specified, indicates the cursor after which results should resume being returned. + /// The cursor can be found on the LookupResourcesResponse object. + #[prost(message, optional, tag="7")] + pub optional_cursor: ::core::option::Option, +} +/// LookupResourcesResponse contains a single matching resource object ID for the +/// requested object type, permission, and subject. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupResourcesResponse { + /// looked_up_at is the ZedToken at which the resource was found. + #[prost(message, optional, tag="1")] + pub looked_up_at: ::core::option::Option, + /// resource_object_id is the object ID of the found resource. + #[prost(string, tag="2")] + pub resource_object_id: ::prost::alloc::string::String, + /// permissionship indicates whether the response was partially evaluated or not + #[prost(enumeration="LookupPermissionship", tag="3")] + pub permissionship: i32, + /// partial_caveat_info holds information of a partially-evaluated caveated response + #[prost(message, optional, tag="4")] + pub partial_caveat_info: ::core::option::Option, + /// after_result_cursor holds a cursor that can be used to resume the LookupResources stream after this + /// result. + #[prost(message, optional, tag="5")] + pub after_result_cursor: ::core::option::Option, +} +/// LookupSubjectsRequest performs a lookup of all subjects of a particular +/// kind for which the subject has the specified permission or the relation in +/// which the subject exists, streaming back the IDs of those subjects. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupSubjectsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// resource is the resource for which all matching subjects for the permission + /// or relation will be returned. + #[prost(message, optional, tag="2")] + pub resource: ::core::option::Option, + /// permission is the name of the permission (or relation) for which to find + /// the subjects. + #[prost(string, tag="3")] + pub permission: ::prost::alloc::string::String, + /// subject_object_type is the type of subject object for which the IDs will + /// be returned. + #[prost(string, tag="4")] + pub subject_object_type: ::prost::alloc::string::String, + /// optional_subject_relation is the optional relation for the subject. + #[prost(string, tag="5")] + pub optional_subject_relation: ::prost::alloc::string::String, + /// context consists of named values that are injected into the caveat evaluation context + #[prost(message, optional, tag="6")] + pub context: ::core::option::Option, + /// optional_concrete_limit is currently unimplemented for LookupSubjects + /// and will return an error as of SpiceDB version 1.40.1. This will + /// be implemented in a future version of SpiceDB. + #[prost(uint32, tag="7")] + pub optional_concrete_limit: u32, + /// optional_cursor is currently unimplemented for LookupSubjects + /// and will be ignored as of SpiceDB version 1.40.1. This will + /// be implemented in a future version of SpiceDB. + #[prost(message, optional, tag="8")] + pub optional_cursor: ::core::option::Option, + /// wildcard_option specifies whether wildcards should be returned by LookupSubjects. + /// For backwards compatibility, defaults to WILDCARD_OPTION_INCLUDE_WILDCARDS if unspecified. + #[prost(enumeration="lookup_subjects_request::WildcardOption", tag="9")] + pub wildcard_option: i32, +} +/// Nested message and enum types in `LookupSubjectsRequest`. +pub mod lookup_subjects_request { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum WildcardOption { + Unspecified = 0, + IncludeWildcards = 1, + ExcludeWildcards = 2, + } + impl WildcardOption { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + WildcardOption::Unspecified => "WILDCARD_OPTION_UNSPECIFIED", + WildcardOption::IncludeWildcards => "WILDCARD_OPTION_INCLUDE_WILDCARDS", + WildcardOption::ExcludeWildcards => "WILDCARD_OPTION_EXCLUDE_WILDCARDS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "WILDCARD_OPTION_UNSPECIFIED" => Some(Self::Unspecified), + "WILDCARD_OPTION_INCLUDE_WILDCARDS" => Some(Self::IncludeWildcards), + "WILDCARD_OPTION_EXCLUDE_WILDCARDS" => Some(Self::ExcludeWildcards), + _ => None, + } + } + } +} +/// LookupSubjectsResponse contains a single matching subject object ID for the +/// requested subject object type on the permission or relation. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LookupSubjectsResponse { + #[prost(message, optional, tag="1")] + pub looked_up_at: ::core::option::Option, + /// subject_object_id is the Object ID of the subject found. May be a `*` if + /// a wildcard was found. + /// deprecated: use `subject` + #[deprecated] + #[prost(string, tag="2")] + pub subject_object_id: ::prost::alloc::string::String, + /// excluded_subject_ids are the Object IDs of the subjects excluded. This list + /// will only contain object IDs if `subject_object_id` is a wildcard (`*`) and + /// will only be populated if exclusions exist from the wildcard. + /// deprecated: use `excluded_subjects` + #[deprecated] + #[prost(string, repeated, tag="3")] + pub excluded_subject_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// permissionship indicates whether the response was partially evaluated or not + /// deprecated: use `subject.permissionship` + #[deprecated] + #[prost(enumeration="LookupPermissionship", tag="4")] + pub permissionship: i32, + /// partial_caveat_info holds information of a partially-evaluated caveated response + /// deprecated: use `subject.partial_caveat_info` + #[deprecated] + #[prost(message, optional, tag="5")] + pub partial_caveat_info: ::core::option::Option, + /// subject is the subject found, along with its permissionship. + #[prost(message, optional, tag="6")] + pub subject: ::core::option::Option, + /// excluded_subjects are the subjects excluded. This list + /// will only contain subjects if `subject.subject_object_id` is a wildcard (`*`) and + /// will only be populated if exclusions exist from the wildcard. + #[prost(message, repeated, tag="7")] + pub excluded_subjects: ::prost::alloc::vec::Vec, + /// after_result_cursor holds a cursor that can be used to resume the LookupSubjects stream after this + /// result. + #[prost(message, optional, tag="8")] + pub after_result_cursor: ::core::option::Option, +} +/// ResolvedSubject is a single subject resolved within LookupSubjects. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResolvedSubject { + /// subject_object_id is the Object ID of the subject found. May be a `*` if + /// a wildcard was found. + #[prost(string, tag="1")] + pub subject_object_id: ::prost::alloc::string::String, + /// permissionship indicates whether the response was partially evaluated or not + #[prost(enumeration="LookupPermissionship", tag="2")] + pub permissionship: i32, + /// partial_caveat_info holds information of a partially-evaluated caveated response + #[prost(message, optional, tag="3")] + pub partial_caveat_info: ::core::option::Option, +} +/// ImportBulkRelationshipsRequest represents one batch of the streaming +/// ImportBulkRelationships API. The maximum size is only limited by the backing +/// datastore, and optimal size should be determined by the calling client +/// experimentally. When ImportBulk is invoked and receives its first request message, +/// a transaction is opened to import the relationships. All requests sent to the same +/// invocation are executed under this single transaction. If a relationship already +/// exists within the datastore, the entire transaction will fail with an error. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ImportBulkRelationshipsRequest { + #[prost(message, repeated, tag="1")] + pub relationships: ::prost::alloc::vec::Vec, +} +/// ImportBulkRelationshipsResponse is returned on successful completion of the +/// bulk load stream, and contains the total number of relationships loaded. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ImportBulkRelationshipsResponse { + #[prost(uint64, tag="1")] + pub num_loaded: u64, +} +/// ExportBulkRelationshipsRequest represents a resumable request for +/// all relationships from the server. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExportBulkRelationshipsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// optional_limit, if non-zero, specifies the limit on the number of + /// relationships the server can return in one page. By default, the server + /// will pick a page size, and the server is free to choose a smaller size + /// at will. + #[prost(uint32, tag="2")] + pub optional_limit: u32, + /// optional_cursor, if specified, indicates the cursor after which results + /// should resume being returned. The cursor can be found on the + /// BulkExportRelationshipsResponse object. + #[prost(message, optional, tag="3")] + pub optional_cursor: ::core::option::Option, + /// optional_relationship_filter, if specified, indicates the + /// filter to apply to each relationship to be exported. + #[prost(message, optional, tag="4")] + pub optional_relationship_filter: ::core::option::Option, +} +/// ExportBulkRelationshipsResponse is one page in a stream of relationship +/// groups that meet the criteria specified by the originating request. The +/// server will continue to stream back relationship groups as quickly as it can +/// until all relationships have been transmitted back. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExportBulkRelationshipsResponse { + #[prost(message, optional, tag="1")] + pub after_result_cursor: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub relationships: ::prost::alloc::vec::Vec, +} +/// LookupPermissionship represents whether a Lookup response was partially evaluated or not +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum LookupPermissionship { + Unspecified = 0, + HasPermission = 1, + ConditionalPermission = 2, +} +impl LookupPermissionship { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LookupPermissionship::Unspecified => "LOOKUP_PERMISSIONSHIP_UNSPECIFIED", + LookupPermissionship::HasPermission => "LOOKUP_PERMISSIONSHIP_HAS_PERMISSION", + LookupPermissionship::ConditionalPermission => "LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "LOOKUP_PERMISSIONSHIP_UNSPECIFIED" => Some(Self::Unspecified), + "LOOKUP_PERMISSIONSHIP_HAS_PERMISSION" => Some(Self::HasPermission), + "LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION" => Some(Self::ConditionalPermission), + _ => None, + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalRegisterRelationshipCounterRequest { + /// name is the name of the counter being registered. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// relationship_filter defines the filter to be applied to the relationships + /// to be counted. + #[prost(message, optional, tag="2")] + pub relationship_filter: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ExperimentalRegisterRelationshipCounterResponse { +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalCountRelationshipsRequest { + /// name is the name of the counter whose count is being requested. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalCountRelationshipsResponse { + #[prost(oneof="experimental_count_relationships_response::CounterResult", tags="1, 2")] + pub counter_result: ::core::option::Option, +} +/// Nested message and enum types in `ExperimentalCountRelationshipsResponse`. +pub mod experimental_count_relationships_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CounterResult { + /// counter_still_calculating is true if the counter is still calculating the count. + #[prost(bool, tag="1")] + CounterStillCalculating(bool), + /// read_counter_value is the value of the counter at the time of the read. + #[prost(message, tag="2")] + ReadCounterValue(super::ReadCounterValue), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReadCounterValue { + /// relationship_count is the count of relationships that match the filter. + #[prost(uint64, tag="1")] + pub relationship_count: u64, + /// read_at is the ZedToken at which the relationship count applies. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalUnregisterRelationshipCounterRequest { + /// name is the name of the counter being unregistered. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ExperimentalUnregisterRelationshipCounterResponse { +} +/// NOTE: Deprecated now that BulkCheckPermission has been promoted to the stable API as "CheckBulkPermission". +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkCheckPermissionRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[deprecated] + #[prost(message, repeated, tag="2")] + pub items: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkCheckPermissionRequestItem { + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, + #[prost(string, tag="2")] + pub permission: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub subject: ::core::option::Option, + #[prost(message, optional, tag="4")] + pub context: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkCheckPermissionResponse { + #[prost(message, optional, tag="1")] + pub checked_at: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub pairs: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkCheckPermissionPair { + #[prost(message, optional, tag="1")] + pub request: ::core::option::Option, + #[prost(oneof="bulk_check_permission_pair::Response", tags="2, 3")] + pub response: ::core::option::Option, +} +/// Nested message and enum types in `BulkCheckPermissionPair`. +pub mod bulk_check_permission_pair { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Response { + #[prost(message, tag="2")] + Item(super::BulkCheckPermissionResponseItem), + #[prost(message, tag="3")] + Error(super::super::super::super::google::rpc::Status), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkCheckPermissionResponseItem { + #[prost(enumeration="check_permission_response::Permissionship", tag="1")] + pub permissionship: i32, + #[prost(message, optional, tag="2")] + pub partial_caveat_info: ::core::option::Option, +} +/// BulkImportRelationshipsRequest represents one batch of the streaming +/// BulkImportRelationships API. The maximum size is only limited by the backing +/// datastore, and optimal size should be determined by the calling client +/// experimentally. When BulkImport is invoked and receives its first request message, +/// a transaction is opened to import the relationships. All requests sent to the same +/// invocation are executed under this single transaction. If a relationship already +/// exists within the datastore, the entire transaction will fail with an error. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkImportRelationshipsRequest { + #[prost(message, repeated, tag="1")] + pub relationships: ::prost::alloc::vec::Vec, +} +/// BulkImportRelationshipsResponse is returned on successful completion of the +/// bulk load stream, and contains the total number of relationships loaded. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct BulkImportRelationshipsResponse { + #[prost(uint64, tag="1")] + pub num_loaded: u64, +} +/// BulkExportRelationshipsRequest represents a resumable request for +/// all relationships from the server. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkExportRelationshipsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// optional_limit, if non-zero, specifies the limit on the number of + /// relationships the server can return in one page. By default, the server + /// will pick a page size, and the server is free to choose a smaller size + /// at will. + #[prost(uint32, tag="2")] + pub optional_limit: u32, + /// optional_cursor, if specified, indicates the cursor after which results + /// should resume being returned. The cursor can be found on the + /// BulkExportRelationshipsResponse object. + #[prost(message, optional, tag="3")] + pub optional_cursor: ::core::option::Option, + /// optional_relationship_filter, if specified, indicates the + /// filter to apply to each relationship to be exported. + #[prost(message, optional, tag="4")] + pub optional_relationship_filter: ::core::option::Option, +} +/// BulkExportRelationshipsResponse is one page in a stream of relationship +/// groups that meet the criteria specified by the originating request. The +/// server will continue to stream back relationship groups as quickly as it can +/// until all relationships have been transmitted back. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BulkExportRelationshipsResponse { + #[prost(message, optional, tag="1")] + pub after_result_cursor: ::core::option::Option, + #[prost(message, repeated, tag="2")] + pub relationships: ::prost::alloc::vec::Vec, +} +// Reflection types //////////////////////////////////////////// + +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalReflectSchemaRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// optional_filters defines optional filters that are applied in + /// an OR fashion to the schema, before being returned + #[prost(message, repeated, tag="2")] + pub optional_filters: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalReflectSchemaResponse { + /// definitions are the definitions defined in the schema. + #[prost(message, repeated, tag="1")] + pub definitions: ::prost::alloc::vec::Vec, + /// caveats are the caveats defined in the schema. + #[prost(message, repeated, tag="2")] + pub caveats: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="3")] + pub read_at: ::core::option::Option, +} +/// ExpSchemaFilter is a filter that can be applied to the schema on reflection. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpSchemaFilter { + /// optional_definition_name_filter is a prefix that is matched against the definition name. + #[prost(string, tag="1")] + pub optional_definition_name_filter: ::prost::alloc::string::String, + /// optional_caveat_name_filter is a prefix that is matched against the caveat name. + #[prost(string, tag="2")] + pub optional_caveat_name_filter: ::prost::alloc::string::String, + /// optional_relation_name_filter is a prefix that is matched against the relation name. + #[prost(string, tag="3")] + pub optional_relation_name_filter: ::prost::alloc::string::String, + /// optional_permission_name_filter is a prefix that is matched against the permission name. + #[prost(string, tag="4")] + pub optional_permission_name_filter: ::prost::alloc::string::String, +} +/// ExpDefinition is the representation of a definition in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpDefinition { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// comment is a human-readable comments on the definition. Will include + /// delimiter characters. + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub relations: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="4")] + pub permissions: ::prost::alloc::vec::Vec, +} +/// ExpCaveat is the representation of a caveat in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpCaveat { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// comment is a human-readable comments on the caveat. Will include + /// delimiter characters. + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub parameters: ::prost::alloc::vec::Vec, + #[prost(string, tag="4")] + pub expression: ::prost::alloc::string::String, +} +/// ExpCaveatParameter is the representation of a parameter in a caveat. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpCaveatParameter { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// type is the type of the parameter. Will be a string representing the + /// type, e.g. `int` or `list` + #[prost(string, tag="2")] + pub r#type: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub parent_caveat_name: ::prost::alloc::string::String, +} +/// ExpRelation is the representation of a relation in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpRelation { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub parent_definition_name: ::prost::alloc::string::String, + #[prost(message, repeated, tag="4")] + pub subject_types: ::prost::alloc::vec::Vec, +} +/// ExpTypeReference is the representation of a type reference in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpTypeReference { + /// subject_definition_name is the name of the subject's definition. + #[prost(string, tag="1")] + pub subject_definition_name: ::prost::alloc::string::String, + /// optional_caveat_name is the name of the caveat that is applied to the subject, if any. + #[prost(string, tag="2")] + pub optional_caveat_name: ::prost::alloc::string::String, + #[prost(oneof="exp_type_reference::Typeref", tags="3, 4, 5")] + pub typeref: ::core::option::Option, +} +/// Nested message and enum types in `ExpTypeReference`. +pub mod exp_type_reference { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Typeref { + /// is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation. + #[prost(bool, tag="3")] + IsTerminalSubject(bool), + /// optional_relation_name is the name of the relation that is applied to the subject, if any. + #[prost(string, tag="4")] + OptionalRelationName(::prost::alloc::string::String), + /// is_public_wildcard is true if the subject is a public wildcard. + #[prost(bool, tag="5")] + IsPublicWildcard(bool), + } +} +/// ExpPermission is the representation of a permission in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpPermission { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// comment is a human-readable comments on the permission. Will include + /// delimiter characters. + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub parent_definition_name: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalComputablePermissionsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(string, tag="2")] + pub definition_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub relation_name: ::prost::alloc::string::String, + /// optional_definition_name_match is a prefix that is matched against the definition name(s) + /// for the permissions returned. + /// If not specified, will be ignored. + #[prost(string, tag="4")] + pub optional_definition_name_filter: ::prost::alloc::string::String, +} +/// ExpRelationReference is a reference to a relation or permission in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpRelationReference { + #[prost(string, tag="1")] + pub definition_name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub relation_name: ::prost::alloc::string::String, + #[prost(bool, tag="3")] + pub is_permission: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalComputablePermissionsResponse { + #[prost(message, repeated, tag="1")] + pub permissions: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalDependentRelationsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(string, tag="2")] + pub definition_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub permission_name: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalDependentRelationsResponse { + #[prost(message, repeated, tag="1")] + pub relations: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalDiffSchemaRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(string, tag="2")] + pub comparison_schema: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExperimentalDiffSchemaResponse { + #[prost(message, repeated, tag="1")] + pub diffs: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpRelationSubjectTypeChange { + #[prost(message, optional, tag="1")] + pub relation: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub changed_subject_type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpCaveatParameterTypeChange { + #[prost(message, optional, tag="1")] + pub parameter: ::core::option::Option, + #[prost(string, tag="2")] + pub previous_type: ::prost::alloc::string::String, +} +/// ExpSchemaDiff is the representation of a diff between two schemas. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExpSchemaDiff { + #[prost(oneof="exp_schema_diff::Diff", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19")] + pub diff: ::core::option::Option, +} +/// Nested message and enum types in `ExpSchemaDiff`. +pub mod exp_schema_diff { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Diff { + #[prost(message, tag="1")] + DefinitionAdded(super::ExpDefinition), + #[prost(message, tag="2")] + DefinitionRemoved(super::ExpDefinition), + #[prost(message, tag="3")] + DefinitionDocCommentChanged(super::ExpDefinition), + #[prost(message, tag="4")] + RelationAdded(super::ExpRelation), + #[prost(message, tag="5")] + RelationRemoved(super::ExpRelation), + #[prost(message, tag="6")] + RelationDocCommentChanged(super::ExpRelation), + #[prost(message, tag="7")] + RelationSubjectTypeAdded(super::ExpRelationSubjectTypeChange), + #[prost(message, tag="8")] + RelationSubjectTypeRemoved(super::ExpRelationSubjectTypeChange), + #[prost(message, tag="9")] + PermissionAdded(super::ExpPermission), + #[prost(message, tag="10")] + PermissionRemoved(super::ExpPermission), + #[prost(message, tag="11")] + PermissionDocCommentChanged(super::ExpPermission), + #[prost(message, tag="12")] + PermissionExprChanged(super::ExpPermission), + #[prost(message, tag="13")] + CaveatAdded(super::ExpCaveat), + #[prost(message, tag="14")] + CaveatRemoved(super::ExpCaveat), + #[prost(message, tag="15")] + CaveatDocCommentChanged(super::ExpCaveat), + #[prost(message, tag="16")] + CaveatExprChanged(super::ExpCaveat), + #[prost(message, tag="17")] + CaveatParameterAdded(super::ExpCaveatParameter), + #[prost(message, tag="18")] + CaveatParameterRemoved(super::ExpCaveatParameter), + #[prost(message, tag="19")] + CaveatParameterTypeChanged(super::ExpCaveatParameterTypeChange), + } +} +/// ReadSchemaRequest returns the schema from the database. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] +pub struct ReadSchemaRequest { +} +/// ReadSchemaResponse is the resulting data after having read the Object +/// Definitions from a Schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReadSchemaResponse { + /// schema_text is the textual form of the current schema in the system + #[prost(string, tag="1")] + pub schema_text: ::prost::alloc::string::String, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +/// WriteSchemaRequest is the required data used to "upsert" the Schema of a +/// Permissions System. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WriteSchemaRequest { + /// The Schema containing one or more Object Definitions that will be written + /// to the Permissions System. + /// + /// 4MiB + #[prost(string, tag="1")] + pub schema: ::prost::alloc::string::String, +} +/// WriteSchemaResponse is the resulting data after having written a Schema to +/// a Permissions System. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WriteSchemaResponse { + /// written_at is the ZedToken at which the schema was written. + #[prost(message, optional, tag="1")] + pub written_at: ::core::option::Option, +} +// Reflection types //////////////////////////////////////////// + +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectSchemaRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + /// optional_filters defines optional filters that are applied in + /// an OR fashion to the schema, before being returned + #[prost(message, repeated, tag="2")] + pub optional_filters: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectSchemaResponse { + /// definitions are the definitions defined in the schema. + #[prost(message, repeated, tag="1")] + pub definitions: ::prost::alloc::vec::Vec, + /// caveats are the caveats defined in the schema. + #[prost(message, repeated, tag="2")] + pub caveats: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="3")] + pub read_at: ::core::option::Option, +} +/// ReflectionSchemaFilter is a filter that can be applied to the schema on reflection. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionSchemaFilter { + /// optional_definition_name_filter is a prefix that is matched against the definition name. + #[prost(string, tag="1")] + pub optional_definition_name_filter: ::prost::alloc::string::String, + /// optional_caveat_name_filter is a prefix that is matched against the caveat name. + #[prost(string, tag="2")] + pub optional_caveat_name_filter: ::prost::alloc::string::String, + /// optional_relation_name_filter is a prefix that is matched against the relation name. + #[prost(string, tag="3")] + pub optional_relation_name_filter: ::prost::alloc::string::String, + /// optional_permission_name_filter is a prefix that is matched against the permission name. + #[prost(string, tag="4")] + pub optional_permission_name_filter: ::prost::alloc::string::String, +} +/// ReflectionDefinition is the representation of a definition in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionDefinition { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// comment is a human-readable comments on the definition. Will include + /// delimiter characters. + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub relations: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="4")] + pub permissions: ::prost::alloc::vec::Vec, +} +/// ReflectionCaveat is the representation of a caveat in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionCaveat { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// comment is a human-readable comments on the caveat. Will include + /// delimiter characters. + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub parameters: ::prost::alloc::vec::Vec, + #[prost(string, tag="4")] + pub expression: ::prost::alloc::string::String, +} +/// ReflectionCaveatParameter is the representation of a parameter in a caveat. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionCaveatParameter { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// type is the type of the parameter. Will be a string representing the + /// type, e.g. `int` or `list` + #[prost(string, tag="2")] + pub r#type: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub parent_caveat_name: ::prost::alloc::string::String, +} +/// ReflectionRelation is the representation of a relation in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionRelation { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub parent_definition_name: ::prost::alloc::string::String, + #[prost(message, repeated, tag="4")] + pub subject_types: ::prost::alloc::vec::Vec, +} +/// ReflectionTypeReference is the representation of a type reference in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionTypeReference { + /// subject_definition_name is the name of the subject's definition. + #[prost(string, tag="1")] + pub subject_definition_name: ::prost::alloc::string::String, + /// optional_caveat_name is the name of the caveat that is applied to the subject, if any. + #[prost(string, tag="2")] + pub optional_caveat_name: ::prost::alloc::string::String, + #[prost(oneof="reflection_type_reference::Typeref", tags="3, 4, 5")] + pub typeref: ::core::option::Option, +} +/// Nested message and enum types in `ReflectionTypeReference`. +pub mod reflection_type_reference { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Typeref { + /// is_terminal_subject is true if the subject is terminal, meaning it is referenced directly vs a sub-relation. + #[prost(bool, tag="3")] + IsTerminalSubject(bool), + /// optional_relation_name is the name of the relation that is applied to the subject, if any. + #[prost(string, tag="4")] + OptionalRelationName(::prost::alloc::string::String), + /// is_public_wildcard is true if the subject is a public wildcard. + #[prost(bool, tag="5")] + IsPublicWildcard(bool), + } +} +/// ReflectionPermission is the representation of a permission in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionPermission { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// comment is a human-readable comments on the permission. Will include + /// delimiter characters. + #[prost(string, tag="2")] + pub comment: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub parent_definition_name: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ComputablePermissionsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(string, tag="2")] + pub definition_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub relation_name: ::prost::alloc::string::String, + /// optional_definition_name_match is a prefix that is matched against the definition name(s) + /// for the permissions returned. + /// If not specified, will be ignored. + #[prost(string, tag="4")] + pub optional_definition_name_filter: ::prost::alloc::string::String, +} +/// ReflectionRelationReference is a reference to a relation or permission in the schema. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionRelationReference { + #[prost(string, tag="1")] + pub definition_name: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub relation_name: ::prost::alloc::string::String, + #[prost(bool, tag="3")] + pub is_permission: bool, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ComputablePermissionsResponse { + #[prost(message, repeated, tag="1")] + pub permissions: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DependentRelationsRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(string, tag="2")] + pub definition_name: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub permission_name: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DependentRelationsResponse { + #[prost(message, repeated, tag="1")] + pub relations: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DiffSchemaRequest { + #[prost(message, optional, tag="1")] + pub consistency: ::core::option::Option, + #[prost(string, tag="2")] + pub comparison_schema: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DiffSchemaResponse { + #[prost(message, repeated, tag="1")] + pub diffs: ::prost::alloc::vec::Vec, + /// read_at is the ZedToken at which the schema was read. + #[prost(message, optional, tag="2")] + pub read_at: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionRelationSubjectTypeChange { + #[prost(message, optional, tag="1")] + pub relation: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub changed_subject_type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionCaveatParameterTypeChange { + #[prost(message, optional, tag="1")] + pub parameter: ::core::option::Option, + #[prost(string, tag="2")] + pub previous_type: ::prost::alloc::string::String, +} +/// ReflectionSchemaDiff is the representation of a diff between two schemas. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReflectionSchemaDiff { + #[prost(oneof="reflection_schema_diff::Diff", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19")] + pub diff: ::core::option::Option, +} +/// Nested message and enum types in `ReflectionSchemaDiff`. +pub mod reflection_schema_diff { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Diff { + #[prost(message, tag="1")] + DefinitionAdded(super::ReflectionDefinition), + #[prost(message, tag="2")] + DefinitionRemoved(super::ReflectionDefinition), + #[prost(message, tag="3")] + DefinitionDocCommentChanged(super::ReflectionDefinition), + #[prost(message, tag="4")] + RelationAdded(super::ReflectionRelation), + #[prost(message, tag="5")] + RelationRemoved(super::ReflectionRelation), + #[prost(message, tag="6")] + RelationDocCommentChanged(super::ReflectionRelation), + #[prost(message, tag="7")] + RelationSubjectTypeAdded(super::ReflectionRelationSubjectTypeChange), + #[prost(message, tag="8")] + RelationSubjectTypeRemoved(super::ReflectionRelationSubjectTypeChange), + #[prost(message, tag="9")] + PermissionAdded(super::ReflectionPermission), + #[prost(message, tag="10")] + PermissionRemoved(super::ReflectionPermission), + #[prost(message, tag="11")] + PermissionDocCommentChanged(super::ReflectionPermission), + #[prost(message, tag="12")] + PermissionExprChanged(super::ReflectionPermission), + #[prost(message, tag="13")] + CaveatAdded(super::ReflectionCaveat), + #[prost(message, tag="14")] + CaveatRemoved(super::ReflectionCaveat), + #[prost(message, tag="15")] + CaveatDocCommentChanged(super::ReflectionCaveat), + #[prost(message, tag="16")] + CaveatExprChanged(super::ReflectionCaveat), + #[prost(message, tag="17")] + CaveatParameterAdded(super::ReflectionCaveatParameter), + #[prost(message, tag="18")] + CaveatParameterRemoved(super::ReflectionCaveatParameter), + #[prost(message, tag="19")] + CaveatParameterTypeChanged(super::ReflectionCaveatParameterTypeChange), + } +} +/// WatchRequest specifies what mutations to watch for, and an optional start snapshot for when to start +/// watching. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchRequest { + /// optional_object_types is a filter of resource object types to watch for relationship changes. + /// If specified, only changes to the specified object types will be returned and + /// optional_relationship_filters cannot be used. + #[prost(string, repeated, tag="1")] + pub optional_object_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// optional_start_cursor is the ZedToken holding the point-in-time at + /// which to start watching for changes. + /// If not specified, the watch will begin at the current head revision + /// of the datastore, returning any updates that occur after the caller + /// makes the request. + /// Note that if this cursor references a point-in-time containing data + /// that has been garbage collected, an error will be returned. + #[prost(message, optional, tag="2")] + pub optional_start_cursor: ::core::option::Option, + /// optional_relationship_filters, if specified, indicates the + /// filter(s) to apply to each relationship to be returned by watch. + /// The relationship will be returned as long as at least one filter matches, + /// this allows clients to match relationships on multiple filters on a single watch call. + /// If specified, optional_object_types cannot be used. + #[prost(message, repeated, tag="3")] + pub optional_relationship_filters: ::prost::alloc::vec::Vec, + /// optional_update_kinds, if specified, indicates what kinds of mutations to include. + #[prost(enumeration="WatchKind", repeated, tag="4")] + pub optional_update_kinds: ::prost::alloc::vec::Vec, +} +/// WatchResponse contains all mutation events in ascending timestamp order, +/// from the requested start snapshot to a snapshot +/// encoded in the watch response. The client can use the snapshot to resume +/// watching where the previous watch response left off. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WatchResponse { + /// updates are the RelationshipUpdate events that have occurred since the + /// last watch response. + #[prost(message, repeated, tag="1")] + pub updates: ::prost::alloc::vec::Vec, + /// changes_through is the ZedToken that represents the point in time + /// that the watch response is current through. This token can be used + /// in a subsequent WatchRequest to resume watching from this point. + #[prost(message, optional, tag="2")] + pub changes_through: ::core::option::Option, + /// optional_transaction_metadata is an optional field that returns the transaction metadata + /// given to SpiceDB during the transaction that produced the changes in this response. + /// This field may not exist if no transaction metadata was provided. + #[prost(message, optional, tag="3")] + pub optional_transaction_metadata: ::core::option::Option, + /// schema_updated, if true, indicates that the schema was changed in this revision. + #[prost(bool, tag="4")] + pub schema_updated: bool, + /// is_checkpoint, if true, indicates that a checkpoint was reached. + /// A checkpoint indicates that the server guarantees that the client + /// will not observe any changes at a revision below or equal to the revision in this response. + #[prost(bool, tag="5")] + pub is_checkpoint: bool, +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum WatchKind { + /// Default, just relationship updates (for backwards compatibility) + Unspecified = 0, + IncludeRelationshipUpdates = 1, + IncludeSchemaUpdates = 2, + IncludeCheckpoints = 3, +} +impl WatchKind { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + WatchKind::Unspecified => "WATCH_KIND_UNSPECIFIED", + WatchKind::IncludeRelationshipUpdates => "WATCH_KIND_INCLUDE_RELATIONSHIP_UPDATES", + WatchKind::IncludeSchemaUpdates => "WATCH_KIND_INCLUDE_SCHEMA_UPDATES", + WatchKind::IncludeCheckpoints => "WATCH_KIND_INCLUDE_CHECKPOINTS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "WATCH_KIND_UNSPECIFIED" => Some(Self::Unspecified), + "WATCH_KIND_INCLUDE_RELATIONSHIP_UPDATES" => Some(Self::IncludeRelationshipUpdates), + "WATCH_KIND_INCLUDE_SCHEMA_UPDATES" => Some(Self::IncludeSchemaUpdates), + "WATCH_KIND_INCLUDE_CHECKPOINTS" => Some(Self::IncludeCheckpoints), + _ => None, + } + } +} +// @@protoc_insertion_point(module) diff --git a/tests/authorization/cedar_authorizer_test.rs b/tests/authorization/cedar_authorizer_test.rs deleted file mode 100644 index 4938033c..00000000 --- a/tests/authorization/cedar_authorizer_test.rs +++ /dev/null @@ -1,149 +0,0 @@ -#[cfg(test)] -mod tests { - use crate::support::factory_bot::*; - use crate::support::*; - use authzd::Authorizer; - use envoy_types::pb::envoy::service::auth::v3::attribute_context::HttpRequest; - use std::collections::HashMap; - - fn subject() -> authzd::authorization::cedar::Authorizer { - common::setup(); - subject_with(cedar_policy::Entities::empty()) - } - - fn subject_with(entities: cedar_policy::Entities) -> authzd::authorization::cedar::Authorizer { - build_cedar_authorizer(entities) - } - - #[test] - fn test_cedar_authorizer_denies_missing_header() { - assert!( - !subject().authorize(build_request(|item: &mut HttpRequest| { - item.headers = HashMap::new(); - })) - ); - } - - #[test] - fn test_unauthenticated_sparkle_endpoints() { - let hosts = vec![ - "localhost:10000", - "sparkle.runway.gitlab.net", - "sparkle.staging.runway.gitlab.net", - ]; - - let routes = vec![ - ("GET", "/", true), - ("GET", "/callback", true), - ("GET", "/dashboard/nav", true), - ("GET", "/health", true), - ("GET", "/signout", true), - ("GET", "/sparkles", true), - ("POST", "/sparkles/restore", true), - ("GET", "/dashboard", false), - ("POST", "/sparkles", false), - ]; - - let authorizer = subject(); - for host in hosts { - for (method, path, expected) in &routes { - let request = build_request(|item: &mut HttpRequest| { - item.method = method.to_string(); - item.path = path.to_string(); - item.host = host.to_string(); - item.headers = build_headers(vec![ - (String::from(":path"), path.to_string()), - (String::from(":method"), method.to_string()), - (String::from(":authority"), host.to_string()), - ]); - }); - - assert_eq!( - authorizer.authorize(request), - *expected, - "{} {}", - method, - path - ); - } - } - } - - // TODO:: Add entities to represent access to: - // * list of sparkles: `:read, gid://sparkle/Sparkle/*` - // * single sparkle: `:read, gid://sparkle/Sparkle/:id` - // * create sparkle: `:create, gid://sparkle/Sparkle/*` - // * update sparkles: `:update, gid://sparkle/Sparkle/*` - // * update single sparkle: `:update, gid://sparkle/Sparkle/:id` - // * delete sparkles: `:delete, gid://sparkle/Sparkle/*` - // * delete single sparkle: `:delete, gid://sparkle/Sparkle/:id` - #[test] - fn test_authenticated_create_sparkle() { - let request = build_request(|item: &mut HttpRequest| { - item.method = "POST".to_string(); - item.path = "/sparkles".to_string(); - item.host = "sparkle.staging.runway.gitlab.net".to_string(); - item.headers = build_headers(vec![ - (String::from(":path"), item.path.to_string()), - (String::from(":method"), item.method.to_string()), - (String::from(":authority"), item.host.to_string()), - (String::from("x-jwt-claim-sub"), "1675940".to_string()), - ]); - }); - - let mut attrs = std::collections::HashMap::new(); - attrs.insert( - "username".to_string(), - cedar_policy::RestrictedExpression::new_string("tanuki".to_string()), - ); - let user = build_user("1675940", attrs); - let entities = cedar_policy::Entities::from_entities([user], None).unwrap(); - let authorizer = subject_with(entities); - assert!(authorizer.authorize(request.clone())); - - let mut attrs = std::collections::HashMap::new(); - attrs.insert( - "username".to_string(), - cedar_policy::RestrictedExpression::new_string("root".to_string()), - ); - let user = build_user("1", attrs); - let entities = cedar_policy::Entities::from_entities([user], None).unwrap(); - let authorizer = subject_with(entities); - assert!(!authorizer.authorize(request.clone())); - } - - #[test] - fn test_sparkle_homepage() { - let request = build_request(|item: &mut HttpRequest| { - item.method = "GET".to_string(); - item.path = "/".to_string(); - item.host = "localhost:10000".to_string(); - item.headers = build_headers(vec![ - (String::from(":path"), item.path.to_string()), - (String::from(":method"), item.method.to_string()), - (String::from(":authority"), item.host.to_string()), - ]); - }); - - let authorizer = subject(); - assert_eq!(authorizer.authorize(request), true); - } - - #[test] - fn test_sparkle_dashboard() { - let request = build_request(|item: &mut HttpRequest| { - item.method = "GET".to_string(); - item.path = "/dashboard".to_string(); - item.host = "localhost:10000".to_string(); - item.headers = build_headers(vec![ - (String::from("x-jwt-claim-sub"), "1".to_string()), - (String::from(":path"), item.path.to_string()), - (String::from(":method"), item.method.to_string()), - (String::from(":authority"), item.host.to_string()), - ]); - }); - - let authorizer = subject(); - assert_eq!(authorizer.authorize(request), true); - } -} diff --git a/tests/authorization/check_service_test.rs b/tests/authorization/check_service_test.rs index 30450134..acf2d4a1 100644 --- a/tests/authorization/check_service_test.rs +++ b/tests/authorization/check_service_test.rs @@ -7,9 +7,7 @@ mod tests { use std::sync::Arc; fn subject() -> CheckService { - CheckService::new(Arc::new(build_cedar_authorizer( - cedar_policy::Entities::empty(), - ))) + CheckService::new(Arc::new(build_spice_authorizer())) } #[tokio::test] diff --git a/tests/authorization/mod.rs b/tests/authorization/mod.rs index 7cad6c25..a1313cb7 100644 --- a/tests/authorization/mod.rs +++ b/tests/authorization/mod.rs @@ -1,4 +1,3 @@ -mod cedar_authorizer_test; mod check_service_test; mod server_test; mod spice; diff --git a/tests/support/factory_bot.rs b/tests/support/factory_bot.rs index 7ebe75ec..f06d0b4f 100644 --- a/tests/support/factory_bot.rs +++ b/tests/support/factory_bot.rs @@ -3,7 +3,6 @@ use envoy_types::pb::envoy::service::auth::v3::CheckRequest; use envoy_types::pb::envoy::service::auth::v3::attribute_context::{HttpRequest, Request}; use std::collections::HashMap; use std::net::SocketAddr; -use std::str::FromStr; use tonic::transport::Channel; #[allow(dead_code)] @@ -37,14 +36,6 @@ pub fn build_headers(headers: Vec<(String, String)>) -> HashMap }) } -pub fn build_cedar_authorizer( - entities: cedar_policy::Entities, -) -> authzd::authorization::cedar::Authorizer { - let realpath = std::fs::canonicalize("./etc/authzd").unwrap(); - let path = realpath.as_path(); - authzd::authorization::cedar::Authorizer::new_from(path, entities) -} - pub async fn build_channel(addr: SocketAddr) -> Channel { Channel::from_shared(format!("http://{}", addr)) .expect("Failed to create channel") @@ -60,17 +51,6 @@ where f(build_channel(addr).await) } -pub fn build_user( - id: &str, - attrs: std::collections::HashMap, -) -> cedar_policy::Entity { - cedar_policy::Entity::new( - cedar_policy::EntityUid::from_type_name_and_id( - cedar_policy::EntityTypeName::from_str("User").unwrap(), - cedar_policy::EntityId::from_str(id).unwrap(), - ), - attrs, - std::collections::HashSet::new(), - ) - .unwrap() +pub fn build_spice_authorizer() -> authzd::authorization::spice::Authorizer { + authzd::authorization::spice::Authorizer::default() } diff --git a/vendor/android-tzdata/.cargo-checksum.json b/vendor/android-tzdata/.cargo-checksum.json deleted file mode 100644 index ce22ca81..00000000 --- a/vendor/android-tzdata/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"Cargo.toml":"a87d9acc9827a50c7a96a88720c5dd055cbc08b1144dff95bd572ff977d4a79a","LICENSE-APACHE":"4458503dd48e88c4e0b945fb252a08b93c40ec757309b8ffa7c594dfa1e35104","LICENSE-MIT":"002c2696d92b5c8cf956c11072baa58eaf9f6ade995c031ea635c6a1ee342ad1","README.md":"6dfe0c602dc61eebe118900ed66a2c1f7887b9fe95b36e1c2974c4e8fa7ebd4b","src/lib.rs":"8f421233df83f82e737930ca8a2ad254966334183148bcc170f9c405df230de2","src/tzdata.rs":"78920925b04219910511e9a1f036f468cd2925c0054f280d6a00b106529046e7"},"package":"e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"} \ No newline at end of file diff --git a/vendor/android-tzdata/Cargo.toml b/vendor/android-tzdata/Cargo.toml deleted file mode 100644 index 805128a8..00000000 --- a/vendor/android-tzdata/Cargo.toml +++ /dev/null @@ -1,34 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -edition = "2018" -name = "android-tzdata" -version = "0.1.1" -authors = ["RumovZ"] -include = [ - "src/**/*", - "LICENSE-*", - "README.md", -] -description = "Parser for the Android-specific tzdata file" -readme = "README.md" -keywords = [ - "parser", - "android", - "timezone", -] -categories = ["date-and-time"] -license = "MIT OR Apache-2.0" -repository = "https://github.com/RumovZ/android-tzdata" - -[dev-dependencies.zip] -version = "0.6.4" diff --git a/vendor/android-tzdata/LICENSE-APACHE b/vendor/android-tzdata/LICENSE-APACHE deleted file mode 100644 index c61b6639..00000000 --- a/vendor/android-tzdata/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/vendor/android-tzdata/LICENSE-MIT b/vendor/android-tzdata/LICENSE-MIT deleted file mode 100644 index 8aa26455..00000000 --- a/vendor/android-tzdata/LICENSE-MIT +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) [year] [fullname] - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/android-tzdata/README.md b/vendor/android-tzdata/README.md deleted file mode 100644 index d3f90313..00000000 --- a/vendor/android-tzdata/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# android-tzdata - -Parser for the Android-specific tzdata file. - -## License - -Licensed under either of - -- Apache License, Version 2.0 - ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) -- MIT license - ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) - -at your option. - -## Contribution - -Unless you explicitly state otherwise, any contribution intentionally submitted -for inclusion in the work by you, as defined in the Apache-2.0 license, shall be -dual licensed as above, without any additional terms or conditions. diff --git a/vendor/android-tzdata/src/lib.rs b/vendor/android-tzdata/src/lib.rs deleted file mode 100644 index b6b0e36c..00000000 --- a/vendor/android-tzdata/src/lib.rs +++ /dev/null @@ -1,29 +0,0 @@ -//! Parser for the Android-specific tzdata file. - -mod tzdata; - -/// Tries to locate the `tzdata` file, parse it, and return the entry for the -/// requested time zone. -/// -/// # Errors -/// -/// Returns an [std::io::Error] if the `tzdata` file cannot be found and parsed, or -/// if it does not contain the requested timezone entry. -/// -/// # Example -/// -/// ```rust -/// # use std::error::Error; -/// # use android_tzdata::find_tz_data; -/// # -/// # fn main() -> Result<(), Box> { -/// let tz_data = find_tz_data("Europe/Kiev")?; -/// // Check it's version 2 of the [Time Zone Information Format](https://www.ietf.org/archive/id/draft-murchison-rfc8536bis-02.html). -/// assert!(tz_data.starts_with(b"TZif2")); -/// # Ok(()) -/// # } -/// ``` -pub fn find_tz_data(tz_name: impl AsRef) -> Result, std::io::Error> { - let mut file = tzdata::find_file()?; - tzdata::find_tz_data_in_file(&mut file, tz_name.as_ref()) -} diff --git a/vendor/android-tzdata/src/tzdata.rs b/vendor/android-tzdata/src/tzdata.rs deleted file mode 100644 index 92e4b621..00000000 --- a/vendor/android-tzdata/src/tzdata.rs +++ /dev/null @@ -1,166 +0,0 @@ -//! Logic was mainly ported from https://android.googlesource.com/platform/libcore/+/jb-mr2-release/luni/src/main/java/libcore/util/ZoneInfoDB.java - -use core::{cmp::Ordering, convert::TryInto}; -use std::{ - fs::File, - io::{self, ErrorKind, Read, Seek, SeekFrom}, -}; - -// The database uses 32-bit (4 byte) integers. -const TZ_INT_SIZE: usize = 4; -// The first 12 bytes contain a special version string. -const MAGIC_SIZE: usize = 12; -const HEADER_SIZE: usize = MAGIC_SIZE + 3 * TZ_INT_SIZE; -// The database reserves 40 bytes for each id. -const TZ_NAME_SIZE: usize = 40; -const INDEX_ENTRY_SIZE: usize = TZ_NAME_SIZE + 3 * TZ_INT_SIZE; -const TZDATA_LOCATIONS: [TzdataLocation; 2] = [ - TzdataLocation { - env_var: "ANDROID_DATA", - path: "/misc/zoneinfo/", - }, - TzdataLocation { - env_var: "ANDROID_ROOT", - path: "/usr/share/zoneinfo/", - }, -]; - -#[derive(Debug)] -struct TzdataLocation { - env_var: &'static str, - path: &'static str, -} - -#[derive(Debug, Clone, Copy)] -struct Header { - index_offset: usize, - data_offset: usize, - _zonetab_offset: usize, -} - -#[derive(Debug)] -struct Index(Vec); - -#[derive(Debug, Clone, Copy)] -struct IndexEntry<'a> { - _name: &'a [u8], - offset: usize, - length: usize, - _raw_utc_offset: usize, -} - -pub(super) fn find_file() -> Result { - for location in &TZDATA_LOCATIONS { - if let Ok(env_value) = std::env::var(location.env_var) { - if let Ok(file) = File::open(format!("{}{}tzdata", env_value, location.path)) { - return Ok(file); - } - } - } - Err(io::Error::from(io::ErrorKind::NotFound)) -} - -pub(super) fn find_tz_data_in_file( - mut file: impl Read + Seek, - tz_name: &str, -) -> Result, io::Error> { - let header = Header::new(&mut file)?; - let index = Index::new(&mut file, header)?; - if let Some(entry) = index.find_entry(tz_name) { - file.seek(SeekFrom::Start((entry.offset + header.data_offset) as u64))?; - let mut tz_data = vec![0u8; entry.length]; - file.read_exact(&mut tz_data)?; - Ok(tz_data) - } else { - Err(io::Error::from(ErrorKind::NotFound)) - } -} - -impl Header { - fn new(mut file: impl Read + Seek) -> Result { - let mut buf = [0; HEADER_SIZE]; - file.read_exact(&mut buf)?; - if !buf.starts_with(b"tzdata") || buf[MAGIC_SIZE - 1] != 0u8 { - return Err(io::Error::new( - io::ErrorKind::InvalidData, - "invalid magic number", - )); - } - Ok(Self { - index_offset: parse_tz_int(&buf, MAGIC_SIZE) as usize, - data_offset: parse_tz_int(&buf, MAGIC_SIZE + TZ_INT_SIZE) as usize, - _zonetab_offset: parse_tz_int(&buf, MAGIC_SIZE + 2 * TZ_INT_SIZE) as usize, - }) - } -} - -impl Index { - fn new(mut file: impl Read + Seek, header: Header) -> Result { - file.seek(SeekFrom::Start(header.index_offset as u64))?; - let size = header.data_offset - header.index_offset; - let mut bytes = vec![0; size]; - file.read_exact(&mut bytes)?; - Ok(Self(bytes)) - } - - fn find_entry(&self, name: &str) -> Option { - let name_bytes = name.as_bytes(); - let name_len = name_bytes.len(); - if name_len > TZ_NAME_SIZE { - return None; - } - - let zeros = [0u8; TZ_NAME_SIZE]; - let cmp = |chunk: &&[u8]| -> Ordering { - // tz names always have TZ_NAME_SIZE bytes and are right-padded with 0s - // so we check that a chunk starts with `name` and the remaining bytes are 0 - chunk[..name_len] - .cmp(name_bytes) - .then_with(|| chunk[name_len..TZ_NAME_SIZE].cmp(&zeros[name_len..])) - }; - - let chunks: Vec<_> = self.0.chunks_exact(INDEX_ENTRY_SIZE).collect(); - chunks - .binary_search_by(cmp) - .map(|idx| IndexEntry::new(chunks[idx])) - .ok() - } -} - -impl<'a> IndexEntry<'a> { - fn new(bytes: &'a [u8]) -> Self { - Self { - _name: bytes[..TZ_NAME_SIZE] - .splitn(2, |&b| b == 0u8) - .next() - .unwrap(), - offset: parse_tz_int(bytes, TZ_NAME_SIZE) as usize, - length: parse_tz_int(bytes, TZ_NAME_SIZE + TZ_INT_SIZE) as usize, - _raw_utc_offset: parse_tz_int(bytes, TZ_NAME_SIZE + 2 * TZ_INT_SIZE) as usize, - } - } -} - -/// Panics if slice does not contain [TZ_INT_SIZE] bytes beginning at start. -fn parse_tz_int(slice: &[u8], start: usize) -> u32 { - u32::from_be_bytes(slice[start..start + TZ_INT_SIZE].try_into().unwrap()) -} - -#[cfg(test)] -mod test { - use super::*; - use std::fs::File; - use std::io::Cursor; - - #[test] - fn parse() { - let mut archive = File::open("tests/resources/tzdata.zip").unwrap(); - let mut zip = zip::ZipArchive::new(&mut archive).unwrap(); - let mut file = zip.by_index(0).unwrap(); - let mut data = Vec::new(); - file.read_to_end(&mut data).unwrap(); - let cursor = Cursor::new(data); - let tz = find_tz_data_in_file(cursor, "Europe/Kiev").unwrap(); - assert!(tz.starts_with(b"TZif2")); - } -} diff --git a/vendor/android_system_properties/.cargo-checksum.json b/vendor/android_system_properties/.cargo-checksum.json deleted file mode 100644 index 1588ce5b..00000000 --- a/vendor/android_system_properties/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"CONTRIBUTING.md":"0834cb3b5e092977688d73d219a05bed23ae0ecb54b6d6e5d866ce07f6583b5e","Cargo.lock":"37ffc00dbbbec58fd27b4f4cb597e5402d6cf615ce0458f62a73a7f0d987e5bd","Cargo.toml":"e9e8c037cdef7adc9794b17c13e5a014421524d67ea5048bc09cf70ef13c782c","LICENSE-APACHE":"216486f29671a4262efe32af6d84a75bef398127f8c5f369b5c8305983887a06","LICENSE-MIT":"80f275e90d799911ed3830a7f242a2ef5a4ade2092fe0aa07bfb2d2cf2f2b95e","README.md":"aba8ff5dbd0712326d97d32bc6a3b66b24d1980a446c238f7e14b96784766cd1","examples/time_zone.rs":"8edb32a946ef2680146ba9ac16c233dd94391ac9f98464e9fb6f87d3954b72a9","src/lib.rs":"0004133d6c3805bf449e7183d2931e9640167511bea6cd12b400805073c4305d"},"package":"819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"} \ No newline at end of file diff --git a/vendor/android_system_properties/CONTRIBUTING.md b/vendor/android_system_properties/CONTRIBUTING.md deleted file mode 100644 index 62436f59..00000000 --- a/vendor/android_system_properties/CONTRIBUTING.md +++ /dev/null @@ -1,40 +0,0 @@ -# Contributing - -Contributions are very much welcome. Here are the guidelines if you are thinking of helping us: - -## Contributions - -Contributions should be made in the form of GitHub pull requests. -Each pull request will be reviewed by a core contributor (someone with -permission to land patches) and either landed in the main tree or -given feedback for changes that would be required. - -Should you wish to work on an issue, please claim it first by commenting on -the GitHub issue that you want to work on it. This is to prevent duplicated -efforts from contributors on the same issue. - -## Pull Request Checklist - -- Branch from the master branch and, if needed, rebase to the current master - branch before submitting your pull request. If it doesn't merge cleanly with - master you may be asked to rebase your changes. - -- Commits should be as small as possible, while ensuring that each commit is - correct independently (i.e., each commit should compile and pass tests). - -- If your patch is not getting reviewed or you need a specific person to review - it, you can @-reply a reviewer asking for a review in the pull request or a - comment. - -- Whenever applicable, add tests relevant to the fixed bug or new feature. - -For specific git instructions, see [GitHub workflow 101](https://github.com/servo/servo/wiki/Github-workflow). - -## Conduct - -We follow the [Rust Code of Conduct](http://www.rust-lang.org/conduct.html). -For escalation or moderation issues, please contact Nical (nical@fastmail.com) instead of the Rust moderation team. - -## License - -Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed dual MIT/Apache 2, without any additional terms or conditions. diff --git a/vendor/android_system_properties/Cargo.lock b/vendor/android_system_properties/Cargo.lock deleted file mode 100644 index 9ee6e3d2..00000000 --- a/vendor/android_system_properties/Cargo.lock +++ /dev/null @@ -1,16 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "android_system_properties" -version = "0.1.5" -dependencies = [ - "libc", -] - -[[package]] -name = "libc" -version = "0.2.126" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" diff --git a/vendor/android_system_properties/Cargo.toml b/vendor/android_system_properties/Cargo.toml deleted file mode 100644 index 79e4ea0d..00000000 --- a/vendor/android_system_properties/Cargo.toml +++ /dev/null @@ -1,36 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -edition = "2018" -name = "android_system_properties" -version = "0.1.5" -authors = ["Nicolas Silva "] -description = "Minimal Android system properties wrapper" -homepage = "https://github.com/nical/android_system_properties" -documentation = "https://docs.rs/android_system_properties" -readme = "README.md" -keywords = ["android"] -license = "MIT/Apache-2.0" -repository = "https://github.com/nical/android_system_properties" - -[package.metadata.docs.rs] -targets = [ - "arm-linux-androideabi", - "armv7-linux-androideabi", - "aarch64-linux-android", - "i686-linux-android", - "x86_64-linux-android", - "x86_64-unknown-linux-gnu", -] - -[dependencies.libc] -version = "0.2.126" diff --git a/vendor/android_system_properties/LICENSE-APACHE b/vendor/android_system_properties/LICENSE-APACHE deleted file mode 100644 index 47f4fd0e..00000000 --- a/vendor/android_system_properties/LICENSE-APACHE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2016 Nicolas Silva - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/vendor/android_system_properties/LICENSE-MIT b/vendor/android_system_properties/LICENSE-MIT deleted file mode 100644 index e6d4b179..00000000 --- a/vendor/android_system_properties/LICENSE-MIT +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Nicolas Silva - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/android_system_properties/README.md b/vendor/android_system_properties/README.md deleted file mode 100644 index 46f6500b..00000000 --- a/vendor/android_system_properties/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# android_system_properties - -A thin rust wrapper for Android system properties. - -This crate is similar to the `android-properties` crate with the exception that -the necessary Android libc symbols are loaded dynamically instead of linked -statically. In practice this means that the same binary will work with old and -new versions of Android, even though the API for reading system properties changed -around Android L. - -## Example - -```rust -use android_system_properties::AndroidSystemProperties; - -let properties = AndroidSystemProperties::new(); - -if let Some(value) = properties.get("persist.sys.timezone") { - println!("{}", value); -} -``` - -## Listing and setting properties - -For the sake of simplicity this crate currently only contains what's needed by wgpu. -The implementations for listing and setting properties can be added back if anyone needs -them (let me know by filing an issue). - -## License - -Licensed under either of - - * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) - -at your option. diff --git a/vendor/android_system_properties/examples/time_zone.rs b/vendor/android_system_properties/examples/time_zone.rs deleted file mode 100644 index f3a6a3c7..00000000 --- a/vendor/android_system_properties/examples/time_zone.rs +++ /dev/null @@ -1,9 +0,0 @@ -/// Prints the current time zone, e.g. "Europe/Paris". - -use android_system_properties::AndroidSystemProperties; - -fn main() { - let android_system_properties = AndroidSystemProperties::new(); - let tz = android_system_properties.get("persist.sys.timezone"); - println!("Your time zone is: {}", tz.as_deref().unwrap_or("")); -} diff --git a/vendor/android_system_properties/src/lib.rs b/vendor/android_system_properties/src/lib.rs deleted file mode 100644 index 9cd9d491..00000000 --- a/vendor/android_system_properties/src/lib.rs +++ /dev/null @@ -1,221 +0,0 @@ -//! A thin rust wrapper for Android system properties. -//! -//! This crate is similar to the `android-properties` crate with the exception that -//! the necessary Android libc symbols are loaded dynamically instead of linked -//! statically. In practice this means that the same binary will work with old and -//! new versions of Android, even though the API for reading system properties changed -//! around Android L. -//! -//! ## Example -//! -//! ```rust -//! use android_system_properties::AndroidSystemProperties; -//! -//! let properties = AndroidSystemProperties::new(); -//! -//! if let Some(value) = properties.get("persist.sys.timezone") { -//! println!("{}", value); -//! } -//! ``` -//! -//! ## Listing and setting properties -//! -//! For the sake of simplicity this crate currently only contains what's needed by wgpu. -//! The implementations for listing and setting properties can be added back if anyone needs -//! them (let me know by filing an issue). -//! -//! ## License -//! -//! Licensed under either of -//! -//! * Apache License, Version 2.0 ([LICENSE-APACHE] or ) -//! * MIT license ([LICENSE-MIT] or ) -//! -//! at your option. -//! -//! [LICENSE-APACHE]: https://github.com/nical/android_system_properties/blob/804681c5c1c93d4fab29c1a2f47b7d808dc70fd3/LICENSE-APACHE -//! [LICENSE-MIT]: https://github.com/nical/android_system_properties/blob/804681c5c1c93d4fab29c1a2f47b7d808dc70fd3/LICENSE-MIT - -use std::{ - ffi::{CStr, CString}, - os::raw::{c_char, c_int, c_void}, -}; - -#[cfg(target_os = "android")] -use std::mem; - -unsafe fn property_callback(payload: *mut String, _name: *const c_char, value: *const c_char, _serial: u32) { - let cvalue = CStr::from_ptr(value); - (*payload) = cvalue.to_str().unwrap().to_string(); -} - -type Callback = unsafe fn(*mut String, *const c_char, *const c_char, u32); - -type SystemPropertyGetFn = unsafe extern "C" fn(*const c_char, *mut c_char) -> c_int; -type SystemPropertyFindFn = unsafe extern "C" fn(*const c_char) -> *const c_void; -type SystemPropertyReadCallbackFn = unsafe extern "C" fn(*const c_void, Callback, *mut String) -> *const c_void; - -#[derive(Debug)] -/// An object that can retrieve android system properties. -/// -/// ## Example -/// -/// ``` -/// use android_system_properties::AndroidSystemProperties; -/// -/// let properties = AndroidSystemProperties::new(); -/// -/// if let Some(value) = properties.get("persist.sys.timezone") { -/// println!("{}", value); -/// } -/// ``` -pub struct AndroidSystemProperties { - libc_so: *mut c_void, - get_fn: Option, - find_fn: Option, - read_callback_fn: Option, -} - -unsafe impl Send for AndroidSystemProperties {} -unsafe impl Sync for AndroidSystemProperties {} - -impl AndroidSystemProperties { - #[cfg(not(target_os = "android"))] - /// Create an entry point for accessing Android properties. - pub fn new() -> Self { - AndroidSystemProperties { - libc_so: std::ptr::null_mut(), - find_fn: None, - read_callback_fn: None, - get_fn: None, - } - } - - #[cfg(target_os = "android")] - /// Create an entry point for accessing Android properties. - pub fn new() -> Self { - let libc_so = unsafe { libc::dlopen(b"libc.so\0".as_ptr().cast(), libc::RTLD_NOLOAD) }; - - let mut properties = AndroidSystemProperties { - libc_so, - find_fn: None, - read_callback_fn: None, - get_fn: None, - }; - - if libc_so.is_null() { - return properties; - } - - - unsafe fn load_fn(libc_so: *mut c_void, name: &[u8]) -> Option<*const c_void> { - let fn_ptr = libc::dlsym(libc_so, name.as_ptr().cast()); - - if fn_ptr.is_null() { - return None; - } - - Some(fn_ptr) - } - - unsafe { - properties.read_callback_fn = load_fn(libc_so, b"__system_property_read_callback\0") - .map(|raw| mem::transmute::<*const c_void, SystemPropertyReadCallbackFn>(raw)); - - properties.find_fn = load_fn(libc_so, b"__system_property_find\0") - .map(|raw| mem::transmute::<*const c_void, SystemPropertyFindFn>(raw)); - - // Fallback for old versions of Android. - if properties.read_callback_fn.is_none() || properties.find_fn.is_none() { - properties.get_fn = load_fn(libc_so, b"__system_property_get\0") - .map(|raw| mem::transmute::<*const c_void, SystemPropertyGetFn>(raw)); - } - } - - properties - } - - /// Retrieve a system property. - /// - /// Returns None if the operation fails. - /// - /// # Example - /// - /// ``` - /// # use android_system_properties::AndroidSystemProperties; - /// let properties = AndroidSystemProperties::new(); - /// - /// if let Some(value) = properties.get("persist.sys.timezone") { - /// println!("{}", value); - /// } - /// ``` - pub fn get(&self, name: &str) -> Option { - let cname = CString::new(name).ok()?; - self.get_from_cstr(&cname) - } - - /// Retrieve a system property using a [`CStr`] key. - /// - /// Returns None if the operation fails. - /// - /// # Example - /// - /// ``` - /// # use android_system_properties::AndroidSystemProperties; - /// # use std::ffi::CStr; - /// let properties = AndroidSystemProperties::new(); - /// - /// let key = unsafe { CStr::from_bytes_with_nul_unchecked(b"persist.sys.timezone\0") }; - /// if let Some(value) = properties.get_from_cstr(key) { - /// println!("{}", value); - /// } - /// ``` - pub fn get_from_cstr(&self, cname: &std::ffi::CStr) -> Option { - // If available, use the recommended approach to accessing properties (Android L and onward). - if let (Some(find_fn), Some(read_callback_fn)) = (self.find_fn, self.read_callback_fn) { - let info = unsafe { (find_fn)(cname.as_ptr()) }; - - if info.is_null() { - return None; - } - - let mut result = String::new(); - - unsafe { - (read_callback_fn)(info, property_callback, &mut result); - } - - return Some(result); - } - - // Fall back to the older approach. - if let Some(get_fn) = self.get_fn { - // The constant is PROP_VALUE_MAX in Android's libc/include/sys/system_properties.h - const PROPERTY_VALUE_MAX: usize = 92; - let mut buffer: Vec = Vec::with_capacity(PROPERTY_VALUE_MAX); - let raw = buffer.as_mut_ptr() as *mut c_char; - - let len = unsafe { (get_fn)(cname.as_ptr(), raw) }; - - if len > 0 { - assert!(len as usize <= buffer.capacity()); - unsafe { buffer.set_len(len as usize); } - String::from_utf8(buffer).ok() - } else { - None - } - } else { - None - } - } -} - -impl Drop for AndroidSystemProperties { - fn drop(&mut self) { - if !self.libc_so.is_null() { - unsafe { - libc::dlclose(self.libc_so); - } - } - } -} diff --git a/vendor/arrayvec/.cargo-checksum.json b/vendor/arrayvec/.cargo-checksum.json deleted file mode 100644 index f69428e4..00000000 --- a/vendor/arrayvec/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"CHANGELOG.md":"c9e49774ee89a3b7b533362d82060a14f2777ccefbe03b956f6f08057b6c3600","Cargo.toml":"c736151a4747b2c041404d730e17dec631393c5feea287edc8a3e482f83a8927","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"0245ee104228a100ce5fceecf43e25faae450494d9173f43fd94c27d69fdac13","README.md":"f42eb73acbc7729825a836a532d1c8c6b71e006e0d87e549ea7a483da7472425","benches/arraystring.rs":"f12b890977117ebde4ca42bcd6b91f2a6a087f2b235aaca6d15e30d125ae9f67","benches/extend.rs":"c3d69cc488ec5341b019cfed545ebbfea252f98718037b413f6a349da9489d1b","ci/miri.sh":"59172afe080a3431f4e7dbd66d2040afa27ab9c0359532bd68f8f423261738de","custom.css":"e6f2cd299392337b4e2959c52f422e5b7be11920ea98d10db44d10ddef5ed47c","src/array.rs":"5fa75554ebdf595c918fe923a84678989fc420d800310ee19a21597f7d683b66","src/array_string.rs":"48c175371aed3372158a9331e939cffc2a11a09120253fa9d0521e5cbca7cfca","src/char.rs":"3fe9e9cc68fc7cedb238d53924b552b876a60c4fea85935d2f5d1ca0d41ffa3e","src/errors.rs":"ca44c0987f59ae57623088d80013e75129101caea93c278c8ebb0df898bc6b1b","src/lib.rs":"08270486d9e9d34e02e0edf227baf5e87b36d38d264da209d3b7f8962dce1b54","src/maybe_uninit.rs":"c81cf16f976bfaf7c1fe371aa2fba84872874fb0e43c96f63bef01cceb5e1d64","tests/serde.rs":"18c165cf6024f04a25b19aa139657d7c59f72d1541c9b24b44f9eaea01f507db","tests/tests.rs":"b9a3db8a0b957695d9ecc539a7ea2ded1eea3c6f76de8b5624c2b4eae95f1fdd"},"package":"23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"} \ No newline at end of file diff --git a/vendor/arrayvec/CHANGELOG.md b/vendor/arrayvec/CHANGELOG.md deleted file mode 100644 index 9ee813cf..00000000 --- a/vendor/arrayvec/CHANGELOG.md +++ /dev/null @@ -1,234 +0,0 @@ -Recent Changes (arrayvec) -------------------------- - -- 0.5.2 - - - Add `is_empty` methods for ArrayVec and ArrayString by @nicbn - - Implement `TryFrom` for ArrayVec by @paulkernfeld - - Add `unstable-const-fn` to make `new` methods const by @m-ou-se - - Run miri in CI and a few related fixes by @RalfJung - - Fix outdated comment by @Phlosioneer - - Move changelog to a separate file by @Luro02 - - Remove deprecated `Error::description` by @AnderEnder - - Use pointer method `add` by @hbina - -- 0.5.1 - - - Add `as_ptr`, `as_mut_ptr` accessors directly on the `ArrayVec` by @tbu- - (matches the same addition to `Vec` which happened in Rust 1.37). - - Add method `ArrayString::len` (now available directly, not just through deref to str). - - Use raw pointers instead of `&mut [u8]` for encoding chars into `ArrayString` - (uninit best practice fix). - - Use raw pointers instead of `get_unchecked_mut` where the target may be - uninitialized everywhere relevant in the ArrayVec implementation - (uninit best practice fix). - - Changed inline hints on many methods, mainly removing inline hints - - `ArrayVec::dispose` is now deprecated (it has no purpose anymore) - -- 0.4.12 - - - Use raw pointers instead of `get_unchecked_mut` where the target may be - uninitialized everywhere relevant in the ArrayVec implementation. - -- 0.5.0 - - - Use `MaybeUninit` (now unconditionally) in the implementation of - `ArrayVec` - - Use `MaybeUninit` (now unconditionally) in the implementation of - `ArrayString` - - The crate feature for serde serialization is now named `serde`. - - Updated the `Array` trait interface, and it is now easier to use for - users outside the crate. - - Add `FromStr` impl for `ArrayString` by @despawnerer - - Add method `try_extend_from_slice` to `ArrayVec`, which is always - effecient by @Thomasdezeeuw. - - Add method `remaining_capacity` by @Thomasdezeeuw - - Improve performance of the `extend` method. - - The index type of zero capacity vectors is now itself zero size, by - @clarfon - - Use `drop_in_place` for truncate and clear methods. This affects drop order - and resume from panic during drop. - - Use Rust 2018 edition for the implementation - - Require Rust 1.36 or later, for the unconditional `MaybeUninit` - improvements. - -- 0.4.11 - - - In Rust 1.36 or later, use newly stable `MaybeUninit`. This extends the - soundness work introduced in 0.4.9, we are finally able to use this in - stable. We use feature detection (build script) to enable this at build - time. - -- 0.4.10 - - - Use `repr(C)` in the `union` version that was introduced in 0.4.9, to - allay some soundness concerns. - -- 0.4.9 - - - Use `union` in the implementation on when this is detected to be supported - (nightly only for now). This is a better solution for treating uninitialized - regions correctly, and we'll use it in stable Rust as soon as we are able. - When this is enabled, the `ArrayVec` has no space overhead in its memory - layout, although the size of the vec should not be relied upon. (See [#114](https://github.com/bluss/arrayvec/pull/114)) - - `ArrayString` updated to not use uninitialized memory, it instead zeros its - backing array. This will be refined in the next version, since we - need to make changes to the user visible API. - - The `use_union` feature now does nothing (like its documentation foretold). - - -- 0.4.8 - - - Implement Clone and Debug for `IntoIter` by @clarcharr - - Add more array sizes under crate features. These cover all in the range - up to 128 and 129 to 255 respectively (we have a few of those by default): - - - `array-size-33-128` - - `array-size-129-255` - -- 0.4.7 - - - Fix future compat warning about raw pointer casts - - Use `drop_in_place` when dropping the arrayvec by-value iterator - - Decrease mininum Rust version (see docs) by @jeehoonkang - -- 0.3.25 - - - Fix future compat warning about raw pointer casts - -- 0.4.6 - - - Fix compilation on 16-bit targets. This means, the 65536 array size is not - included on these targets. - -- 0.3.24 - - - Fix compilation on 16-bit targets. This means, the 65536 array size is not - included on these targets. - - Fix license files so that they are both included (was fixed in 0.4 before) - -- 0.4.5 - - - Add methods to `ArrayString` by @DenialAdams: - - - `.pop() -> Option` - - `.truncate(new_len)` - - `.remove(index) -> char` - - - Remove dependency on crate odds - - Document debug assertions in unsafe methods better - -- 0.4.4 - - - Add method `ArrayVec::truncate()` by @niklasf - -- 0.4.3 - - - Improve performance for `ArrayVec::extend` with a lower level - implementation (#74) - - Small cleanup in dependencies (use no std for crates where we don't need more) - -- 0.4.2 - - - Add constructor method `new` to `CapacityError`. - -- 0.4.1 - - - Add `Default` impl to `ArrayString` by @tbu- - -- 0.4.0 - - - Reformed signatures and error handling by @bluss and @tbu-: - - - `ArrayVec`'s `push, insert, remove, swap_remove` now match `Vec`'s - corresponding signature and panic on capacity errors where applicable. - - Add fallible methods `try_push, insert` and checked methods - `pop_at, swap_pop`. - - Similar changes to `ArrayString`'s push methods. - - - Use a local version of the `RangeArgument` trait - - Add array sizes 50, 150, 200 by @daboross - - Support serde 1.0 by @daboross - - New method `.push_unchecked()` by @niklasf - - `ArrayString` implements `PartialOrd, Ord` by @tbu- - - Require Rust 1.14 - - crate feature `use_generic_array` was dropped. - -- 0.3.23 - - - Implement `PartialOrd, Ord` as well as `PartialOrd` for - `ArrayString`. - -- 0.3.22 - - - Implement `Array` for the 65536 size - -- 0.3.21 - - - Use `encode_utf8` from crate odds - - Add constructor `ArrayString::from_byte_string` - -- 0.3.20 - - - Simplify and speed up `ArrayString`’s `.push(char)`- - -- 0.3.19 - - - Add new crate feature `use_generic_array` which allows using their - `GenericArray` just like a regular fixed size array for the storage - of an `ArrayVec`. - -- 0.3.18 - - - Fix bounds check in `ArrayVec::insert`! - It would be buggy if `self.len() < index < self.capacity()`. Take note of - the push out behavior specified in the docs. - -- 0.3.17 - - - Added crate feature `use_union` which forwards to the nodrop crate feature - - Added methods `.is_full()` to `ArrayVec` and `ArrayString`. - -- 0.3.16 - - - Added method `.retain()` to `ArrayVec`. - - Added methods `.as_slice(), .as_mut_slice()` to `ArrayVec` and `.as_str()` - to `ArrayString`. - -- 0.3.15 - - - Add feature std, which you can opt out of to use `no_std` (requires Rust 1.6 - to opt out). - - Implement `Clone::clone_from` for ArrayVec and ArrayString - -- 0.3.14 - - - Add `ArrayString::from(&str)` - -- 0.3.13 - - - Added `DerefMut` impl for `ArrayString`. - - Added method `.simplify()` to drop the element for `CapacityError`. - - Added method `.dispose()` to `ArrayVec` - -- 0.3.12 - - - Added ArrayString, a fixed capacity analogy of String - -- 0.3.11 - - - Added trait impls Default, PartialOrd, Ord, Write for ArrayVec - -- 0.3.10 - - - Go back to using external NoDrop, fixing a panic safety bug (issue #3) - -- 0.3.8 - - - Inline the non-dropping logic to remove one drop flag in the - ArrayVec representation. - -- 0.3.7 - - - Added method .into_inner() - - Added unsafe method .set_len() diff --git a/vendor/arrayvec/Cargo.toml b/vendor/arrayvec/Cargo.toml deleted file mode 100644 index 4fb37c1a..00000000 --- a/vendor/arrayvec/Cargo.toml +++ /dev/null @@ -1,63 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies -# -# If you believe there's an error in this file please file an -# issue against the rust-lang/cargo repository. If you're -# editing this file be aware that the upstream Cargo.toml -# will likely look very different (and much more reasonable) - -[package] -edition = "2018" -name = "arrayvec" -version = "0.5.2" -authors = ["bluss"] -description = "A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString." -documentation = "https://docs.rs/arrayvec/" -keywords = ["stack", "vector", "array", "data-structure", "no_std"] -categories = ["data-structures", "no-std"] -license = "MIT/Apache-2.0" -repository = "https://github.com/bluss/arrayvec" -[package.metadata.docs.rs] -features = ["serde"] - -[package.metadata.release] -no-dev-version = true -tag-name = "{{version}}" -[profile.bench] -debug = true - -[profile.release] -debug = true - -[[bench]] -name = "extend" -harness = false - -[[bench]] -name = "arraystring" -harness = false -[dependencies.serde] -version = "1.0" -optional = true -default-features = false -[dev-dependencies.bencher] -version = "0.1.4" - -[dev-dependencies.matches] -version = "0.1" - -[dev-dependencies.serde_test] -version = "1.0" - -[build-dependencies] - -[features] -array-sizes-129-255 = [] -array-sizes-33-128 = [] -default = ["std"] -std = [] -unstable-const-fn = [] diff --git a/vendor/arrayvec/LICENSE-APACHE b/vendor/arrayvec/LICENSE-APACHE deleted file mode 100644 index 16fe87b0..00000000 --- a/vendor/arrayvec/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/vendor/arrayvec/LICENSE-MIT b/vendor/arrayvec/LICENSE-MIT deleted file mode 100644 index 2c8f27db..00000000 --- a/vendor/arrayvec/LICENSE-MIT +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) Ulrik Sverdrup "bluss" 2015-2017 - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/vendor/arrayvec/README.md b/vendor/arrayvec/README.md deleted file mode 100644 index bfac3b32..00000000 --- a/vendor/arrayvec/README.md +++ /dev/null @@ -1,24 +0,0 @@ - -arrayvec -======== -[![Crates.io: arrayvec](https://img.shields.io/crates/v/arrayvec.svg)](https://crates.io/crates/arrayvec) -[![Crates.io: nodrop](https://img.shields.io/crates/v/nodrop.svg)](https://crates.io/crates/nodrop) -[![Documentation](https://docs.rs/arrayvec/badge.svg)](https://docs.rs/arrayvec) -[![Build Status](https://travis-ci.org/bluss/arrayvec.svg?branch=master)](https://travis-ci.org/bluss/arrayvec) -[![License: Apache](https://img.shields.io/badge/License-Apache%202.0-red.svg)](LICENSE-APACHE) -OR -[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) - -A vector with fixed capacity. - -Please read the [`API documentation here`](https://docs.rs/arrayvec) - -# License - -Dual-licensed to be compatible with the Rust project. - -Licensed under the Apache License, Version 2.0 -http://www.apache.org/licenses/LICENSE-2.0 or the MIT license -http://opensource.org/licenses/MIT, at your -option. This file may not be copied, modified, or distributed -except according to those terms. diff --git a/vendor/arrayvec/benches/arraystring.rs b/vendor/arrayvec/benches/arraystring.rs deleted file mode 100644 index 9cff5875..00000000 --- a/vendor/arrayvec/benches/arraystring.rs +++ /dev/null @@ -1,90 +0,0 @@ - -extern crate arrayvec; -#[macro_use] extern crate bencher; - -use arrayvec::ArrayString; - -use bencher::Bencher; - -fn try_push_c(b: &mut Bencher) { - let mut v = ArrayString::<[u8; 512]>::new(); - b.iter(|| { - v.clear(); - while v.try_push('c').is_ok() { - } - v.len() - }); - b.bytes = v.capacity() as u64; -} - -fn try_push_alpha(b: &mut Bencher) { - let mut v = ArrayString::<[u8; 512]>::new(); - b.iter(|| { - v.clear(); - while v.try_push('α').is_ok() { - } - v.len() - }); - b.bytes = v.capacity() as u64; -} - -// Yes, pushing a string char-by-char is slow. Use .push_str. -fn try_push_string(b: &mut Bencher) { - let mut v = ArrayString::<[u8; 512]>::new(); - let input = "abcαβγ“”"; - b.iter(|| { - v.clear(); - for ch in input.chars().cycle() { - if !v.try_push(ch).is_ok() { - break; - } - } - v.len() - }); - b.bytes = v.capacity() as u64; -} - -fn push_c(b: &mut Bencher) { - let mut v = ArrayString::<[u8; 512]>::new(); - b.iter(|| { - v.clear(); - while !v.is_full() { - v.push('c'); - } - v.len() - }); - b.bytes = v.capacity() as u64; -} - -fn push_alpha(b: &mut Bencher) { - let mut v = ArrayString::<[u8; 512]>::new(); - b.iter(|| { - v.clear(); - while !v.is_full() { - v.push('α'); - } - v.len() - }); - b.bytes = v.capacity() as u64; -} - -fn push_string(b: &mut Bencher) { - let mut v = ArrayString::<[u8; 512]>::new(); - let input = "abcαβγ“”"; - b.iter(|| { - v.clear(); - for ch in input.chars().cycle() { - if !v.is_full() { - v.push(ch); - } else { - break; - } - } - v.len() - }); - b.bytes = v.capacity() as u64; -} - -benchmark_group!(benches, try_push_c, try_push_alpha, try_push_string, push_c, - push_alpha, push_string); -benchmark_main!(benches); diff --git a/vendor/arrayvec/benches/extend.rs b/vendor/arrayvec/benches/extend.rs deleted file mode 100644 index 05797176..00000000 --- a/vendor/arrayvec/benches/extend.rs +++ /dev/null @@ -1,78 +0,0 @@ - -extern crate arrayvec; -#[macro_use] extern crate bencher; - -use std::io::Write; - -use arrayvec::ArrayVec; - -use bencher::Bencher; -use bencher::black_box; - -fn extend_with_constant(b: &mut Bencher) { - let mut v = ArrayVec::<[u8; 512]>::new(); - let cap = v.capacity(); - b.iter(|| { - v.clear(); - let constant = black_box(1); - v.extend((0..cap).map(move |_| constant)); - v[511] - }); - b.bytes = v.capacity() as u64; -} - -fn extend_with_range(b: &mut Bencher) { - let mut v = ArrayVec::<[u8; 512]>::new(); - let cap = v.capacity(); - b.iter(|| { - v.clear(); - let range = 0..cap; - v.extend(range.map(|x| black_box(x as _))); - v[511] - }); - b.bytes = v.capacity() as u64; -} - -fn extend_with_slice(b: &mut Bencher) { - let mut v = ArrayVec::<[u8; 512]>::new(); - let data = [1; 512]; - b.iter(|| { - v.clear(); - let iter = data.iter().map(|&x| x); - v.extend(iter); - v[511] - }); - b.bytes = v.capacity() as u64; -} - -fn extend_with_write(b: &mut Bencher) { - let mut v = ArrayVec::<[u8; 512]>::new(); - let data = [1; 512]; - b.iter(|| { - v.clear(); - v.write(&data[..]).ok(); - v[511] - }); - b.bytes = v.capacity() as u64; -} - -fn extend_from_slice(b: &mut Bencher) { - let mut v = ArrayVec::<[u8; 512]>::new(); - let data = [1; 512]; - b.iter(|| { - v.clear(); - v.try_extend_from_slice(&data).ok(); - v[511] - }); - b.bytes = v.capacity() as u64; -} - -benchmark_group!(benches, - extend_with_constant, - extend_with_range, - extend_with_slice, - extend_with_write, - extend_from_slice -); - -benchmark_main!(benches); diff --git a/vendor/arrayvec/ci/miri.sh b/vendor/arrayvec/ci/miri.sh deleted file mode 100644 index 6b95c2d9..00000000 --- a/vendor/arrayvec/ci/miri.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env sh - -set -ex - -export CARGO_NET_RETRY=5 -export CARGO_NET_TIMEOUT=10 - -MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri) -echo "Installing latest nightly with Miri: $MIRI_NIGHTLY" -rustup default "$MIRI_NIGHTLY" - -rustup component add miri -cargo miri setup - -cargo miri test diff --git a/vendor/arrayvec/custom.css b/vendor/arrayvec/custom.css deleted file mode 100644 index 8e0b7053..00000000 --- a/vendor/arrayvec/custom.css +++ /dev/null @@ -1,25 +0,0 @@ - -.docblock pre.rust { background: #eeeeff; } -pre.trait, pre.fn, pre.struct, pre.enum, pre.typedef { background: #fcfefc; } - -/* Small “example” label for doc examples */ -.docblock pre.rust::before { - content: "example"; - float: right; - font-style: italic; - font-size: 0.8em; - margin-top: -10px; - margin-right: -5px; -} - - -/* Fixup where display in trait listing */ -pre.trait .where::before { -content: '\a '; -} - -.docblock code { - background-color: inherit; - font-weight: bold; - padding: 0 0.1em; -} diff --git a/vendor/arrayvec/src/array.rs b/vendor/arrayvec/src/array.rs deleted file mode 100644 index 2de5e77c..00000000 --- a/vendor/arrayvec/src/array.rs +++ /dev/null @@ -1,151 +0,0 @@ - -/// Trait for fixed size arrays. -/// -/// This trait is implemented for some specific array sizes, see -/// the implementor list below. At the current state of Rust we can't -/// make this fully general for every array size. -/// -/// The following crate features add more array sizes (and they are not -/// enabled by default due to their impact on compliation speed). -/// -/// - `array-sizes-33-128`: All sizes 33 to 128 are implemented -/// (a few in this range are included by default). -/// - `array-sizes-129-255`: All sizes 129 to 255 are implemented -/// (a few in this range are included by default). -/// -/// ## Safety -/// -/// This trait can *only* be implemented by fixed-size arrays or types with -/// *exactly* the representation of a fixed size array (of the right element -/// type and capacity). -/// -/// Normally this trait is an implementation detail of arrayvec and doesn’t -/// need implementing. -pub unsafe trait Array { - /// The array’s element type - type Item; - /// The smallest type that can index and tell the length of the array. - #[doc(hidden)] - type Index: Index; - /// The array's element capacity - const CAPACITY: usize; - fn as_slice(&self) -> &[Self::Item]; - fn as_mut_slice(&mut self) -> &mut [Self::Item]; -} - -pub trait Index : PartialEq + Copy { - const ZERO: Self; - fn to_usize(self) -> usize; - fn from(_: usize) -> Self; -} - -impl Index for () { - const ZERO: Self = (); - #[inline(always)] - fn to_usize(self) -> usize { 0 } - #[inline(always)] - fn from(_ix: usize) -> Self { () } -} - -impl Index for bool { - const ZERO: Self = false; - #[inline(always)] - fn to_usize(self) -> usize { self as usize } - #[inline(always)] - fn from(ix: usize) -> Self { ix != 0 } -} - -impl Index for u8 { - const ZERO: Self = 0; - #[inline(always)] - fn to_usize(self) -> usize { self as usize } - #[inline(always)] - fn from(ix: usize) -> Self { ix as u8 } -} - -impl Index for u16 { - const ZERO: Self = 0; - #[inline(always)] - fn to_usize(self) -> usize { self as usize } - #[inline(always)] - fn from(ix: usize) -> Self { ix as u16 } -} - -impl Index for u32 { - const ZERO: Self = 0; - #[inline(always)] - fn to_usize(self) -> usize { self as usize } - #[inline(always)] - fn from(ix: usize) -> Self { ix as u32 } -} - -impl Index for usize { - const ZERO: Self = 0; - #[inline(always)] - fn to_usize(self) -> usize { self } - #[inline(always)] - fn from(ix: usize) -> Self { ix } -} - -macro_rules! fix_array_impl { - ($index_type:ty, $len:expr ) => ( - unsafe impl Array for [T; $len] { - type Item = T; - type Index = $index_type; - const CAPACITY: usize = $len; - #[doc(hidden)] - fn as_slice(&self) -> &[Self::Item] { self } - #[doc(hidden)] - fn as_mut_slice(&mut self) -> &mut [Self::Item] { self } - } - ) -} - -macro_rules! fix_array_impl_recursive { - ($index_type:ty, ) => (); - ($index_type:ty, $($len:expr,)*) => ( - $(fix_array_impl!($index_type, $len);)* - ); -} - - -fix_array_impl_recursive!((), 0,); -fix_array_impl_recursive!(bool, 1,); -fix_array_impl_recursive!(u8, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, ); - -#[cfg(not(feature="array-sizes-33-128"))] -fix_array_impl_recursive!(u8, 32, 40, 48, 50, 56, 64, 72, 96, 100, 128, ); - -#[cfg(feature="array-sizes-33-128")] -fix_array_impl_recursive!(u8, -32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, -72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, -92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, -109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, -125, 126, 127, 128, -); - -#[cfg(not(feature="array-sizes-129-255"))] -fix_array_impl_recursive!(u8, 160, 192, 200, 224,); - -#[cfg(feature="array-sizes-129-255")] -fix_array_impl_recursive!(u8, -129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, -141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, -157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, -173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, -189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, -205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, -221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, -237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, -253, 254, 255, -); - -fix_array_impl_recursive!(u16, 256, 384, 512, 768, 1024, 2048, 4096, 8192, 16384, 32768,); -// This array size doesn't exist on 16-bit -#[cfg(any(target_pointer_width="32", target_pointer_width="64"))] -fix_array_impl_recursive!(u32, 1 << 16,); - diff --git a/vendor/arrayvec/src/array_string.rs b/vendor/arrayvec/src/array_string.rs deleted file mode 100644 index 1aae59ea..00000000 --- a/vendor/arrayvec/src/array_string.rs +++ /dev/null @@ -1,582 +0,0 @@ -use std::borrow::Borrow; -use std::cmp; -use std::fmt; -use std::hash::{Hash, Hasher}; -use std::ptr; -use std::ops::{Deref, DerefMut}; -use std::str; -use std::str::FromStr; -use std::str::Utf8Error; -use std::slice; - -use crate::array::Array; -use crate::array::Index; -use crate::CapacityError; -use crate::char::encode_utf8; - -#[cfg(feature="serde")] -use serde::{Serialize, Deserialize, Serializer, Deserializer}; - -use super::MaybeUninit as MaybeUninitCopy; - -/// A string with a fixed capacity. -/// -/// The `ArrayString` is a string backed by a fixed size array. It keeps track -/// of its length. -/// -/// The string is a contiguous value that you can store directly on the stack -/// if needed. -#[derive(Copy)] -pub struct ArrayString - where A: Array + Copy -{ - xs: MaybeUninitCopy, - len: A::Index, -} - -impl Default for ArrayString - where A: Array + Copy -{ - /// Return an empty `ArrayString` - fn default() -> ArrayString { - ArrayString::new() - } -} - -impl ArrayString - where A: Array + Copy -{ - /// Create a new empty `ArrayString`. - /// - /// Capacity is inferred from the type parameter. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 16]>::new(); - /// string.push_str("foo"); - /// assert_eq!(&string[..], "foo"); - /// assert_eq!(string.capacity(), 16); - /// ``` - #[cfg(not(feature="unstable-const-fn"))] - pub fn new() -> ArrayString { - unsafe { - ArrayString { - xs: MaybeUninitCopy::uninitialized(), - len: Index::ZERO, - } - } - } - - #[cfg(feature="unstable-const-fn")] - pub const fn new() -> ArrayString { - unsafe { - ArrayString { - xs: MaybeUninitCopy::uninitialized(), - len: Index::ZERO, - } - } - } - - /// Return the length of the string. - #[inline] - pub fn len(&self) -> usize { self.len.to_usize() } - - /// Returns whether the string is empty. - #[inline] - pub fn is_empty(&self) -> bool { self.len() == 0 } - - /// Create a new `ArrayString` from a `str`. - /// - /// Capacity is inferred from the type parameter. - /// - /// **Errors** if the backing array is not large enough to fit the string. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 3]>::from("foo").unwrap(); - /// assert_eq!(&string[..], "foo"); - /// assert_eq!(string.len(), 3); - /// assert_eq!(string.capacity(), 3); - /// ``` - pub fn from(s: &str) -> Result> { - let mut arraystr = Self::new(); - arraystr.try_push_str(s)?; - Ok(arraystr) - } - - /// Create a new `ArrayString` from a byte string literal. - /// - /// **Errors** if the byte string literal is not valid UTF-8. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let string = ArrayString::from_byte_string(b"hello world").unwrap(); - /// ``` - pub fn from_byte_string(b: &A) -> Result { - let len = str::from_utf8(b.as_slice())?.len(); - debug_assert_eq!(len, A::CAPACITY); - Ok(ArrayString { - xs: MaybeUninitCopy::from(*b), - len: Index::from(A::CAPACITY), - }) - } - - /// Return the capacity of the `ArrayString`. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let string = ArrayString::<[_; 3]>::new(); - /// assert_eq!(string.capacity(), 3); - /// ``` - #[inline(always)] - pub fn capacity(&self) -> usize { A::CAPACITY } - - /// Return if the `ArrayString` is completely filled. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 1]>::new(); - /// assert!(!string.is_full()); - /// string.push_str("A"); - /// assert!(string.is_full()); - /// ``` - pub fn is_full(&self) -> bool { self.len() == self.capacity() } - - /// Adds the given char to the end of the string. - /// - /// ***Panics*** if the backing array is not large enough to fit the additional char. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 2]>::new(); - /// - /// string.push('a'); - /// string.push('b'); - /// - /// assert_eq!(&string[..], "ab"); - /// ``` - pub fn push(&mut self, c: char) { - self.try_push(c).unwrap(); - } - - /// Adds the given char to the end of the string. - /// - /// Returns `Ok` if the push succeeds. - /// - /// **Errors** if the backing array is not large enough to fit the additional char. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 2]>::new(); - /// - /// string.try_push('a').unwrap(); - /// string.try_push('b').unwrap(); - /// let overflow = string.try_push('c'); - /// - /// assert_eq!(&string[..], "ab"); - /// assert_eq!(overflow.unwrap_err().element(), 'c'); - /// ``` - pub fn try_push(&mut self, c: char) -> Result<(), CapacityError> { - let len = self.len(); - unsafe { - let ptr = self.xs.ptr_mut().add(len); - let remaining_cap = self.capacity() - len; - match encode_utf8(c, ptr, remaining_cap) { - Ok(n) => { - self.set_len(len + n); - Ok(()) - } - Err(_) => Err(CapacityError::new(c)), - } - } - } - - /// Adds the given string slice to the end of the string. - /// - /// ***Panics*** if the backing array is not large enough to fit the string. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 2]>::new(); - /// - /// string.push_str("a"); - /// string.push_str("d"); - /// - /// assert_eq!(&string[..], "ad"); - /// ``` - pub fn push_str(&mut self, s: &str) { - self.try_push_str(s).unwrap() - } - - /// Adds the given string slice to the end of the string. - /// - /// Returns `Ok` if the push succeeds. - /// - /// **Errors** if the backing array is not large enough to fit the string. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 2]>::new(); - /// - /// string.try_push_str("a").unwrap(); - /// let overflow1 = string.try_push_str("bc"); - /// string.try_push_str("d").unwrap(); - /// let overflow2 = string.try_push_str("ef"); - /// - /// assert_eq!(&string[..], "ad"); - /// assert_eq!(overflow1.unwrap_err().element(), "bc"); - /// assert_eq!(overflow2.unwrap_err().element(), "ef"); - /// ``` - pub fn try_push_str<'a>(&mut self, s: &'a str) -> Result<(), CapacityError<&'a str>> { - if s.len() > self.capacity() - self.len() { - return Err(CapacityError::new(s)); - } - unsafe { - let dst = self.xs.ptr_mut().add(self.len()); - let src = s.as_ptr(); - ptr::copy_nonoverlapping(src, dst, s.len()); - let newl = self.len() + s.len(); - self.set_len(newl); - } - Ok(()) - } - - /// Removes the last character from the string and returns it. - /// - /// Returns `None` if this `ArrayString` is empty. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut s = ArrayString::<[_; 3]>::from("foo").unwrap(); - /// - /// assert_eq!(s.pop(), Some('o')); - /// assert_eq!(s.pop(), Some('o')); - /// assert_eq!(s.pop(), Some('f')); - /// - /// assert_eq!(s.pop(), None); - /// ``` - pub fn pop(&mut self) -> Option { - let ch = match self.chars().rev().next() { - Some(ch) => ch, - None => return None, - }; - let new_len = self.len() - ch.len_utf8(); - unsafe { - self.set_len(new_len); - } - Some(ch) - } - - /// Shortens this `ArrayString` to the specified length. - /// - /// If `new_len` is greater than the string’s current length, this has no - /// effect. - /// - /// ***Panics*** if `new_len` does not lie on a `char` boundary. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut string = ArrayString::<[_; 6]>::from("foobar").unwrap(); - /// string.truncate(3); - /// assert_eq!(&string[..], "foo"); - /// string.truncate(4); - /// assert_eq!(&string[..], "foo"); - /// ``` - pub fn truncate(&mut self, new_len: usize) { - if new_len <= self.len() { - assert!(self.is_char_boundary(new_len)); - unsafe { - // In libstd truncate is called on the underlying vector, - // which in turns drops each element. - // As we know we don't have to worry about Drop, - // we can just set the length (a la clear.) - self.set_len(new_len); - } - } - } - - /// Removes a `char` from this `ArrayString` at a byte position and returns it. - /// - /// This is an `O(n)` operation, as it requires copying every element in the - /// array. - /// - /// ***Panics*** if `idx` is larger than or equal to the `ArrayString`’s length, - /// or if it does not lie on a `char` boundary. - /// - /// ``` - /// use arrayvec::ArrayString; - /// - /// let mut s = ArrayString::<[_; 3]>::from("foo").unwrap(); - /// - /// assert_eq!(s.remove(0), 'f'); - /// assert_eq!(s.remove(1), 'o'); - /// assert_eq!(s.remove(0), 'o'); - /// ``` - pub fn remove(&mut self, idx: usize) -> char { - let ch = match self[idx..].chars().next() { - Some(ch) => ch, - None => panic!("cannot remove a char from the end of a string"), - }; - - let next = idx + ch.len_utf8(); - let len = self.len(); - unsafe { - ptr::copy(self.xs.ptr().add(next), - self.xs.ptr_mut().add(idx), - len - next); - self.set_len(len - (next - idx)); - } - ch - } - - /// Make the string empty. - pub fn clear(&mut self) { - unsafe { - self.set_len(0); - } - } - - /// Set the strings’s length. - /// - /// This function is `unsafe` because it changes the notion of the - /// number of “valid” bytes in the string. Use with care. - /// - /// This method uses *debug assertions* to check the validity of `length` - /// and may use other debug assertions. - pub unsafe fn set_len(&mut self, length: usize) { - debug_assert!(length <= self.capacity()); - self.len = Index::from(length); - } - - /// Return a string slice of the whole `ArrayString`. - pub fn as_str(&self) -> &str { - self - } -} - -impl Deref for ArrayString - where A: Array + Copy -{ - type Target = str; - #[inline] - fn deref(&self) -> &str { - unsafe { - let sl = slice::from_raw_parts(self.xs.ptr(), self.len.to_usize()); - str::from_utf8_unchecked(sl) - } - } -} - -impl DerefMut for ArrayString - where A: Array + Copy -{ - #[inline] - fn deref_mut(&mut self) -> &mut str { - unsafe { - let sl = slice::from_raw_parts_mut(self.xs.ptr_mut(), self.len.to_usize()); - str::from_utf8_unchecked_mut(sl) - } - } -} - -impl PartialEq for ArrayString - where A: Array + Copy -{ - fn eq(&self, rhs: &Self) -> bool { - **self == **rhs - } -} - -impl PartialEq for ArrayString - where A: Array + Copy -{ - fn eq(&self, rhs: &str) -> bool { - &**self == rhs - } -} - -impl PartialEq> for str - where A: Array + Copy -{ - fn eq(&self, rhs: &ArrayString) -> bool { - self == &**rhs - } -} - -impl Eq for ArrayString - where A: Array + Copy -{ } - -impl Hash for ArrayString - where A: Array + Copy -{ - fn hash(&self, h: &mut H) { - (**self).hash(h) - } -} - -impl Borrow for ArrayString - where A: Array + Copy -{ - fn borrow(&self) -> &str { self } -} - -impl AsRef for ArrayString - where A: Array + Copy -{ - fn as_ref(&self) -> &str { self } -} - -impl fmt::Debug for ArrayString - where A: Array + Copy -{ - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { (**self).fmt(f) } -} - -impl fmt::Display for ArrayString - where A: Array + Copy -{ - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { (**self).fmt(f) } -} - -/// `Write` appends written data to the end of the string. -impl fmt::Write for ArrayString - where A: Array + Copy -{ - fn write_char(&mut self, c: char) -> fmt::Result { - self.try_push(c).map_err(|_| fmt::Error) - } - - fn write_str(&mut self, s: &str) -> fmt::Result { - self.try_push_str(s).map_err(|_| fmt::Error) - } -} - -impl Clone for ArrayString - where A: Array + Copy -{ - fn clone(&self) -> ArrayString { - *self - } - fn clone_from(&mut self, rhs: &Self) { - // guaranteed to fit due to types matching. - self.clear(); - self.try_push_str(rhs).ok(); - } -} - -impl PartialOrd for ArrayString - where A: Array + Copy -{ - fn partial_cmp(&self, rhs: &Self) -> Option { - (**self).partial_cmp(&**rhs) - } - fn lt(&self, rhs: &Self) -> bool { **self < **rhs } - fn le(&self, rhs: &Self) -> bool { **self <= **rhs } - fn gt(&self, rhs: &Self) -> bool { **self > **rhs } - fn ge(&self, rhs: &Self) -> bool { **self >= **rhs } -} - -impl PartialOrd for ArrayString - where A: Array + Copy -{ - fn partial_cmp(&self, rhs: &str) -> Option { - (**self).partial_cmp(rhs) - } - fn lt(&self, rhs: &str) -> bool { &**self < rhs } - fn le(&self, rhs: &str) -> bool { &**self <= rhs } - fn gt(&self, rhs: &str) -> bool { &**self > rhs } - fn ge(&self, rhs: &str) -> bool { &**self >= rhs } -} - -impl PartialOrd> for str - where A: Array + Copy -{ - fn partial_cmp(&self, rhs: &ArrayString) -> Option { - self.partial_cmp(&**rhs) - } - fn lt(&self, rhs: &ArrayString) -> bool { self < &**rhs } - fn le(&self, rhs: &ArrayString) -> bool { self <= &**rhs } - fn gt(&self, rhs: &ArrayString) -> bool { self > &**rhs } - fn ge(&self, rhs: &ArrayString) -> bool { self >= &**rhs } -} - -impl Ord for ArrayString - where A: Array + Copy -{ - fn cmp(&self, rhs: &Self) -> cmp::Ordering { - (**self).cmp(&**rhs) - } -} - -impl FromStr for ArrayString - where A: Array + Copy -{ - type Err = CapacityError; - - fn from_str(s: &str) -> Result { - Self::from(s).map_err(CapacityError::simplify) - } -} - -#[cfg(feature="serde")] -/// Requires crate feature `"serde"` -impl Serialize for ArrayString - where A: Array + Copy -{ - fn serialize(&self, serializer: S) -> Result - where S: Serializer - { - serializer.serialize_str(&*self) - } -} - -#[cfg(feature="serde")] -/// Requires crate feature `"serde"` -impl<'de, A> Deserialize<'de> for ArrayString - where A: Array + Copy -{ - fn deserialize(deserializer: D) -> Result - where D: Deserializer<'de> - { - use serde::de::{self, Visitor}; - use std::marker::PhantomData; - - struct ArrayStringVisitor>(PhantomData); - - impl<'de, A: Copy + Array> Visitor<'de> for ArrayStringVisitor { - type Value = ArrayString; - - fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - write!(formatter, "a string no more than {} bytes long", A::CAPACITY) - } - - fn visit_str(self, v: &str) -> Result - where E: de::Error, - { - ArrayString::from(v).map_err(|_| E::invalid_length(v.len(), &self)) - } - - fn visit_bytes(self, v: &[u8]) -> Result - where E: de::Error, - { - let s = str::from_utf8(v).map_err(|_| E::invalid_value(de::Unexpected::Bytes(v), &self))?; - - ArrayString::from(s).map_err(|_| E::invalid_length(s.len(), &self)) - } - } - - deserializer.deserialize_str(ArrayStringVisitor::(PhantomData)) - } -} diff --git a/vendor/arrayvec/src/char.rs b/vendor/arrayvec/src/char.rs deleted file mode 100644 index 03d64fcd..00000000 --- a/vendor/arrayvec/src/char.rs +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT -// file at the top-level directory of this distribution and at -// http://rust-lang.org/COPYRIGHT. -// -// Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed -// except according to those terms. -// -// Original authors: alexchrichton, bluss - -use std::ptr; - -// UTF-8 ranges and tags for encoding characters -const TAG_CONT: u8 = 0b1000_0000; -const TAG_TWO_B: u8 = 0b1100_0000; -const TAG_THREE_B: u8 = 0b1110_0000; -const TAG_FOUR_B: u8 = 0b1111_0000; -const MAX_ONE_B: u32 = 0x80; -const MAX_TWO_B: u32 = 0x800; -const MAX_THREE_B: u32 = 0x10000; - -/// Placeholder -pub struct EncodeUtf8Error; - -#[inline] -unsafe fn write(ptr: *mut u8, index: usize, byte: u8) { - ptr::write(ptr.add(index), byte) -} - -/// Encode a char into buf using UTF-8. -/// -/// On success, return the byte length of the encoding (1, 2, 3 or 4).
-/// On error, return `EncodeUtf8Error` if the buffer was too short for the char. -/// -/// Safety: `ptr` must be writable for `len` bytes. -#[inline] -pub unsafe fn encode_utf8(ch: char, ptr: *mut u8, len: usize) -> Result -{ - let code = ch as u32; - if code < MAX_ONE_B && len >= 1 { - write(ptr, 0, code as u8); - return Ok(1); - } else if code < MAX_TWO_B && len >= 2 { - write(ptr, 0, (code >> 6 & 0x1F) as u8 | TAG_TWO_B); - write(ptr, 1, (code & 0x3F) as u8 | TAG_CONT); - return Ok(2); - } else if code < MAX_THREE_B && len >= 3 { - write(ptr, 0, (code >> 12 & 0x0F) as u8 | TAG_THREE_B); - write(ptr, 1, (code >> 6 & 0x3F) as u8 | TAG_CONT); - write(ptr, 2, (code & 0x3F) as u8 | TAG_CONT); - return Ok(3); - } else if len >= 4 { - write(ptr, 0, (code >> 18 & 0x07) as u8 | TAG_FOUR_B); - write(ptr, 1, (code >> 12 & 0x3F) as u8 | TAG_CONT); - write(ptr, 2, (code >> 6 & 0x3F) as u8 | TAG_CONT); - write(ptr, 3, (code & 0x3F) as u8 | TAG_CONT); - return Ok(4); - }; - Err(EncodeUtf8Error) -} - - -#[test] -#[cfg_attr(miri, ignore)] // Miri is too slow -fn test_encode_utf8() { - // Test that all codepoints are encoded correctly - let mut data = [0u8; 16]; - for codepoint in 0..=(std::char::MAX as u32) { - if let Some(ch) = std::char::from_u32(codepoint) { - for elt in &mut data { *elt = 0; } - let ptr = data.as_mut_ptr(); - let len = data.len(); - unsafe { - let res = encode_utf8(ch, ptr, len).ok().unwrap(); - assert_eq!(res, ch.len_utf8()); - } - let string = std::str::from_utf8(&data).unwrap(); - assert_eq!(string.chars().next(), Some(ch)); - } - } -} - -#[test] -fn test_encode_utf8_oob() { - // test that we report oob if the buffer is too short - let mut data = [0u8; 16]; - let chars = ['a', 'α', '�', '𐍈']; - for (len, &ch) in (1..=4).zip(&chars) { - assert_eq!(len, ch.len_utf8(), "Len of ch={}", ch); - let ptr = data.as_mut_ptr(); - unsafe { - assert!(matches::matches!(encode_utf8(ch, ptr, len - 1), Err(_))); - assert!(matches::matches!(encode_utf8(ch, ptr, len), Ok(_))); - } - } -} - diff --git a/vendor/arrayvec/src/errors.rs b/vendor/arrayvec/src/errors.rs deleted file mode 100644 index 380742a8..00000000 --- a/vendor/arrayvec/src/errors.rs +++ /dev/null @@ -1,49 +0,0 @@ -use std::fmt; -#[cfg(feature="std")] -use std::any::Any; -#[cfg(feature="std")] -use std::error::Error; - -/// Error value indicating insufficient capacity -#[derive(Clone, Copy, Eq, Ord, PartialEq, PartialOrd)] -pub struct CapacityError { - element: T, -} - -impl CapacityError { - /// Create a new `CapacityError` from `element`. - pub fn new(element: T) -> CapacityError { - CapacityError { - element: element, - } - } - - /// Extract the overflowing element - pub fn element(self) -> T { - self.element - } - - /// Convert into a `CapacityError` that does not carry an element. - pub fn simplify(self) -> CapacityError { - CapacityError { element: () } - } -} - -const CAPERROR: &'static str = "insufficient capacity"; - -#[cfg(feature="std")] -/// Requires `features="std"`. -impl Error for CapacityError {} - -impl fmt::Display for CapacityError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}", CAPERROR) - } -} - -impl fmt::Debug for CapacityError { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}: {}", "CapacityError", CAPERROR) - } -} - diff --git a/vendor/arrayvec/src/lib.rs b/vendor/arrayvec/src/lib.rs deleted file mode 100644 index a5d6c060..00000000 --- a/vendor/arrayvec/src/lib.rs +++ /dev/null @@ -1,1213 +0,0 @@ -//! **arrayvec** provides the types `ArrayVec` and `ArrayString`: -//! array-backed vector and string types, which store their contents inline. -//! -//! The arrayvec package has the following cargo features: -//! -//! - `std` -//! - Optional, enabled by default -//! - Use libstd; disable to use `no_std` instead. -//! -//! - `serde` -//! - Optional -//! - Enable serialization for ArrayVec and ArrayString using serde 1.x -//! - `array-sizes-33-128`, `array-sizes-129-255` -//! - Optional -//! - Enable more array sizes (see [Array] for more information) -//! -//! - `unstable-const-fn` -//! - Optional -//! - Makes [`ArrayVec::new`] and [`ArrayString::new`] `const fn`s, -//! using the nightly `const_fn` feature. -//! - Unstable and requires nightly. -//! -//! ## Rust Version -//! -//! This version of arrayvec requires Rust 1.36 or later. -//! -#![doc(html_root_url="https://docs.rs/arrayvec/0.4/")] -#![cfg_attr(not(feature="std"), no_std)] -#![cfg_attr(feature="unstable-const-fn", feature(const_fn))] - -#[cfg(feature="serde")] -extern crate serde; - -#[cfg(not(feature="std"))] -extern crate core as std; - -use std::cmp; -use std::iter; -use std::mem; -use std::ops::{Bound, Deref, DerefMut, RangeBounds}; -use std::ptr; -use std::slice; - -// extra traits -use std::borrow::{Borrow, BorrowMut}; -use std::hash::{Hash, Hasher}; -use std::fmt; - -#[cfg(feature="std")] -use std::io; - - -mod maybe_uninit; -use crate::maybe_uninit::MaybeUninit; - -#[cfg(feature="serde")] -use serde::{Serialize, Deserialize, Serializer, Deserializer}; - -mod array; -mod array_string; -mod char; -mod errors; - -pub use crate::array::Array; -use crate::array::Index; -pub use crate::array_string::ArrayString; -pub use crate::errors::CapacityError; - - -/// A vector with a fixed capacity. -/// -/// The `ArrayVec` is a vector backed by a fixed size array. It keeps track of -/// the number of initialized elements. -/// -/// The vector is a contiguous value that you can store directly on the stack -/// if needed. -/// -/// It offers a simple API but also dereferences to a slice, so -/// that the full slice API is available. -/// -/// ArrayVec can be converted into a by value iterator. -pub struct ArrayVec { - xs: MaybeUninit
, - len: A::Index, -} - -impl Drop for ArrayVec { - fn drop(&mut self) { - self.clear(); - - // MaybeUninit inhibits array's drop - } -} - -macro_rules! panic_oob { - ($method_name:expr, $index:expr, $len:expr) => { - panic!(concat!("ArrayVec::", $method_name, ": index {} is out of bounds in vector of length {}"), - $index, $len) - } -} - -impl ArrayVec { - /// Create a new empty `ArrayVec`. - /// - /// Capacity is inferred from the type parameter. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 16]>::new(); - /// array.push(1); - /// array.push(2); - /// assert_eq!(&array[..], &[1, 2]); - /// assert_eq!(array.capacity(), 16); - /// ``` - #[cfg(not(feature="unstable-const-fn"))] - pub fn new() -> ArrayVec { - unsafe { - ArrayVec { xs: MaybeUninit::uninitialized(), len: Index::ZERO } - } - } - - #[cfg(feature="unstable-const-fn")] - pub const fn new() -> ArrayVec { - unsafe { - ArrayVec { xs: MaybeUninit::uninitialized(), len: Index::ZERO } - } - } - - /// Return the number of elements in the `ArrayVec`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3]); - /// array.pop(); - /// assert_eq!(array.len(), 2); - /// ``` - #[inline] - pub fn len(&self) -> usize { self.len.to_usize() } - - /// Returns whether the `ArrayVec` is empty. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1]); - /// array.pop(); - /// assert_eq!(array.is_empty(), true); - /// ``` - #[inline] - pub fn is_empty(&self) -> bool { self.len() == 0 } - - /// Return the capacity of the `ArrayVec`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let array = ArrayVec::from([1, 2, 3]); - /// assert_eq!(array.capacity(), 3); - /// ``` - #[inline(always)] - pub fn capacity(&self) -> usize { A::CAPACITY } - - /// Return if the `ArrayVec` is completely filled. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 1]>::new(); - /// assert!(!array.is_full()); - /// array.push(1); - /// assert!(array.is_full()); - /// ``` - pub fn is_full(&self) -> bool { self.len() == self.capacity() } - - /// Returns the capacity left in the `ArrayVec`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3]); - /// array.pop(); - /// assert_eq!(array.remaining_capacity(), 1); - /// ``` - pub fn remaining_capacity(&self) -> usize { - self.capacity() - self.len() - } - - /// Push `element` to the end of the vector. - /// - /// ***Panics*** if the vector is already full. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 2]>::new(); - /// - /// array.push(1); - /// array.push(2); - /// - /// assert_eq!(&array[..], &[1, 2]); - /// ``` - pub fn push(&mut self, element: A::Item) { - self.try_push(element).unwrap() - } - - /// Push `element` to the end of the vector. - /// - /// Return `Ok` if the push succeeds, or return an error if the vector - /// is already full. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 2]>::new(); - /// - /// let push1 = array.try_push(1); - /// let push2 = array.try_push(2); - /// - /// assert!(push1.is_ok()); - /// assert!(push2.is_ok()); - /// - /// assert_eq!(&array[..], &[1, 2]); - /// - /// let overflow = array.try_push(3); - /// - /// assert!(overflow.is_err()); - /// ``` - pub fn try_push(&mut self, element: A::Item) -> Result<(), CapacityError> { - if self.len() < A::CAPACITY { - unsafe { - self.push_unchecked(element); - } - Ok(()) - } else { - Err(CapacityError::new(element)) - } - } - - - /// Push `element` to the end of the vector without checking the capacity. - /// - /// It is up to the caller to ensure the capacity of the vector is - /// sufficiently large. - /// - /// This method uses *debug assertions* to check that the arrayvec is not full. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 2]>::new(); - /// - /// if array.len() + 2 <= array.capacity() { - /// unsafe { - /// array.push_unchecked(1); - /// array.push_unchecked(2); - /// } - /// } - /// - /// assert_eq!(&array[..], &[1, 2]); - /// ``` - pub unsafe fn push_unchecked(&mut self, element: A::Item) { - let len = self.len(); - debug_assert!(len < A::CAPACITY); - ptr::write(self.get_unchecked_ptr(len), element); - self.set_len(len + 1); - } - - /// Get pointer to where element at `index` would be - unsafe fn get_unchecked_ptr(&mut self, index: usize) -> *mut A::Item { - self.xs.ptr_mut().add(index) - } - - /// Insert `element` at position `index`. - /// - /// Shift up all elements after `index`. - /// - /// It is an error if the index is greater than the length or if the - /// arrayvec is full. - /// - /// ***Panics*** if the array is full or the `index` is out of bounds. See - /// `try_insert` for fallible version. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 2]>::new(); - /// - /// array.insert(0, "x"); - /// array.insert(0, "y"); - /// assert_eq!(&array[..], &["y", "x"]); - /// - /// ``` - pub fn insert(&mut self, index: usize, element: A::Item) { - self.try_insert(index, element).unwrap() - } - - /// Insert `element` at position `index`. - /// - /// Shift up all elements after `index`; the `index` must be less than - /// or equal to the length. - /// - /// Returns an error if vector is already at full capacity. - /// - /// ***Panics*** `index` is out of bounds. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 2]>::new(); - /// - /// assert!(array.try_insert(0, "x").is_ok()); - /// assert!(array.try_insert(0, "y").is_ok()); - /// assert!(array.try_insert(0, "z").is_err()); - /// assert_eq!(&array[..], &["y", "x"]); - /// - /// ``` - pub fn try_insert(&mut self, index: usize, element: A::Item) -> Result<(), CapacityError> { - if index > self.len() { - panic_oob!("try_insert", index, self.len()) - } - if self.len() == self.capacity() { - return Err(CapacityError::new(element)); - } - let len = self.len(); - - // follows is just like Vec - unsafe { // infallible - // The spot to put the new value - { - let p: *mut _ = self.get_unchecked_ptr(index); - // Shift everything over to make space. (Duplicating the - // `index`th element into two consecutive places.) - ptr::copy(p, p.offset(1), len - index); - // Write it in, overwriting the first copy of the `index`th - // element. - ptr::write(p, element); - } - self.set_len(len + 1); - } - Ok(()) - } - - /// Remove the last element in the vector and return it. - /// - /// Return `Some(` *element* `)` if the vector is non-empty, else `None`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::<[_; 2]>::new(); - /// - /// array.push(1); - /// - /// assert_eq!(array.pop(), Some(1)); - /// assert_eq!(array.pop(), None); - /// ``` - pub fn pop(&mut self) -> Option { - if self.len() == 0 { - return None; - } - unsafe { - let new_len = self.len() - 1; - self.set_len(new_len); - Some(ptr::read(self.get_unchecked_ptr(new_len))) - } - } - - /// Remove the element at `index` and swap the last element into its place. - /// - /// This operation is O(1). - /// - /// Return the *element* if the index is in bounds, else panic. - /// - /// ***Panics*** if the `index` is out of bounds. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3]); - /// - /// assert_eq!(array.swap_remove(0), 1); - /// assert_eq!(&array[..], &[3, 2]); - /// - /// assert_eq!(array.swap_remove(1), 2); - /// assert_eq!(&array[..], &[3]); - /// ``` - pub fn swap_remove(&mut self, index: usize) -> A::Item { - self.swap_pop(index) - .unwrap_or_else(|| { - panic_oob!("swap_remove", index, self.len()) - }) - } - - /// Remove the element at `index` and swap the last element into its place. - /// - /// This is a checked version of `.swap_remove`. - /// This operation is O(1). - /// - /// Return `Some(` *element* `)` if the index is in bounds, else `None`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3]); - /// - /// assert_eq!(array.swap_pop(0), Some(1)); - /// assert_eq!(&array[..], &[3, 2]); - /// - /// assert_eq!(array.swap_pop(10), None); - /// ``` - pub fn swap_pop(&mut self, index: usize) -> Option { - let len = self.len(); - if index >= len { - return None; - } - self.swap(index, len - 1); - self.pop() - } - - /// Remove the element at `index` and shift down the following elements. - /// - /// The `index` must be strictly less than the length of the vector. - /// - /// ***Panics*** if the `index` is out of bounds. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3]); - /// - /// let removed_elt = array.remove(0); - /// assert_eq!(removed_elt, 1); - /// assert_eq!(&array[..], &[2, 3]); - /// ``` - pub fn remove(&mut self, index: usize) -> A::Item { - self.pop_at(index) - .unwrap_or_else(|| { - panic_oob!("remove", index, self.len()) - }) - } - - /// Remove the element at `index` and shift down the following elements. - /// - /// This is a checked version of `.remove(index)`. Returns `None` if there - /// is no element at `index`. Otherwise, return the element inside `Some`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3]); - /// - /// assert!(array.pop_at(0).is_some()); - /// assert_eq!(&array[..], &[2, 3]); - /// - /// assert!(array.pop_at(2).is_none()); - /// assert!(array.pop_at(10).is_none()); - /// ``` - pub fn pop_at(&mut self, index: usize) -> Option { - if index >= self.len() { - None - } else { - self.drain(index..index + 1).next() - } - } - - /// Shortens the vector, keeping the first `len` elements and dropping - /// the rest. - /// - /// If `len` is greater than the vector’s current length this has no - /// effect. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3, 4, 5]); - /// array.truncate(3); - /// assert_eq!(&array[..], &[1, 2, 3]); - /// array.truncate(4); - /// assert_eq!(&array[..], &[1, 2, 3]); - /// ``` - pub fn truncate(&mut self, new_len: usize) { - unsafe { - if new_len < self.len() { - let tail: *mut [_] = &mut self[new_len..]; - self.len = Index::from(new_len); - ptr::drop_in_place(tail); - } - } - } - - /// Remove all elements in the vector. - pub fn clear(&mut self) { - self.truncate(0) - } - - /// Retains only the elements specified by the predicate. - /// - /// In other words, remove all elements `e` such that `f(&mut e)` returns false. - /// This method operates in place and preserves the order of the retained - /// elements. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut array = ArrayVec::from([1, 2, 3, 4]); - /// array.retain(|x| *x & 1 != 0 ); - /// assert_eq!(&array[..], &[1, 3]); - /// ``` - pub fn retain(&mut self, mut f: F) - where F: FnMut(&mut A::Item) -> bool - { - let len = self.len(); - let mut del = 0; - { - let v = &mut **self; - - for i in 0..len { - if !f(&mut v[i]) { - del += 1; - } else if del > 0 { - v.swap(i - del, i); - } - } - } - if del > 0 { - self.drain(len - del..); - } - } - - /// Set the vector’s length without dropping or moving out elements - /// - /// This method is `unsafe` because it changes the notion of the - /// number of “valid” elements in the vector. Use with care. - /// - /// This method uses *debug assertions* to check that `length` is - /// not greater than the capacity. - pub unsafe fn set_len(&mut self, length: usize) { - debug_assert!(length <= self.capacity()); - self.len = Index::from(length); - } - - /// Copy and appends all elements in a slice to the `ArrayVec`. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut vec: ArrayVec<[usize; 10]> = ArrayVec::new(); - /// vec.push(1); - /// vec.try_extend_from_slice(&[2, 3]).unwrap(); - /// assert_eq!(&vec[..], &[1, 2, 3]); - /// ``` - /// - /// # Errors - /// - /// This method will return an error if the capacity left (see - /// [`remaining_capacity`]) is smaller then the length of the provided - /// slice. - /// - /// [`remaining_capacity`]: #method.remaining_capacity - pub fn try_extend_from_slice(&mut self, other: &[A::Item]) -> Result<(), CapacityError> - where A::Item: Copy, - { - if self.remaining_capacity() < other.len() { - return Err(CapacityError::new(())); - } - - let self_len = self.len(); - let other_len = other.len(); - - unsafe { - let dst = self.xs.ptr_mut().add(self_len); - ptr::copy_nonoverlapping(other.as_ptr(), dst, other_len); - self.set_len(self_len + other_len); - } - Ok(()) - } - - /// Create a draining iterator that removes the specified range in the vector - /// and yields the removed items from start to end. The element range is - /// removed even if the iterator is not consumed until the end. - /// - /// Note: It is unspecified how many elements are removed from the vector, - /// if the `Drain` value is leaked. - /// - /// **Panics** if the starting point is greater than the end point or if - /// the end point is greater than the length of the vector. - /// - /// ``` - /// use arrayvec::ArrayVec; - /// - /// let mut v = ArrayVec::from([1, 2, 3]); - /// let u: ArrayVec<[_; 3]> = v.drain(0..2).collect(); - /// assert_eq!(&v[..], &[3]); - /// assert_eq!(&u[..], &[1, 2]); - /// ``` - pub fn drain(&mut self, range: R) -> Drain - where R: RangeBounds - { - // Memory safety - // - // When the Drain is first created, it shortens the length of - // the source vector to make sure no uninitialized or moved-from elements - // are accessible at all if the Drain's destructor never gets to run. - // - // Drain will ptr::read out the values to remove. - // When finished, remaining tail of the vec is copied back to cover - // the hole, and the vector length is restored to the new length. - // - let len = self.len(); - let start = match range.start_bound() { - Bound::Unbounded => 0, - Bound::Included(&i) => i, - Bound::Excluded(&i) => i.saturating_add(1), - }; - let end = match range.end_bound() { - Bound::Excluded(&j) => j, - Bound::Included(&j) => j.saturating_add(1), - Bound::Unbounded => len, - }; - self.drain_range(start, end) - } - - fn drain_range(&mut self, start: usize, end: usize) -> Drain - { - let len = self.len(); - - // bounds check happens here (before length is changed!) - let range_slice: *const _ = &self[start..end]; - - // Calling `set_len` creates a fresh and thus unique mutable references, making all - // older aliases we created invalid. So we cannot call that function. - self.len = Index::from(start); - - unsafe { - Drain { - tail_start: end, - tail_len: len - end, - iter: (*range_slice).iter(), - vec: self as *mut _, - } - } - } - - /// Return the inner fixed size array, if it is full to its capacity. - /// - /// Return an `Ok` value with the array if length equals capacity, - /// return an `Err` with self otherwise. - pub fn into_inner(self) -> Result { - if self.len() < self.capacity() { - Err(self) - } else { - unsafe { - let array = ptr::read(self.xs.ptr() as *const A); - mem::forget(self); - Ok(array) - } - } - } - - /// Dispose of `self` (same as drop) - #[deprecated="Use std::mem::drop instead, if at all needed."] - pub fn dispose(mut self) { - self.clear(); - mem::forget(self); - } - - /// Return a slice containing all elements of the vector. - pub fn as_slice(&self) -> &[A::Item] { - self - } - - /// Return a mutable slice containing all elements of the vector. - pub fn as_mut_slice(&mut self) -> &mut [A::Item] { - self - } - - /// Return a raw pointer to the vector's buffer. - pub fn as_ptr(&self) -> *const A::Item { - self.xs.ptr() - } - - /// Return a raw mutable pointer to the vector's buffer. - pub fn as_mut_ptr(&mut self) -> *mut A::Item { - self.xs.ptr_mut() - } -} - -impl Deref for ArrayVec { - type Target = [A::Item]; - #[inline] - fn deref(&self) -> &[A::Item] { - unsafe { - slice::from_raw_parts(self.xs.ptr(), self.len()) - } - } -} - -impl DerefMut for ArrayVec { - #[inline] - fn deref_mut(&mut self) -> &mut [A::Item] { - let len = self.len(); - unsafe { - slice::from_raw_parts_mut(self.xs.ptr_mut(), len) - } - } -} - -/// Create an `ArrayVec` from an array. -/// -/// ``` -/// use arrayvec::ArrayVec; -/// -/// let mut array = ArrayVec::from([1, 2, 3]); -/// assert_eq!(array.len(), 3); -/// assert_eq!(array.capacity(), 3); -/// ``` -impl From for ArrayVec { - fn from(array: A) -> Self { - ArrayVec { xs: MaybeUninit::from(array), len: Index::from(A::CAPACITY) } - } -} - - -/// Try to create an `ArrayVec` from a slice. This will return an error if the slice was too big to -/// fit. -/// -/// ``` -/// use arrayvec::ArrayVec; -/// use std::convert::TryInto as _; -/// -/// let array: ArrayVec<[_; 4]> = (&[1, 2, 3] as &[_]).try_into().unwrap(); -/// assert_eq!(array.len(), 3); -/// assert_eq!(array.capacity(), 4); -/// ``` -impl std::convert::TryFrom<&[A::Item]> for ArrayVec - where - A::Item: Clone, -{ - type Error = CapacityError; - - fn try_from(slice: &[A::Item]) -> Result { - if A::CAPACITY < slice.len() { - Err(CapacityError::new(())) - } else { - let mut array = Self::new(); - array.extend(slice.iter().cloned()); - Ok(array) - } - } -} - - -/// Iterate the `ArrayVec` with references to each element. -/// -/// ``` -/// use arrayvec::ArrayVec; -/// -/// let array = ArrayVec::from([1, 2, 3]); -/// -/// for elt in &array { -/// // ... -/// } -/// ``` -impl<'a, A: Array> IntoIterator for &'a ArrayVec { - type Item = &'a A::Item; - type IntoIter = slice::Iter<'a, A::Item>; - fn into_iter(self) -> Self::IntoIter { self.iter() } -} - -/// Iterate the `ArrayVec` with mutable references to each element. -/// -/// ``` -/// use arrayvec::ArrayVec; -/// -/// let mut array = ArrayVec::from([1, 2, 3]); -/// -/// for elt in &mut array { -/// // ... -/// } -/// ``` -impl<'a, A: Array> IntoIterator for &'a mut ArrayVec { - type Item = &'a mut A::Item; - type IntoIter = slice::IterMut<'a, A::Item>; - fn into_iter(self) -> Self::IntoIter { self.iter_mut() } -} - -/// Iterate the `ArrayVec` with each element by value. -/// -/// The vector is consumed by this operation. -/// -/// ``` -/// use arrayvec::ArrayVec; -/// -/// for elt in ArrayVec::from([1, 2, 3]) { -/// // ... -/// } -/// ``` -impl IntoIterator for ArrayVec { - type Item = A::Item; - type IntoIter = IntoIter; - fn into_iter(self) -> IntoIter { - IntoIter { index: Index::from(0), v: self, } - } -} - - -/// By-value iterator for `ArrayVec`. -pub struct IntoIter { - index: A::Index, - v: ArrayVec, -} - -impl Iterator for IntoIter { - type Item = A::Item; - - fn next(&mut self) -> Option { - if self.index == self.v.len { - None - } else { - unsafe { - let index = self.index.to_usize(); - self.index = Index::from(index + 1); - Some(ptr::read(self.v.get_unchecked_ptr(index))) - } - } - } - - fn size_hint(&self) -> (usize, Option) { - let len = self.v.len() - self.index.to_usize(); - (len, Some(len)) - } -} - -impl DoubleEndedIterator for IntoIter { - fn next_back(&mut self) -> Option { - if self.index == self.v.len { - None - } else { - unsafe { - let new_len = self.v.len() - 1; - self.v.set_len(new_len); - Some(ptr::read(self.v.get_unchecked_ptr(new_len))) - } - } - } -} - -impl ExactSizeIterator for IntoIter { } - -impl Drop for IntoIter { - fn drop(&mut self) { - // panic safety: Set length to 0 before dropping elements. - let index = self.index.to_usize(); - let len = self.v.len(); - unsafe { - self.v.set_len(0); - let elements = slice::from_raw_parts_mut( - self.v.get_unchecked_ptr(index), - len - index); - ptr::drop_in_place(elements); - } - } -} - -impl Clone for IntoIter -where - A::Item: Clone, -{ - fn clone(&self) -> IntoIter { - self.v[self.index.to_usize()..] - .iter() - .cloned() - .collect::>() - .into_iter() - } -} - -impl fmt::Debug for IntoIter -where - A::Item: fmt::Debug, -{ - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.debug_list() - .entries(&self.v[self.index.to_usize()..]) - .finish() - } -} - -/// A draining iterator for `ArrayVec`. -pub struct Drain<'a, A> - where A: Array, - A::Item: 'a, -{ - /// Index of tail to preserve - tail_start: usize, - /// Length of tail - tail_len: usize, - /// Current remaining range to remove - iter: slice::Iter<'a, A::Item>, - vec: *mut ArrayVec, -} - -unsafe impl<'a, A: Array + Sync> Sync for Drain<'a, A> {} -unsafe impl<'a, A: Array + Send> Send for Drain<'a, A> {} - -impl<'a, A: Array> Iterator for Drain<'a, A> - where A::Item: 'a, -{ - type Item = A::Item; - - fn next(&mut self) -> Option { - self.iter.next().map(|elt| - unsafe { - ptr::read(elt as *const _) - } - ) - } - - fn size_hint(&self) -> (usize, Option) { - self.iter.size_hint() - } -} - -impl<'a, A: Array> DoubleEndedIterator for Drain<'a, A> - where A::Item: 'a, -{ - fn next_back(&mut self) -> Option { - self.iter.next_back().map(|elt| - unsafe { - ptr::read(elt as *const _) - } - ) - } -} - -impl<'a, A: Array> ExactSizeIterator for Drain<'a, A> where A::Item: 'a {} - -impl<'a, A: Array> Drop for Drain<'a, A> - where A::Item: 'a -{ - fn drop(&mut self) { - // len is currently 0 so panicking while dropping will not cause a double drop. - - // exhaust self first - while let Some(_) = self.next() { } - - if self.tail_len > 0 { - unsafe { - let source_vec = &mut *self.vec; - // memmove back untouched tail, update to new length - let start = source_vec.len(); - let tail = self.tail_start; - let src = source_vec.as_ptr().add(tail); - let dst = source_vec.as_mut_ptr().add(start); - ptr::copy(src, dst, self.tail_len); - source_vec.set_len(start + self.tail_len); - } - } - } -} - -struct ScopeExitGuard - where F: FnMut(&Data, &mut T) -{ - value: T, - data: Data, - f: F, -} - -impl Drop for ScopeExitGuard - where F: FnMut(&Data, &mut T) -{ - fn drop(&mut self) { - (self.f)(&self.data, &mut self.value) - } -} - - - -/// Extend the `ArrayVec` with an iterator. -/// -/// Does not extract more items than there is space for. No error -/// occurs if there are more iterator elements. -impl Extend for ArrayVec { - fn extend>(&mut self, iter: T) { - let take = self.capacity() - self.len(); - unsafe { - let len = self.len(); - let mut ptr = raw_ptr_add(self.as_mut_ptr(), len); - let end_ptr = raw_ptr_add(ptr, take); - // Keep the length in a separate variable, write it back on scope - // exit. To help the compiler with alias analysis and stuff. - // We update the length to handle panic in the iteration of the - // user's iterator, without dropping any elements on the floor. - let mut guard = ScopeExitGuard { - value: &mut self.len, - data: len, - f: move |&len, self_len| { - **self_len = Index::from(len); - } - }; - let mut iter = iter.into_iter(); - loop { - if ptr == end_ptr { break; } - if let Some(elt) = iter.next() { - raw_ptr_write(ptr, elt); - ptr = raw_ptr_add(ptr, 1); - guard.data += 1; - } else { - break; - } - } - } - } -} - -/// Rawptr add but uses arithmetic distance for ZST -unsafe fn raw_ptr_add(ptr: *mut T, offset: usize) -> *mut T { - if mem::size_of::() == 0 { - // Special case for ZST - (ptr as usize).wrapping_add(offset) as _ - } else { - ptr.add(offset) - } -} - -unsafe fn raw_ptr_write(ptr: *mut T, value: T) { - if mem::size_of::() == 0 { - /* nothing */ - } else { - ptr::write(ptr, value) - } -} - -/// Create an `ArrayVec` from an iterator. -/// -/// Does not extract more items than there is space for. No error -/// occurs if there are more iterator elements. -impl iter::FromIterator for ArrayVec { - fn from_iter>(iter: T) -> Self { - let mut array = ArrayVec::new(); - array.extend(iter); - array - } -} - -impl Clone for ArrayVec - where A::Item: Clone -{ - fn clone(&self) -> Self { - self.iter().cloned().collect() - } - - fn clone_from(&mut self, rhs: &Self) { - // recursive case for the common prefix - let prefix = cmp::min(self.len(), rhs.len()); - self[..prefix].clone_from_slice(&rhs[..prefix]); - - if prefix < self.len() { - // rhs was shorter - for _ in 0..self.len() - prefix { - self.pop(); - } - } else { - let rhs_elems = rhs[self.len()..].iter().cloned(); - self.extend(rhs_elems); - } - } -} - -impl Hash for ArrayVec - where A::Item: Hash -{ - fn hash(&self, state: &mut H) { - Hash::hash(&**self, state) - } -} - -impl PartialEq for ArrayVec - where A::Item: PartialEq -{ - fn eq(&self, other: &Self) -> bool { - **self == **other - } -} - -impl PartialEq<[A::Item]> for ArrayVec - where A::Item: PartialEq -{ - fn eq(&self, other: &[A::Item]) -> bool { - **self == *other - } -} - -impl Eq for ArrayVec where A::Item: Eq { } - -impl Borrow<[A::Item]> for ArrayVec { - fn borrow(&self) -> &[A::Item] { self } -} - -impl BorrowMut<[A::Item]> for ArrayVec { - fn borrow_mut(&mut self) -> &mut [A::Item] { self } -} - -impl AsRef<[A::Item]> for ArrayVec { - fn as_ref(&self) -> &[A::Item] { self } -} - -impl AsMut<[A::Item]> for ArrayVec { - fn as_mut(&mut self) -> &mut [A::Item] { self } -} - -impl fmt::Debug for ArrayVec where A::Item: fmt::Debug { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { (**self).fmt(f) } -} - -impl Default for ArrayVec { - /// Return an empty array - fn default() -> ArrayVec { - ArrayVec::new() - } -} - -impl PartialOrd for ArrayVec where A::Item: PartialOrd { - fn partial_cmp(&self, other: &ArrayVec) -> Option { - (**self).partial_cmp(other) - } - - fn lt(&self, other: &Self) -> bool { - (**self).lt(other) - } - - fn le(&self, other: &Self) -> bool { - (**self).le(other) - } - - fn ge(&self, other: &Self) -> bool { - (**self).ge(other) - } - - fn gt(&self, other: &Self) -> bool { - (**self).gt(other) - } -} - -impl Ord for ArrayVec where A::Item: Ord { - fn cmp(&self, other: &ArrayVec) -> cmp::Ordering { - (**self).cmp(other) - } -} - -#[cfg(feature="std")] -/// `Write` appends written data to the end of the vector. -/// -/// Requires `features="std"`. -impl> io::Write for ArrayVec { - fn write(&mut self, data: &[u8]) -> io::Result { - let len = cmp::min(self.remaining_capacity(), data.len()); - let _result = self.try_extend_from_slice(&data[..len]); - debug_assert!(_result.is_ok()); - Ok(len) - } - fn flush(&mut self) -> io::Result<()> { Ok(()) } -} - -#[cfg(feature="serde")] -/// Requires crate feature `"serde"` -impl> Serialize for ArrayVec { - fn serialize(&self, serializer: S) -> Result - where S: Serializer - { - serializer.collect_seq(self) - } -} - -#[cfg(feature="serde")] -/// Requires crate feature `"serde"` -impl<'de, T: Deserialize<'de>, A: Array> Deserialize<'de> for ArrayVec { - fn deserialize(deserializer: D) -> Result - where D: Deserializer<'de> - { - use serde::de::{Visitor, SeqAccess, Error}; - use std::marker::PhantomData; - - struct ArrayVecVisitor<'de, T: Deserialize<'de>, A: Array>(PhantomData<(&'de (), T, A)>); - - impl<'de, T: Deserialize<'de>, A: Array> Visitor<'de> for ArrayVecVisitor<'de, T, A> { - type Value = ArrayVec; - - fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - write!(formatter, "an array with no more than {} items", A::CAPACITY) - } - - fn visit_seq(self, mut seq: SA) -> Result - where SA: SeqAccess<'de>, - { - let mut values = ArrayVec::::new(); - - while let Some(value) = seq.next_element()? { - if let Err(_) = values.try_push(value) { - return Err(SA::Error::invalid_length(A::CAPACITY + 1, &self)); - } - } - - Ok(values) - } - } - - deserializer.deserialize_seq(ArrayVecVisitor::(PhantomData)) - } -} diff --git a/vendor/arrayvec/src/maybe_uninit.rs b/vendor/arrayvec/src/maybe_uninit.rs deleted file mode 100644 index e009abfc..00000000 --- a/vendor/arrayvec/src/maybe_uninit.rs +++ /dev/null @@ -1,44 +0,0 @@ - - -use crate::array::Array; -use std::mem::MaybeUninit as StdMaybeUninit; - -#[derive(Copy)] -pub struct MaybeUninit { - inner: StdMaybeUninit, -} - -impl Clone for MaybeUninit - where T: Copy -{ - fn clone(&self) -> Self { *self } -} - -impl MaybeUninit { - /// Create a new MaybeUninit with uninitialized interior - pub const unsafe fn uninitialized() -> Self { - MaybeUninit { inner: StdMaybeUninit::uninit() } - } - - /// Create a new MaybeUninit from the value `v`. - pub fn from(v: T) -> Self { - MaybeUninit { inner: StdMaybeUninit::new(v) } - } - - // Raw pointer casts written so that we don't reference or access the - // uninitialized interior value - - /// Return a raw pointer to the start of the interior array - pub fn ptr(&self) -> *const T::Item - where T: Array - { - self.inner.as_ptr() as *const T::Item - } - - /// Return a mut raw pointer to the start of the interior array - pub fn ptr_mut(&mut self) -> *mut T::Item - where T: Array - { - self.inner.as_mut_ptr() as *mut T::Item - } -} diff --git a/vendor/arrayvec/tests/serde.rs b/vendor/arrayvec/tests/serde.rs deleted file mode 100644 index 3876d2a7..00000000 --- a/vendor/arrayvec/tests/serde.rs +++ /dev/null @@ -1,79 +0,0 @@ -#![cfg(feature = "serde")] -extern crate arrayvec; -extern crate serde_test; - -mod array_vec { - use arrayvec::ArrayVec; - - use serde_test::{Token, assert_tokens, assert_de_tokens_error}; - - #[test] - fn test_ser_de_empty() { - let vec = ArrayVec::<[u32; 0]>::new(); - - assert_tokens(&vec, &[ - Token::Seq { len: Some(0) }, - Token::SeqEnd, - ]); - } - - - #[test] - fn test_ser_de() { - let mut vec = ArrayVec::<[u32; 3]>::new(); - vec.push(20); - vec.push(55); - vec.push(123); - - assert_tokens(&vec, &[ - Token::Seq { len: Some(3) }, - Token::U32(20), - Token::U32(55), - Token::U32(123), - Token::SeqEnd, - ]); - } - - #[test] - fn test_de_too_large() { - assert_de_tokens_error::>(&[ - Token::Seq { len: Some(3) }, - Token::U32(13), - Token::U32(42), - Token::U32(68), - ], "invalid length 3, expected an array with no more than 2 items"); - } -} - -mod array_string { - use arrayvec::ArrayString; - - use serde_test::{Token, assert_tokens, assert_de_tokens_error}; - - #[test] - fn test_ser_de_empty() { - let string = ArrayString::<[u8; 0]>::new(); - - assert_tokens(&string, &[ - Token::Str(""), - ]); - } - - - #[test] - fn test_ser_de() { - let string = ArrayString::<[u8; 9]>::from("1234 abcd") - .expect("expected exact specified capacity to be enough"); - - assert_tokens(&string, &[ - Token::Str("1234 abcd"), - ]); - } - - #[test] - fn test_de_too_large() { - assert_de_tokens_error::>(&[ - Token::Str("afd") - ], "invalid length 3, expected a string no more than 2 bytes long"); - } -} diff --git a/vendor/arrayvec/tests/tests.rs b/vendor/arrayvec/tests/tests.rs deleted file mode 100644 index c7ebcd0c..00000000 --- a/vendor/arrayvec/tests/tests.rs +++ /dev/null @@ -1,688 +0,0 @@ -extern crate arrayvec; -#[macro_use] extern crate matches; - -use arrayvec::ArrayVec; -use arrayvec::ArrayString; -use std::mem; -use arrayvec::CapacityError; - -use std::collections::HashMap; - - -#[test] -fn test_simple() { - use std::ops::Add; - - let mut vec: ArrayVec<[Vec; 3]> = ArrayVec::new(); - - vec.push(vec![1, 2, 3, 4]); - vec.push(vec![10]); - vec.push(vec![-1, 13, -2]); - - for elt in &vec { - assert_eq!(elt.iter().fold(0, Add::add), 10); - } - - let sum_len = vec.into_iter().map(|x| x.len()).fold(0, Add::add); - assert_eq!(sum_len, 8); -} - -#[test] -fn test_capacity_left() { - let mut vec: ArrayVec<[usize; 4]> = ArrayVec::new(); - assert_eq!(vec.remaining_capacity(), 4); - vec.push(1); - assert_eq!(vec.remaining_capacity(), 3); - vec.push(2); - assert_eq!(vec.remaining_capacity(), 2); - vec.push(3); - assert_eq!(vec.remaining_capacity(), 1); - vec.push(4); - assert_eq!(vec.remaining_capacity(), 0); -} - -#[test] -fn test_extend_from_slice() { - let mut vec: ArrayVec<[usize; 10]> = ArrayVec::new(); - - vec.try_extend_from_slice(&[1, 2, 3]).unwrap(); - assert_eq!(vec.len(), 3); - assert_eq!(&vec[..], &[1, 2, 3]); - assert_eq!(vec.pop(), Some(3)); - assert_eq!(&vec[..], &[1, 2]); -} - -#[test] -fn test_extend_from_slice_error() { - let mut vec: ArrayVec<[usize; 10]> = ArrayVec::new(); - - vec.try_extend_from_slice(&[1, 2, 3]).unwrap(); - let res = vec.try_extend_from_slice(&[0; 8]); - assert_matches!(res, Err(_)); - - let mut vec: ArrayVec<[usize; 0]> = ArrayVec::new(); - let res = vec.try_extend_from_slice(&[0; 1]); - assert_matches!(res, Err(_)); -} - -#[test] -fn test_try_from_slice_error() { - use arrayvec::ArrayVec; - use std::convert::TryInto as _; - - let res: Result, _> = (&[1, 2, 3] as &[_]).try_into(); - assert_matches!(res, Err(_)); -} - -#[test] -fn test_u16_index() { - const N: usize = 4096; - let mut vec: ArrayVec<[_; N]> = ArrayVec::new(); - for _ in 0..N { - assert!(vec.try_push(1u8).is_ok()); - } - assert!(vec.try_push(0).is_err()); - assert_eq!(vec.len(), N); -} - -#[test] -fn test_iter() { - let mut iter = ArrayVec::from([1, 2, 3]).into_iter(); - assert_eq!(iter.size_hint(), (3, Some(3))); - assert_eq!(iter.next_back(), Some(3)); - assert_eq!(iter.next(), Some(1)); - assert_eq!(iter.next_back(), Some(2)); - assert_eq!(iter.size_hint(), (0, Some(0))); - assert_eq!(iter.next_back(), None); -} - -#[test] -fn test_drop() { - use std::cell::Cell; - - let flag = &Cell::new(0); - - #[derive(Clone)] - struct Bump<'a>(&'a Cell); - - impl<'a> Drop for Bump<'a> { - fn drop(&mut self) { - let n = self.0.get(); - self.0.set(n + 1); - } - } - - { - let mut array = ArrayVec::<[Bump; 128]>::new(); - array.push(Bump(flag)); - array.push(Bump(flag)); - } - assert_eq!(flag.get(), 2); - - // test something with the nullable pointer optimization - flag.set(0); - - { - let mut array = ArrayVec::<[_; 3]>::new(); - array.push(vec![Bump(flag)]); - array.push(vec![Bump(flag), Bump(flag)]); - array.push(vec![]); - let push4 = array.try_push(vec![Bump(flag)]); - assert_eq!(flag.get(), 0); - drop(push4); - assert_eq!(flag.get(), 1); - drop(array.pop()); - assert_eq!(flag.get(), 1); - drop(array.pop()); - assert_eq!(flag.get(), 3); - } - - assert_eq!(flag.get(), 4); - - // test into_inner - flag.set(0); - { - let mut array = ArrayVec::<[_; 3]>::new(); - array.push(Bump(flag)); - array.push(Bump(flag)); - array.push(Bump(flag)); - let inner = array.into_inner(); - assert!(inner.is_ok()); - assert_eq!(flag.get(), 0); - drop(inner); - assert_eq!(flag.get(), 3); - } - - // test cloning into_iter - flag.set(0); - { - let mut array = ArrayVec::<[_; 3]>::new(); - array.push(Bump(flag)); - array.push(Bump(flag)); - array.push(Bump(flag)); - let mut iter = array.into_iter(); - assert_eq!(flag.get(), 0); - iter.next(); - assert_eq!(flag.get(), 1); - let clone = iter.clone(); - assert_eq!(flag.get(), 1); - drop(clone); - assert_eq!(flag.get(), 3); - drop(iter); - assert_eq!(flag.get(), 5); - } -} - -#[test] -fn test_drop_panics() { - use std::cell::Cell; - use std::panic::catch_unwind; - use std::panic::AssertUnwindSafe; - - let flag = &Cell::new(0); - - struct Bump<'a>(&'a Cell); - - // Panic in the first drop - impl<'a> Drop for Bump<'a> { - fn drop(&mut self) { - let n = self.0.get(); - self.0.set(n + 1); - if n == 0 { - panic!("Panic in Bump's drop"); - } - } - } - // check if rust is new enough - flag.set(0); - { - let array = vec![Bump(flag), Bump(flag)]; - let res = catch_unwind(AssertUnwindSafe(|| { - drop(array); - })); - assert!(res.is_err()); - } - - if flag.get() != 2 { - println!("test_drop_panics: skip, this version of Rust doesn't continue in drop_in_place"); - return; - } - - flag.set(0); - { - let mut array = ArrayVec::<[Bump; 128]>::new(); - array.push(Bump(flag)); - array.push(Bump(flag)); - array.push(Bump(flag)); - - let res = catch_unwind(AssertUnwindSafe(|| { - drop(array); - })); - assert!(res.is_err()); - } - // Check that all the elements drop, even if the first drop panics. - assert_eq!(flag.get(), 3); - - - flag.set(0); - { - let mut array = ArrayVec::<[Bump; 16]>::new(); - array.push(Bump(flag)); - array.push(Bump(flag)); - array.push(Bump(flag)); - array.push(Bump(flag)); - array.push(Bump(flag)); - - let i = 2; - let tail_len = array.len() - i; - - let res = catch_unwind(AssertUnwindSafe(|| { - array.truncate(i); - })); - assert!(res.is_err()); - // Check that all the tail elements drop, even if the first drop panics. - assert_eq!(flag.get(), tail_len as i32); - } - - -} - -#[test] -fn test_extend() { - let mut range = 0..10; - - let mut array: ArrayVec<[_; 5]> = range.by_ref().collect(); - assert_eq!(&array[..], &[0, 1, 2, 3, 4]); - assert_eq!(range.next(), Some(5)); - - array.extend(range.by_ref()); - assert_eq!(range.next(), Some(6)); - - let mut array: ArrayVec<[_; 10]> = (0..3).collect(); - assert_eq!(&array[..], &[0, 1, 2]); - array.extend(3..5); - assert_eq!(&array[..], &[0, 1, 2, 3, 4]); -} - -#[test] -fn test_is_send_sync() { - let data = ArrayVec::<[Vec; 5]>::new(); - &data as &dyn Send; - &data as &dyn Sync; -} - -#[test] -fn test_compact_size() { - // Future rust will kill these drop flags! - // 4 elements size + 1 len + 1 enum tag + [1 drop flag] - type ByteArray = ArrayVec<[u8; 4]>; - println!("{}", mem::size_of::()); - assert!(mem::size_of::() <= 8); - - // 1 enum tag + 1 drop flag - type EmptyArray = ArrayVec<[u8; 0]>; - println!("{}", mem::size_of::()); - assert!(mem::size_of::() <= 2); - - // 12 element size + 1 enum tag + 3 padding + 1 len + 1 drop flag + 2 padding - type QuadArray = ArrayVec<[u32; 3]>; - println!("{}", mem::size_of::()); - assert!(mem::size_of::() <= 24); -} - -#[test] -fn test_still_works_with_option_arrayvec() { - type RefArray = ArrayVec<[&'static i32; 2]>; - let array = Some(RefArray::new()); - assert!(array.is_some()); - println!("{:?}", array); -} - -#[test] -fn test_drain() { - let mut v = ArrayVec::from([0; 8]); - v.pop(); - v.drain(0..7); - assert_eq!(&v[..], &[]); - - v.extend(0..); - v.drain(1..4); - assert_eq!(&v[..], &[0, 4, 5, 6, 7]); - let u: ArrayVec<[_; 3]> = v.drain(1..4).rev().collect(); - assert_eq!(&u[..], &[6, 5, 4]); - assert_eq!(&v[..], &[0, 7]); - v.drain(..); - assert_eq!(&v[..], &[]); -} - -#[test] -fn test_drain_range_inclusive() { - let mut v = ArrayVec::from([0; 8]); - v.drain(0..=7); - assert_eq!(&v[..], &[]); - - v.extend(0..); - v.drain(1..=4); - assert_eq!(&v[..], &[0, 5, 6, 7]); - let u: ArrayVec<[_; 3]> = v.drain(1..=2).rev().collect(); - assert_eq!(&u[..], &[6, 5]); - assert_eq!(&v[..], &[0, 7]); - v.drain(..); - assert_eq!(&v[..], &[]); -} - -#[test] -#[should_panic] -fn test_drain_range_inclusive_oob() { - let mut v = ArrayVec::from([0; 0]); - v.drain(0..=0); -} - -#[test] -fn test_retain() { - let mut v = ArrayVec::from([0; 8]); - for (i, elt) in v.iter_mut().enumerate() { - *elt = i; - } - v.retain(|_| true); - assert_eq!(&v[..], &[0, 1, 2, 3, 4, 5, 6, 7]); - v.retain(|elt| { - *elt /= 2; - *elt % 2 == 0 - }); - assert_eq!(&v[..], &[0, 0, 2, 2]); - v.retain(|_| false); - assert_eq!(&v[..], &[]); -} - -#[test] -#[should_panic] -fn test_drain_oob() { - let mut v = ArrayVec::from([0; 8]); - v.pop(); - v.drain(0..8); -} - -#[test] -#[should_panic] -fn test_drop_panic() { - struct DropPanic; - - impl Drop for DropPanic { - fn drop(&mut self) { - panic!("drop"); - } - } - - let mut array = ArrayVec::<[DropPanic; 1]>::new(); - array.push(DropPanic); -} - -#[test] -#[should_panic] -fn test_drop_panic_into_iter() { - struct DropPanic; - - impl Drop for DropPanic { - fn drop(&mut self) { - panic!("drop"); - } - } - - let mut array = ArrayVec::<[DropPanic; 1]>::new(); - array.push(DropPanic); - array.into_iter(); -} - -#[test] -fn test_insert() { - let mut v = ArrayVec::from([]); - assert_matches!(v.try_push(1), Err(_)); - - let mut v = ArrayVec::<[_; 3]>::new(); - v.insert(0, 0); - v.insert(1, 1); - //let ret1 = v.try_insert(3, 3); - //assert_matches!(ret1, Err(InsertError::OutOfBounds(_))); - assert_eq!(&v[..], &[0, 1]); - v.insert(2, 2); - assert_eq!(&v[..], &[0, 1, 2]); - - let ret2 = v.try_insert(1, 9); - assert_eq!(&v[..], &[0, 1, 2]); - assert_matches!(ret2, Err(_)); - - let mut v = ArrayVec::from([2]); - assert_matches!(v.try_insert(0, 1), Err(CapacityError { .. })); - assert_matches!(v.try_insert(1, 1), Err(CapacityError { .. })); - //assert_matches!(v.try_insert(2, 1), Err(CapacityError { .. })); -} - -#[test] -fn test_into_inner_1() { - let mut v = ArrayVec::from([1, 2]); - v.pop(); - let u = v.clone(); - assert_eq!(v.into_inner(), Err(u)); -} - -#[test] -fn test_into_inner_2() { - let mut v = ArrayVec::<[String; 4]>::new(); - v.push("a".into()); - v.push("b".into()); - v.push("c".into()); - v.push("d".into()); - assert_eq!(v.into_inner().unwrap(), ["a", "b", "c", "d"]); -} - -#[test] -fn test_into_inner_3_() { - let mut v = ArrayVec::<[i32; 4]>::new(); - v.extend(1..); - assert_eq!(v.into_inner().unwrap(), [1, 2, 3, 4]); -} - -#[cfg(feature="std")] -#[test] -fn test_write() { - use std::io::Write; - let mut v = ArrayVec::<[_; 8]>::new(); - write!(&mut v, "\x01\x02\x03").unwrap(); - assert_eq!(&v[..], &[1, 2, 3]); - let r = v.write(&[9; 16]).unwrap(); - assert_eq!(r, 5); - assert_eq!(&v[..], &[1, 2, 3, 9, 9, 9, 9, 9]); -} - -#[test] -fn array_clone_from() { - let mut v = ArrayVec::<[_; 4]>::new(); - v.push(vec![1, 2]); - v.push(vec![3, 4, 5]); - v.push(vec![6]); - let reference = v.to_vec(); - let mut u = ArrayVec::<[_; 4]>::new(); - u.clone_from(&v); - assert_eq!(&u, &reference[..]); - - let mut t = ArrayVec::<[_; 4]>::new(); - t.push(vec![97]); - t.push(vec![]); - t.push(vec![5, 6, 2]); - t.push(vec![2]); - t.clone_from(&v); - assert_eq!(&t, &reference[..]); - t.clear(); - t.clone_from(&v); - assert_eq!(&t, &reference[..]); -} - -#[cfg(feature="std")] -#[test] -fn test_string() { - use std::error::Error; - - let text = "hello world"; - let mut s = ArrayString::<[_; 16]>::new(); - s.try_push_str(text).unwrap(); - assert_eq!(&s, text); - assert_eq!(text, &s); - - // Make sure Hash / Eq / Borrow match up so we can use HashMap - let mut map = HashMap::new(); - map.insert(s, 1); - assert_eq!(map[text], 1); - - let mut t = ArrayString::<[_; 2]>::new(); - assert!(t.try_push_str(text).is_err()); - assert_eq!(&t, ""); - - t.push_str("ab"); - // DerefMut - let tmut: &mut str = &mut t; - assert_eq!(tmut, "ab"); - - // Test Error trait / try - let t = || -> Result<(), Box> { - let mut t = ArrayString::<[_; 2]>::new(); - t.try_push_str(text)?; - Ok(()) - }(); - assert!(t.is_err()); -} - -#[test] -fn test_string_from() { - let text = "hello world"; - // Test `from` constructor - let u = ArrayString::<[_; 11]>::from(text).unwrap(); - assert_eq!(&u, text); - assert_eq!(u.len(), text.len()); -} - -#[test] -fn test_string_parse_from_str() { - let text = "hello world"; - let u: ArrayString<[_; 11]> = text.parse().unwrap(); - assert_eq!(&u, text); - assert_eq!(u.len(), text.len()); -} - -#[test] -fn test_string_from_bytes() { - let text = "hello world"; - let u = ArrayString::from_byte_string(b"hello world").unwrap(); - assert_eq!(&u, text); - assert_eq!(u.len(), text.len()); -} - -#[test] -fn test_string_clone() { - let text = "hi"; - let mut s = ArrayString::<[_; 4]>::new(); - s.push_str("abcd"); - let t = ArrayString::<[_; 4]>::from(text).unwrap(); - s.clone_from(&t); - assert_eq!(&t, &s); -} - -#[test] -fn test_string_push() { - let text = "abcαβγ"; - let mut s = ArrayString::<[_; 8]>::new(); - for c in text.chars() { - if let Err(_) = s.try_push(c) { - break; - } - } - assert_eq!("abcαβ", &s[..]); - s.push('x'); - assert_eq!("abcαβx", &s[..]); - assert!(s.try_push('x').is_err()); -} - - -#[test] -fn test_insert_at_length() { - let mut v = ArrayVec::<[_; 8]>::new(); - let result1 = v.try_insert(0, "a"); - let result2 = v.try_insert(1, "b"); - assert!(result1.is_ok() && result2.is_ok()); - assert_eq!(&v[..], &["a", "b"]); -} - -#[should_panic] -#[test] -fn test_insert_out_of_bounds() { - let mut v = ArrayVec::<[_; 8]>::new(); - let _ = v.try_insert(1, "test"); -} - -/* - * insert that pushes out the last - let mut u = ArrayVec::from([1, 2, 3, 4]); - let ret = u.try_insert(3, 99); - assert_eq!(&u[..], &[1, 2, 3, 99]); - assert_matches!(ret, Err(_)); - let ret = u.try_insert(4, 77); - assert_eq!(&u[..], &[1, 2, 3, 99]); - assert_matches!(ret, Err(_)); -*/ - -#[test] -fn test_drop_in_insert() { - use std::cell::Cell; - - let flag = &Cell::new(0); - - struct Bump<'a>(&'a Cell); - - impl<'a> Drop for Bump<'a> { - fn drop(&mut self) { - let n = self.0.get(); - self.0.set(n + 1); - } - } - - flag.set(0); - - { - let mut array = ArrayVec::<[_; 2]>::new(); - array.push(Bump(flag)); - array.insert(0, Bump(flag)); - assert_eq!(flag.get(), 0); - let ret = array.try_insert(1, Bump(flag)); - assert_eq!(flag.get(), 0); - assert_matches!(ret, Err(_)); - drop(ret); - assert_eq!(flag.get(), 1); - } - assert_eq!(flag.get(), 3); -} - -#[test] -fn test_pop_at() { - let mut v = ArrayVec::<[String; 4]>::new(); - let s = String::from; - v.push(s("a")); - v.push(s("b")); - v.push(s("c")); - v.push(s("d")); - - assert_eq!(v.pop_at(4), None); - assert_eq!(v.pop_at(1), Some(s("b"))); - assert_eq!(v.pop_at(1), Some(s("c"))); - assert_eq!(v.pop_at(2), None); - assert_eq!(&v[..], &["a", "d"]); -} - -#[test] -fn test_sizes() { - let v = ArrayVec::from([0u8; 1 << 16]); - assert_eq!(vec![0u8; v.len()], &v[..]); -} - -#[test] -fn test_default() { - use std::net; - let s: ArrayString<[u8; 4]> = Default::default(); - // Something without `Default` implementation. - let v: ArrayVec<[net::TcpStream; 4]> = Default::default(); - assert_eq!(s.len(), 0); - assert_eq!(v.len(), 0); -} - -#[cfg(feature="array-sizes-33-128")] -#[test] -fn test_sizes_33_128() { - ArrayVec::from([0u8; 52]); - ArrayVec::from([0u8; 127]); -} - -#[cfg(feature="array-sizes-129-255")] -#[test] -fn test_sizes_129_255() { - ArrayVec::from([0u8; 237]); - ArrayVec::from([0u8; 255]); -} - -#[test] -fn test_extend_zst() { - let mut range = 0..10; - #[derive(Copy, Clone, PartialEq, Debug)] - struct Z; // Zero sized type - - let mut array: ArrayVec<[_; 5]> = range.by_ref().map(|_| Z).collect(); - assert_eq!(&array[..], &[Z; 5]); - assert_eq!(range.next(), Some(5)); - - array.extend(range.by_ref().map(|_| Z)); - assert_eq!(range.next(), Some(6)); - - let mut array: ArrayVec<[_; 10]> = (0..3).map(|_| Z).collect(); - assert_eq!(&array[..], &[Z; 3]); - array.extend((3..5).map(|_| Z)); - assert_eq!(&array[..], &[Z; 5]); - assert_eq!(array.len(), 5); -} diff --git a/vendor/ascii-canvas/.cargo-checksum.json b/vendor/ascii-canvas/.cargo-checksum.json deleted file mode 100644 index 6353de9f..00000000 --- a/vendor/ascii-canvas/.cargo-checksum.json +++ /dev/null @@ -1 +0,0 @@ -{"files":{"Cargo.toml":"5159921895050337cd95367d770c844f0bdfc37621f80ab43bebb031bdd0d05f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"73cb5f952615bc21d11487cd7e0cf091967cc71d2e7d6cb93f96b36d47b250ed","README.md":"d150052b0f03fca1d85ddd0dd355507374a64c6abc65d5e3f195e737f2ea60ef","src/lib.rs":"ca20074656c27f6a609471a05ae568bf70286e4991cab3d67c4055e866329491","src/row.rs":"0ef895e78c95da85a3a8ba2b88e9a1dfda3db962a816576657ebec1168dbcc19","src/style.rs":"6b5eb3114a7a6da1e21a0b8432251066ac1301fdcf620607f1acbb4293d9e2b8","src/test.rs":"8447d8006e31a32d2ccbd30f3a6a8a4326338132ec98533a4f7c60ebe179840e","src/test_util.rs":"94ab5f32df50555823054904ef679153274921c2a3bb0e3c0095f36ce984fbe2"},"package":"ef1e3e699d84ab1b0911a1010c5c106aa34ae89aeac103be5ce0c3859db1e891"} \ No newline at end of file diff --git a/vendor/ascii-canvas/Cargo.toml b/vendor/ascii-canvas/Cargo.toml deleted file mode 100644 index 06cba77e..00000000 --- a/vendor/ascii-canvas/Cargo.toml +++ /dev/null @@ -1,36 +0,0 @@ -# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO -# -# When uploading crates to the registry Cargo will automatically -# "normalize" Cargo.toml files for maximal compatibility -# with all versions of Cargo and also rewrite `path` dependencies -# to registry (e.g., crates.io) dependencies. -# -# If you are reading this file be aware that the original Cargo.toml -# will likely look very different (and much more reasonable). -# See Cargo.toml.orig for the original contents. - -[package] -edition = "2021" -rust-version = "1.70" -name = "ascii-canvas" -version = "4.0.0" -authors = ["Niko Matsakis "] -build = false -autobins = false -autoexamples = false -autotests = false -autobenches = false -description = "simple canvas for drawing lines and styled text and emitting to the terminal" -readme = "README.md" -license = "Apache-2.0/MIT" -repository = "https://github.com/lalrpop/ascii-canvas" - -[lib] -name = "ascii_canvas" -path = "src/lib.rs" - -[dependencies.term] -version = "1" - -[dev-dependencies.diff] -version = "0.1" diff --git a/vendor/ascii-canvas/LICENSE-APACHE b/vendor/ascii-canvas/LICENSE-APACHE deleted file mode 100644 index 16fe87b0..00000000 --- a/vendor/ascii-canvas/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS - -APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - -Copyright [yyyy] [name of copyright owner] - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/vendor/ascii-canvas/LICENSE-MIT b/vendor/ascii-canvas/LICENSE-MIT deleted file mode 100644 index 84ba53a8..00000000 --- a/vendor/ascii-canvas/LICENSE-MIT +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) 2015 The LALRPOP Project Developers - -Permission is hereby granted, free of charge, to any -person obtaining a copy of this software and associated -documentation files (the "Software"), to deal in the -Software without restriction, including without -limitation the rights to use, copy, modify, merge, -publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software -is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions -of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF -ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED -TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT -SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR -IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -DEALINGS IN THE SOFTWARE. diff --git a/vendor/ascii-canvas/README.md b/vendor/ascii-canvas/README.md deleted file mode 100644 index 18dda91a..00000000 --- a/vendor/ascii-canvas/README.md +++ /dev/null @@ -1,8 +0,0 @@ -ASCII canvas is a simple library that allows you to draw lines and -colored text and then write them to the terminal. It uses the `term` -library to handle the ANSI nonsense and hence it works on Windows, -Mac, and Unix. - -See [the documentation](https://docs.rs/ascii-canvas/) for more information. - -ASCII canvas was originally part of the [LALRPOP parser generator](https://github.com/nikomatsakis/lalrpop). diff --git a/vendor/ascii-canvas/src/lib.rs b/vendor/ascii-canvas/src/lib.rs deleted file mode 100644 index 7c8dcf5e..00000000 --- a/vendor/ascii-canvas/src/lib.rs +++ /dev/null @@ -1,336 +0,0 @@ -//! An "ASCII Canvas" allows us to draw lines and write text into a -//! fixed-sized canvas and then convert that canvas into ASCII -//! characters. ANSI styling is supported. - -use crate::style::Style; -use std::cmp; -use std::iter::ExactSizeIterator; -use std::ops::Range; -use term::Terminal; - -mod row; -#[cfg(test)] -mod test; -#[cfg(test)] -mod test_util; - -pub mod style; - -pub use self::row::Row; - -/////////////////////////////////////////////////////////////////////////// - -/// AsciiView is a view onto an `AsciiCanvas` which potentially -/// applies transformations along the way (e.g., shifting, adding -/// styling information). Most of the main drawing methods for -/// `AsciiCanvas` are defined as inherent methods on an `AsciiView` -/// trait object. -pub trait AsciiView { - fn columns(&self) -> usize; - fn read_char(&mut self, row: usize, column: usize) -> char; - fn write_char(&mut self, row: usize, column: usize, ch: char, style: Style); -} - -impl<'a> dyn AsciiView + 'a { - fn add_box_dirs(&mut self, row: usize, column: usize, dirs: u8) { - let old_ch = self.read_char(row, column); - let new_ch = add_dirs(old_ch, dirs); - self.write_char(row, column, new_ch, Style::new()); - } - - /// Draws a line for the given range of rows at the given column. - pub fn draw_vertical_line(&mut self, rows: Range, column: usize) { - let len = rows.len(); - for (index, r) in rows.enumerate() { - let new_dirs = if index == 0 { - DOWN - } else if index == len - 1 { - UP - } else { - UP | DOWN - }; - self.add_box_dirs(r, column, new_dirs); - } - } - - /// Draws a horizontal line along a given row for the given range - /// of columns. - pub fn draw_horizontal_line(&mut self, row: usize, columns: Range) { - let len = columns.len(); - for (index, c) in columns.enumerate() { - let new_dirs = if index == 0 { - RIGHT - } else if index == len - 1 { - LEFT - } else { - LEFT | RIGHT - }; - self.add_box_dirs(row, c, new_dirs); - } - } - - /// Writes characters in the given style at the given position. - pub fn write_chars(&mut self, row: usize, column: usize, chars: I, style: Style) - where - I: Iterator, - { - for (i, ch) in chars.enumerate() { - self.write_char(row, column + i, ch, style); - } - } - - /// Creates a new view onto the same canvas, but writing at an offset. - pub fn shift(&mut self, row: usize, column: usize) -> ShiftedView { - ShiftedView::new(self, row, column) - } - - /// Creates a new view onto the same canvas, but applying a style - /// to all the characters written. - pub fn styled(&mut self, style: Style) -> StyleView { - StyleView::new(self, style) - } -} - -pub struct AsciiCanvas { - columns: usize, - rows: usize, - characters: Vec, - styles: Vec