code_ownership 2.1.4 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.cargo/config +2 -2
- data/Cargo.lock +36 -86
- data/bin/codeownership +1 -0
- data/ext/cargo-vendor/bindgen-0.72.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/bindgen-0.72.1/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/bindgen-0.72.1/Cargo.lock +485 -0
- data/ext/cargo-vendor/bindgen-0.72.1/Cargo.toml +189 -0
- data/ext/cargo-vendor/bindgen-0.72.1/Cargo.toml.orig +72 -0
- data/ext/cargo-vendor/bindgen-0.72.1/README.md +89 -0
- data/ext/cargo-vendor/bindgen-0.72.1/build.rs +29 -0
- data/ext/cargo-vendor/bindgen-0.72.1/callbacks.rs +317 -0
- data/ext/cargo-vendor/bindgen-0.72.1/clang.rs +2448 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/bitfield_unit.rs +112 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/bitfield_unit_raw_ref_macros.rs +191 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/bitfield_unit_tests.rs +260 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/dyngen.rs +258 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/error.rs +52 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/helpers.rs +395 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/impl_debug.rs +243 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/impl_partialeq.rs +142 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/mod.rs +5991 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/postprocessing/merge_extern_blocks.rs +72 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/postprocessing/sort_semantically.rs +46 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/serialize.rs +443 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/struct_layout.rs +458 -0
- data/ext/cargo-vendor/bindgen-0.72.1/deps.rs +61 -0
- data/ext/cargo-vendor/bindgen-0.72.1/diagnostics.rs +146 -0
- data/ext/cargo-vendor/bindgen-0.72.1/extra_assertions.rs +17 -0
- data/ext/cargo-vendor/bindgen-0.72.1/features.rs +570 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/derive.rs +726 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_destructor.rs +175 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_float.rs +248 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_type_param_in_array.rs +242 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_vtable.rs +235 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/mod.rs +395 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/sizedness.rs +353 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/template_params.rs +601 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/annotations.rs +259 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/comment.rs +100 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/comp.rs +1921 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/context.rs +3107 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/derive.rs +130 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/dot.rs +85 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/enum_ty.rs +321 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/function.rs +838 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/int.rs +128 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/item.rs +1994 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/item_kind.rs +135 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/layout.rs +126 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/module.rs +96 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/objc.rs +343 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/template.rs +335 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/traversal.rs +478 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/ty.rs +1256 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/var.rs +523 -0
- data/ext/cargo-vendor/bindgen-0.72.1/lib.rs +1422 -0
- data/ext/cargo-vendor/bindgen-0.72.1/log_stubs.rs +38 -0
- data/ext/cargo-vendor/bindgen-0.72.1/options/as_args.rs +52 -0
- data/ext/cargo-vendor/bindgen-0.72.1/options/cli.rs +1151 -0
- data/ext/cargo-vendor/bindgen-0.72.1/options/mod.rs +2286 -0
- data/ext/cargo-vendor/bindgen-0.72.1/regex_set.rs +199 -0
- data/ext/cargo-vendor/bindgen-0.72.1/time.rs +52 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.github/workflows/audit.yml +31 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.github/workflows/ci.yml +180 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.github/workflows/codeql.yml +21 -0
- data/ext/cargo-vendor/codeowners-0.5.0/Cargo.lock +1176 -0
- data/ext/cargo-vendor/codeowners-0.5.0/Cargo.toml +173 -0
- data/ext/cargo-vendor/codeowners-0.5.0/perf/README.md +204 -0
- data/ext/cargo-vendor/codeowners-0.5.0/perf/compare.sh +23 -0
- data/ext/cargo-vendor/codeowners-0.5.0/perf/run.sh +28 -0
- data/ext/cargo-vendor/codeowners-0.5.0/rust-toolchain.toml +4 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/bin/codeowners-perf.rs +719 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cache/file.rs +179 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cache/mod.rs +29 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cache/noop.rs +26 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cli.rs +138 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/main.rs +43 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership/file_owner_resolver.rs +829 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership/validator.rs +378 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership.rs +243 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/project.rs +232 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/project_builder.rs +430 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/project_file_builder.rs +113 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/runner/api.rs +145 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/runner/types.rs +37 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/runner.rs +493 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/annotation_in_unowned_team_glob_test.rs +64 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/common/mod.rs +180 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/directory_codeowner_github_team_test.rs +22 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/empty_directory_codeowner_test.rs +26 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/executable_name_config_test.rs +88 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/.github/CODEOWNERS +18 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/config/code_ownership.yml +4 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/config/teams/alpha.yml +7 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/config/teams/beta.yml +3 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/ruby/app/services/alpha_owned.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/ruby/app/services/beta_owned.rb +4 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/custom_codeowners_path/docs/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/custom_codeowners_path/expected/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/.github/CODEOWNERS +15 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_handle/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_handle/handled.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_name/named.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/.github/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/app/services/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/app/services/nested/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/app/services/nested/nested_file.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/config/code_ownership.yml +10 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/config/teams/foo.yml +5 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/.github/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/app/services/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/app/services/nested/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/app/services/nested/nested_file.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/config/code_ownership.yml +10 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/config/teams/foo.yml +5 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/multiple-directory-owners/app/services/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/multiple-directory-owners/config/code_ownership.yml +10 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/multiple-directory-owners/config/teams/foo.yml +5 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/valid_project/.github/CODEOWNERS +41 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/valid_project_with_overrides/.github/CODEOWNERS +53 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/global_gitignore_test.rs +50 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/invalid_directory_codeowner_test.rs +26 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/invalid_project_test.rs +174 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/perf_harness_test.rs +245 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/untracked_new_file_test.rs +63 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/untracked_source_file_test.rs +40 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/valid_project_test.rs +348 -0
- data/ext/cargo-vendor/error-stack-0.8.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/error-stack-0.8.0/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/error-stack-0.8.0/.justfile +16 -0
- data/ext/cargo-vendor/error-stack-0.8.0/CHANGELOG.md +158 -0
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.lock +733 -0
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.toml +389 -0
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.toml.orig +109 -0
- data/ext/cargo-vendor/error-stack-0.8.0/README.md +149 -0
- data/ext/cargo-vendor/error-stack-0.8.0/build.rs +28 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/demo.rs +117 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/detect.rs +68 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/exit_code.rs +25 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/parse_config.rs +51 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/compat/anyhow.rs +34 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/compat/eyre.rs +32 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/compat/mod.rs +34 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/context.rs +52 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/error.rs +40 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/iter.rs +286 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/mod.rs +19 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/stream.rs +212 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/tuple.rs +218 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/charset.rs +114 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/color.rs +330 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/config.rs +67 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/hook.rs +544 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/location.rs +33 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/mod.rs +1187 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/frame/frame_impl.rs +259 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/frame/kind.rs +38 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/frame/mod.rs +120 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/future.rs +301 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/hook/context.rs +363 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/hook/mod.rs +240 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/iter.rs +224 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/lib.rs +557 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/macros.rs +212 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/report.rs +1058 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/result.rs +137 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/serde.rs +169 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/sink.rs +672 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/common.rs +354 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/compiletest.rs +22 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__charset_ascii.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__charset_utf8.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__diagnostics_add.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__doc.snap +12 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__emit.snap +16 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__emit_alt.snap +28 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_cast.snap +11 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_decrement.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_emit.snap +16 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_increment.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_storage.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__preference_color.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__preference_emphasis.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__preference_none.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt_doc_alt.snap +15 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/hook__debug_hook.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/hook__debug_hook_provide.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/lib__suggestion.snap +13 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/report_debug__doc.snap +14 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__complex.snap +49 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__hook_location.snap +15 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__linear.snap +27 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__linear_ext.snap +27 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__multiline_context.snap +25 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__sources.snap +48 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__sources_transparent.snap +50 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested.snap +78 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested@spantrace-backtrace.snap +128 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested_alternate.snap +78 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested_alternate@spantrace-backtrace.snap +128 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__attachment.snap +13 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__context.snap +19 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__multiple_sources.snap +30 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__multiple_sources_at_root.snap +20 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_attach.rs +94 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_attach_printable.rs +73 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_backtrace.rs +61 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_change_context.rs +90 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_compatibility.rs +224 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_conversion.rs +134 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_debug.rs +628 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_display.rs +31 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_downcast.rs +101 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_extend.rs +99 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_frame.rs +136 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_iter.rs +132 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_macros.rs +68 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_provision.rs +52 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_serialize.rs +70 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_span_trace.rs +91 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/attach_diagnostics.rs +21 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/attach_diagnostics.stderr +23 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/frames_mut_escape.rs +28 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/frames_mut_escape.stderr +13 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/macro_invalid_args.rs +32 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/macro_invalid_args.stderr +132 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/missing_args.rs +32 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/missing_args.stderr +35 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/must_use.rs +20 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/must_use.stderr +15 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/Cargo.lock +385 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/Cargo.toml +71 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/Cargo.toml.orig +58 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/build/main.rs +292 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/build/stable_api_config.rs +179 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/build/version.rs +58 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/bindings.rs +22 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/macros.rs +701 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/memory.rs +64 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/compiled.c +338 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/compiled.rs +452 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_2_7.rs +770 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_0.rs +773 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_1.rs +766 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_2.rs +764 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_3.rs +777 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_4.rs +788 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_4_0.rs +784 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api.rs +465 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/utils.rs +94 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/Cargo.lock +286 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/Cargo.toml +76 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/Cargo.toml.orig +33 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/bindings/gc_stress.rs +303 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/bindings/stable_api.rs +297 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/bindings.rs +292 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/cc.rs +421 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/rb_config.rs +1060 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/tests/fixtures/rubyopt_stdout.rb +1 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/tests/rubyopt.rs +17 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/Cargo.lock +7 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/Cargo.toml +33 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/Cargo.toml.orig +14 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/readme.md +117 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/src/ruby_version.rs +165 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/.github/workflows/rust.yml +73 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/CHANGELOG.md +41 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/CODE_OF_CONDUCT.md +3 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/Cargo.lock +90 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/Cargo.toml +50 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/Cargo.toml.orig +20 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/LICENSE-MIT +23 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/README.md +42 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/src/lib.rs +472 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/src/random_state.rs +101 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/src/seeded_state.rs +76 -0
- data/ext/cargo-vendor/serde-1.0.229/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde-1.0.229/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde-1.0.229/Cargo.lock +66 -0
- data/ext/cargo-vendor/serde-1.0.229/Cargo.toml +84 -0
- data/ext/cargo-vendor/serde-1.0.229/Cargo.toml.orig +62 -0
- data/ext/cargo-vendor/serde-1.0.229/README.md +114 -0
- data/ext/cargo-vendor/serde-1.0.229/build.rs +69 -0
- data/ext/cargo-vendor/serde-1.0.229/src/core/de/impls.rs +3173 -0
- data/ext/cargo-vendor/serde-1.0.229/src/core/lib.rs +121 -0
- data/ext/cargo-vendor/serde-1.0.229/src/lib.rs +285 -0
- data/ext/cargo-vendor/serde_core-1.0.229/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_core-1.0.229/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde_core-1.0.229/Cargo.lock +63 -0
- data/ext/cargo-vendor/serde_core-1.0.229/Cargo.toml +87 -0
- data/ext/cargo-vendor/serde_core-1.0.229/Cargo.toml.orig +70 -0
- data/ext/cargo-vendor/serde_core-1.0.229/build.rs +113 -0
- data/ext/cargo-vendor/serde_core-1.0.229/src/de/impls.rs +3173 -0
- data/ext/cargo-vendor/serde_core-1.0.229/src/lib.rs +121 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/Cargo.lock +88 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/Cargo.toml +87 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/Cargo.toml.orig +42 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/README.md +114 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/bound.rs +431 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/de/enum_adjacently.rs +324 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/de/enum_externally.rs +213 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/de.rs +976 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/ast.rs +225 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/attr.rs +1818 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/ctxt.rs +67 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/receiver.rs +293 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/lib.rs +127 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/pretend.rs +188 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/ser.rs +1369 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/Cargo.lock +385 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/Cargo.toml +162 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/Cargo.toml.orig +28 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/README.md +121 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/src/de/deserializer.rs +185 -0
- data/ext/cargo-vendor/syn-3.0.9/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/syn-3.0.9/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/syn-3.0.9/Cargo.lock +1948 -0
- data/ext/cargo-vendor/syn-3.0.9/Cargo.toml +268 -0
- data/ext/cargo-vendor/syn-3.0.9/Cargo.toml.orig +95 -0
- data/ext/cargo-vendor/syn-3.0.9/LICENSE-APACHE +176 -0
- data/ext/cargo-vendor/syn-3.0.9/README.md +297 -0
- data/ext/cargo-vendor/syn-3.0.9/benches/file.rs +59 -0
- data/ext/cargo-vendor/syn-3.0.9/benches/rust.rs +189 -0
- data/ext/cargo-vendor/syn-3.0.9/src/attr.rs +841 -0
- data/ext/cargo-vendor/syn-3.0.9/src/bigint.rs +68 -0
- data/ext/cargo-vendor/syn-3.0.9/src/buffer.rs +462 -0
- data/ext/cargo-vendor/syn-3.0.9/src/classify.rs +311 -0
- data/ext/cargo-vendor/syn-3.0.9/src/custom_keyword.rs +260 -0
- data/ext/cargo-vendor/syn-3.0.9/src/custom_punctuation.rs +305 -0
- data/ext/cargo-vendor/syn-3.0.9/src/data.rs +489 -0
- data/ext/cargo-vendor/syn-3.0.9/src/derive.rs +260 -0
- data/ext/cargo-vendor/syn-3.0.9/src/discouraged.rs +233 -0
- data/ext/cargo-vendor/syn-3.0.9/src/drops.rs +58 -0
- data/ext/cargo-vendor/syn-3.0.9/src/error.rs +552 -0
- data/ext/cargo-vendor/syn-3.0.9/src/export.rs +73 -0
- data/ext/cargo-vendor/syn-3.0.9/src/expr.rs +4249 -0
- data/ext/cargo-vendor/syn-3.0.9/src/ext.rs +180 -0
- data/ext/cargo-vendor/syn-3.0.9/src/file.rs +136 -0
- data/ext/cargo-vendor/syn-3.0.9/src/fixup.rs +773 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/clone.rs +2394 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/debug.rs +3399 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/eq.rs +2459 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/fold.rs +3934 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/hash.rs +3040 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/token.css +744 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/visit.rs +4037 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/visit_mut.rs +3824 -0
- data/ext/cargo-vendor/syn-3.0.9/src/generics.rs +1490 -0
- data/ext/cargo-vendor/syn-3.0.9/src/group.rs +294 -0
- data/ext/cargo-vendor/syn-3.0.9/src/ident.rs +109 -0
- data/ext/cargo-vendor/syn-3.0.9/src/item.rs +3923 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lib.rs +1132 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lifetime.rs +193 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lit.rs +1881 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lookahead.rs +350 -0
- data/ext/cargo-vendor/syn-3.0.9/src/mac.rs +225 -0
- data/ext/cargo-vendor/syn-3.0.9/src/macros.rs +151 -0
- data/ext/cargo-vendor/syn-3.0.9/src/meta.rs +427 -0
- data/ext/cargo-vendor/syn-3.0.9/src/op.rs +219 -0
- data/ext/cargo-vendor/syn-3.0.9/src/parse.rs +1420 -0
- data/ext/cargo-vendor/syn-3.0.9/src/parse_macro_input.rs +128 -0
- data/ext/cargo-vendor/syn-3.0.9/src/parse_quote.rs +261 -0
- data/ext/cargo-vendor/syn-3.0.9/src/pat.rs +994 -0
- data/ext/cargo-vendor/syn-3.0.9/src/path.rs +972 -0
- data/ext/cargo-vendor/syn-3.0.9/src/precedence.rs +210 -0
- data/ext/cargo-vendor/syn-3.0.9/src/print.rs +16 -0
- data/ext/cargo-vendor/syn-3.0.9/src/punctuated.rs +1200 -0
- data/ext/cargo-vendor/syn-3.0.9/src/restriction.rs +160 -0
- data/ext/cargo-vendor/syn-3.0.9/src/scan_expr.rs +270 -0
- data/ext/cargo-vendor/syn-3.0.9/src/sealed.rs +4 -0
- data/ext/cargo-vendor/syn-3.0.9/src/span.rs +63 -0
- data/ext/cargo-vendor/syn-3.0.9/src/spanned.rs +118 -0
- data/ext/cargo-vendor/syn-3.0.9/src/stmt.rs +536 -0
- data/ext/cargo-vendor/syn-3.0.9/src/thread.rs +60 -0
- data/ext/cargo-vendor/syn-3.0.9/src/token.rs +1103 -0
- data/ext/cargo-vendor/syn-3.0.9/src/tt.rs +97 -0
- data/ext/cargo-vendor/syn-3.0.9/src/ty.rs +1347 -0
- data/ext/cargo-vendor/syn-3.0.9/src/verbatim.rs +32 -0
- data/ext/cargo-vendor/syn-3.0.9/src/whitespace.rs +65 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/eq.rs +939 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/mod.rs +6 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/parse.rs +51 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/visit.rs +119 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/debug/gen.rs +5394 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/debug/mod.rs +147 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/macros/mod.rs +7 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/regression/issue1108.rs +5 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/regression/issue1235.rs +32 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/regression.rs +5 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/repo/mod.rs +789 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/repo/progress.rs +37 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/snapshot/mod.rs +68 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_attribute.rs +231 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_derive_input.rs +801 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_expr.rs +1721 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_generics.rs +363 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_grouping.rs +59 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_ident.rs +87 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_item.rs +374 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_lit.rs +335 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_meta.rs +180 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_parse_buffer.rs +104 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_parse_quote.rs +175 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_parse_stream.rs +187 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_pat.rs +158 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_path.rs +117 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_precedence.rs +560 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_punctuated.rs +92 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_receiver.rs +275 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_round_trip.rs +226 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_shebang.rs +77 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_size.rs +54 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_stmt.rs +378 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_token_trees.rs +38 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_ty.rs +479 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_unparenthesize.rs +71 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_visibility.rs +193 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/zzz_stable.rs +33 -0
- data/ext/code_ownership/Cargo.toml +2 -2
- data/ext/code_ownership/src/lib.rs +15 -3
- data/lib/code_ownership/version.rb +1 -1
- data/lib/code_ownership.rb +4 -1
- metadata +739 -723
- data/ext/cargo-vendor/ahash-0.7.8/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/ahash-0.7.8/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/ahash-0.7.8/.github/workflows/rust.yml +0 -151
- data/ext/cargo-vendor/ahash-0.7.8/Cargo.toml +0 -149
- data/ext/cargo-vendor/ahash-0.7.8/Cargo.toml.orig +0 -96
- data/ext/cargo-vendor/ahash-0.7.8/FAQ.md +0 -118
- data/ext/cargo-vendor/ahash-0.7.8/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/ahash-0.7.8/LICENSE-MIT +0 -25
- data/ext/cargo-vendor/ahash-0.7.8/README.md +0 -110
- data/ext/cargo-vendor/ahash-0.7.8/build.rs +0 -47
- data/ext/cargo-vendor/ahash-0.7.8/rustfmt.toml +0 -1
- data/ext/cargo-vendor/ahash-0.7.8/src/aes_hash.rs +0 -440
- data/ext/cargo-vendor/ahash-0.7.8/src/convert.rs +0 -167
- data/ext/cargo-vendor/ahash-0.7.8/src/fallback_hash.rs +0 -392
- data/ext/cargo-vendor/ahash-0.7.8/src/hash_map.rs +0 -371
- data/ext/cargo-vendor/ahash-0.7.8/src/hash_quality_test.rs +0 -517
- data/ext/cargo-vendor/ahash-0.7.8/src/hash_set.rs +0 -313
- data/ext/cargo-vendor/ahash-0.7.8/src/lib.rs +0 -263
- data/ext/cargo-vendor/ahash-0.7.8/src/operations.rs +0 -330
- data/ext/cargo-vendor/ahash-0.7.8/src/random_state.rs +0 -363
- data/ext/cargo-vendor/ahash-0.7.8/src/specialize.rs +0 -239
- data/ext/cargo-vendor/ahash-0.7.8/tests/bench.rs +0 -154
- data/ext/cargo-vendor/ahash-0.7.8/tests/map_tests.rs +0 -203
- data/ext/cargo-vendor/ahash-0.7.8/tests/nopanic.rs +0 -72
- data/ext/cargo-vendor/bindgen-0.69.5/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/bindgen-0.69.5/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/bindgen-0.69.5/Cargo.toml +0 -155
- data/ext/cargo-vendor/bindgen-0.69.5/Cargo.toml.orig +0 -74
- data/ext/cargo-vendor/bindgen-0.69.5/README.md +0 -89
- data/ext/cargo-vendor/bindgen-0.69.5/build.rs +0 -29
- data/ext/cargo-vendor/bindgen-0.69.5/callbacks.rs +0 -213
- data/ext/cargo-vendor/bindgen-0.69.5/clang.rs +0 -2347
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/bitfield_unit.rs +0 -102
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/bitfield_unit_tests.rs +0 -260
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/dyngen.rs +0 -201
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/error.rs +0 -53
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/helpers.rs +0 -355
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/impl_debug.rs +0 -245
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/impl_partialeq.rs +0 -142
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/mod.rs +0 -5473
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/postprocessing/merge_extern_blocks.rs +0 -72
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/postprocessing/sort_semantically.rs +0 -46
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/serialize.rs +0 -444
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/struct_layout.rs +0 -451
- data/ext/cargo-vendor/bindgen-0.69.5/deps.rs +0 -61
- data/ext/cargo-vendor/bindgen-0.69.5/diagnostics.rs +0 -189
- data/ext/cargo-vendor/bindgen-0.69.5/extra_assertions.rs +0 -17
- data/ext/cargo-vendor/bindgen-0.69.5/features.rs +0 -296
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/derive.rs +0 -732
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_destructor.rs +0 -176
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_float.rs +0 -252
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_type_param_in_array.rs +0 -252
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_vtable.rs +0 -240
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/mod.rs +0 -400
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/sizedness.rs +0 -361
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/template_params.rs +0 -607
- data/ext/cargo-vendor/bindgen-0.69.5/ir/annotations.rs +0 -256
- data/ext/cargo-vendor/bindgen-0.69.5/ir/comment.rs +0 -100
- data/ext/cargo-vendor/bindgen-0.69.5/ir/comp.rs +0 -1896
- data/ext/cargo-vendor/bindgen-0.69.5/ir/context.rs +0 -3038
- data/ext/cargo-vendor/bindgen-0.69.5/ir/derive.rs +0 -135
- data/ext/cargo-vendor/bindgen-0.69.5/ir/dot.rs +0 -86
- data/ext/cargo-vendor/bindgen-0.69.5/ir/enum_ty.rs +0 -323
- data/ext/cargo-vendor/bindgen-0.69.5/ir/function.rs +0 -839
- data/ext/cargo-vendor/bindgen-0.69.5/ir/int.rs +0 -127
- data/ext/cargo-vendor/bindgen-0.69.5/ir/item.rs +0 -2034
- data/ext/cargo-vendor/bindgen-0.69.5/ir/item_kind.rs +0 -135
- data/ext/cargo-vendor/bindgen-0.69.5/ir/layout.rs +0 -138
- data/ext/cargo-vendor/bindgen-0.69.5/ir/module.rs +0 -96
- data/ext/cargo-vendor/bindgen-0.69.5/ir/objc.rs +0 -354
- data/ext/cargo-vendor/bindgen-0.69.5/ir/template.rs +0 -342
- data/ext/cargo-vendor/bindgen-0.69.5/ir/traversal.rs +0 -479
- data/ext/cargo-vendor/bindgen-0.69.5/ir/ty.rs +0 -1281
- data/ext/cargo-vendor/bindgen-0.69.5/ir/var.rs +0 -488
- data/ext/cargo-vendor/bindgen-0.69.5/lib.rs +0 -1380
- data/ext/cargo-vendor/bindgen-0.69.5/log_stubs.rs +0 -32
- data/ext/cargo-vendor/bindgen-0.69.5/options/as_args.rs +0 -52
- data/ext/cargo-vendor/bindgen-0.69.5/options/mod.rs +0 -2079
- data/ext/cargo-vendor/bindgen-0.69.5/regex_set.rs +0 -204
- data/ext/cargo-vendor/bindgen-0.69.5/time.rs +0 -52
- data/ext/cargo-vendor/codeowners-0.3.3/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/codeowners-0.3.3/.github/workflows/audit.yml +0 -19
- data/ext/cargo-vendor/codeowners-0.3.3/.github/workflows/ci.yml +0 -169
- data/ext/cargo-vendor/codeowners-0.3.3/Cargo.lock +0 -1264
- data/ext/cargo-vendor/codeowners-0.3.3/Cargo.toml +0 -132
- data/ext/cargo-vendor/codeowners-0.3.3/rust-toolchain.toml +0 -4
- data/ext/cargo-vendor/codeowners-0.3.3/src/cache/file.rs +0 -179
- data/ext/cargo-vendor/codeowners-0.3.3/src/cache/mod.rs +0 -29
- data/ext/cargo-vendor/codeowners-0.3.3/src/cache/noop.rs +0 -26
- data/ext/cargo-vendor/codeowners-0.3.3/src/cli.rs +0 -138
- data/ext/cargo-vendor/codeowners-0.3.3/src/main.rs +0 -43
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership/file_owner_resolver.rs +0 -416
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership/validator.rs +0 -285
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership.rs +0 -224
- data/ext/cargo-vendor/codeowners-0.3.3/src/project.rs +0 -232
- data/ext/cargo-vendor/codeowners-0.3.3/src/project_builder.rs +0 -404
- data/ext/cargo-vendor/codeowners-0.3.3/src/project_file_builder.rs +0 -113
- data/ext/cargo-vendor/codeowners-0.3.3/src/runner/api.rs +0 -142
- data/ext/cargo-vendor/codeowners-0.3.3/src/runner/types.rs +0 -38
- data/ext/cargo-vendor/codeowners-0.3.3/src/runner.rs +0 -483
- data/ext/cargo-vendor/codeowners-0.3.3/tests/common/mod.rs +0 -180
- data/ext/cargo-vendor/codeowners-0.3.3/tests/executable_name_config_test.rs +0 -88
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/custom_codeowners_path/docs/CODEOWNERS +0 -14
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/custom_codeowners_path/expected/CODEOWNERS +0 -14
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/valid_project/.github/CODEOWNERS +0 -41
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/valid_project_with_overrides/.github/CODEOWNERS +0 -53
- data/ext/cargo-vendor/codeowners-0.3.3/tests/invalid_project_test.rs +0 -174
- data/ext/cargo-vendor/codeowners-0.3.3/tests/valid_project_test.rs +0 -348
- data/ext/cargo-vendor/error-stack-0.5.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/error-stack-0.5.0/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/error-stack-0.5.0/.justfile +0 -58
- data/ext/cargo-vendor/error-stack-0.5.0/CHANGELOG.md +0 -109
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.lock +0 -790
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.toml +0 -334
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.toml.orig +0 -87
- data/ext/cargo-vendor/error-stack-0.5.0/README.md +0 -151
- data/ext/cargo-vendor/error-stack-0.5.0/build.rs +0 -29
- data/ext/cargo-vendor/error-stack-0.5.0/examples/demo.rs +0 -115
- data/ext/cargo-vendor/error-stack-0.5.0/examples/detect.rs +0 -68
- data/ext/cargo-vendor/error-stack-0.5.0/examples/exit_code.rs +0 -24
- data/ext/cargo-vendor/error-stack-0.5.0/examples/parse_config.rs +0 -51
- data/ext/cargo-vendor/error-stack-0.5.0/rust-toolchain.toml +0 -4
- data/ext/cargo-vendor/error-stack-0.5.0/src/compat/anyhow.rs +0 -34
- data/ext/cargo-vendor/error-stack-0.5.0/src/compat/eyre.rs +0 -31
- data/ext/cargo-vendor/error-stack-0.5.0/src/compat/mod.rs +0 -36
- data/ext/cargo-vendor/error-stack-0.5.0/src/context.rs +0 -132
- data/ext/cargo-vendor/error-stack-0.5.0/src/error.rs +0 -47
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/charset.rs +0 -114
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/color.rs +0 -330
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/config.rs +0 -67
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/hook.rs +0 -545
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/location.rs +0 -33
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/mod.rs +0 -1177
- data/ext/cargo-vendor/error-stack-0.5.0/src/frame/frame_impl.rs +0 -262
- data/ext/cargo-vendor/error-stack-0.5.0/src/frame/kind.rs +0 -37
- data/ext/cargo-vendor/error-stack-0.5.0/src/frame/mod.rs +0 -122
- data/ext/cargo-vendor/error-stack-0.5.0/src/future.rs +0 -307
- data/ext/cargo-vendor/error-stack-0.5.0/src/hook/context.rs +0 -365
- data/ext/cargo-vendor/error-stack-0.5.0/src/hook/mod.rs +0 -239
- data/ext/cargo-vendor/error-stack-0.5.0/src/iter.rs +0 -269
- data/ext/cargo-vendor/error-stack-0.5.0/src/lib.rs +0 -545
- data/ext/cargo-vendor/error-stack-0.5.0/src/macros.rs +0 -253
- data/ext/cargo-vendor/error-stack-0.5.0/src/report.rs +0 -740
- data/ext/cargo-vendor/error-stack-0.5.0/src/result.rs +0 -267
- data/ext/cargo-vendor/error-stack-0.5.0/src/serde.rs +0 -154
- data/ext/cargo-vendor/error-stack-0.5.0/tests/common.rs +0 -342
- data/ext/cargo-vendor/error-stack-0.5.0/tests/compiletest.rs +0 -7
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__charset_ascii.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__charset_utf8.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__diagnostics_add.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__doc.snap +0 -12
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__emit.snap +0 -16
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__emit_alt.snap +0 -28
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_cast.snap +0 -11
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_decrement.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_emit.snap +0 -16
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_increment.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_storage.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__preference_color.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__preference_emphasis.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__preference_none.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt_doc_alt.snap +0 -15
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/hook__debug_hook.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/hook__debug_hook_provide.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/lib__suggestion.snap +0 -13
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/report_debug__doc.snap +0 -14
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__complex.snap +0 -49
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__hook_location.snap +0 -15
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__linear.snap +0 -27
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__linear_ext.snap +0 -27
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__multiline_context.snap +0 -25
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__sources.snap +0 -48
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__sources_transparent.snap +0 -50
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested.snap +0 -78
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested@backtrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested@spantrace-backtrace.snap +0 -128
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested@spantrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested_alternate.snap +0 -78
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested_alternate@backtrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested_alternate@spantrace-backtrace.snap +0 -128
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested_alternate@spantrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__attachment.snap +0 -13
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__context.snap +0 -19
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__multiple_sources.snap +0 -30
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__multiple_sources_at_root.snap +0 -20
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_attach.rs +0 -68
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_attach_printable.rs +0 -74
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_backtrace.rs +0 -62
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_change_context.rs +0 -68
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_compatibility.rs +0 -233
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_conversion.rs +0 -112
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_debug.rs +0 -628
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_display.rs +0 -32
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_downcast.rs +0 -41
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_extend.rs +0 -78
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_frame.rs +0 -126
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_iter.rs +0 -99
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_macros.rs +0 -94
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_provision.rs +0 -51
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_serialize.rs +0 -70
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_span_trace.rs +0 -92
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/macro_invalid_args.rs +0 -60
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/macro_invalid_args.stderr +0 -101
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/must_use.rs +0 -20
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/must_use.stderr +0 -15
- data/ext/cargo-vendor/getrandom-0.2.16/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/getrandom-0.2.16/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/getrandom-0.2.16/CHANGELOG.md +0 -498
- data/ext/cargo-vendor/getrandom-0.2.16/Cargo.lock +0 -354
- data/ext/cargo-vendor/getrandom-0.2.16/Cargo.toml +0 -121
- data/ext/cargo-vendor/getrandom-0.2.16/Cargo.toml.orig +0 -67
- data/ext/cargo-vendor/getrandom-0.2.16/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/getrandom-0.2.16/LICENSE-MIT +0 -26
- data/ext/cargo-vendor/getrandom-0.2.16/README.md +0 -81
- data/ext/cargo-vendor/getrandom-0.2.16/SECURITY.md +0 -13
- data/ext/cargo-vendor/getrandom-0.2.16/benches/buffer.rs +0 -71
- data/ext/cargo-vendor/getrandom-0.2.16/src/apple-other.rs +0 -24
- data/ext/cargo-vendor/getrandom-0.2.16/src/custom.rs +0 -105
- data/ext/cargo-vendor/getrandom-0.2.16/src/error.rs +0 -189
- data/ext/cargo-vendor/getrandom-0.2.16/src/error_impls.rs +0 -15
- data/ext/cargo-vendor/getrandom-0.2.16/src/espidf.rs +0 -18
- data/ext/cargo-vendor/getrandom-0.2.16/src/fuchsia.rs +0 -13
- data/ext/cargo-vendor/getrandom-0.2.16/src/getentropy.rs +0 -21
- data/ext/cargo-vendor/getrandom-0.2.16/src/getrandom.rs +0 -25
- data/ext/cargo-vendor/getrandom-0.2.16/src/hermit.rs +0 -29
- data/ext/cargo-vendor/getrandom-0.2.16/src/js.rs +0 -155
- data/ext/cargo-vendor/getrandom-0.2.16/src/lazy.rs +0 -56
- data/ext/cargo-vendor/getrandom-0.2.16/src/lib.rs +0 -407
- data/ext/cargo-vendor/getrandom-0.2.16/src/linux_android.rs +0 -7
- data/ext/cargo-vendor/getrandom-0.2.16/src/linux_android_with_fallback.rs +0 -33
- data/ext/cargo-vendor/getrandom-0.2.16/src/netbsd.rs +0 -46
- data/ext/cargo-vendor/getrandom-0.2.16/src/rdrand.rs +0 -121
- data/ext/cargo-vendor/getrandom-0.2.16/src/solaris.rs +0 -34
- data/ext/cargo-vendor/getrandom-0.2.16/src/solid.rs +0 -18
- data/ext/cargo-vendor/getrandom-0.2.16/src/use_file.rs +0 -120
- data/ext/cargo-vendor/getrandom-0.2.16/src/util.rs +0 -35
- data/ext/cargo-vendor/getrandom-0.2.16/src/util_libc.rs +0 -162
- data/ext/cargo-vendor/getrandom-0.2.16/src/vxworks.rs +0 -29
- data/ext/cargo-vendor/getrandom-0.2.16/src/wasi.rs +0 -17
- data/ext/cargo-vendor/getrandom-0.2.16/src/windows.rs +0 -59
- data/ext/cargo-vendor/getrandom-0.2.16/tests/common/mod.rs +0 -100
- data/ext/cargo-vendor/getrandom-0.2.16/tests/custom.rs +0 -54
- data/ext/cargo-vendor/getrandom-0.2.16/tests/normal.rs +0 -11
- data/ext/cargo-vendor/getrandom-0.2.16/tests/rdrand.rs +0 -22
- data/ext/cargo-vendor/hashbrown-0.12.3/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/hashbrown-0.12.3/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/hashbrown-0.12.3/CHANGELOG.md +0 -402
- data/ext/cargo-vendor/hashbrown-0.12.3/Cargo.toml +0 -113
- data/ext/cargo-vendor/hashbrown-0.12.3/Cargo.toml.orig +0 -60
- data/ext/cargo-vendor/hashbrown-0.12.3/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/hashbrown-0.12.3/LICENSE-MIT +0 -25
- data/ext/cargo-vendor/hashbrown-0.12.3/README.md +0 -126
- data/ext/cargo-vendor/hashbrown-0.12.3/benches/bench.rs +0 -331
- data/ext/cargo-vendor/hashbrown-0.12.3/benches/insert_unique_unchecked.rs +0 -32
- data/ext/cargo-vendor/hashbrown-0.12.3/clippy.toml +0 -1
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/mod.rs +0 -4
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/helpers.rs +0 -27
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/map.rs +0 -734
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/mod.rs +0 -4
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/raw.rs +0 -231
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/set.rs +0 -659
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/serde.rs +0 -201
- data/ext/cargo-vendor/hashbrown-0.12.3/src/lib.rs +0 -150
- data/ext/cargo-vendor/hashbrown-0.12.3/src/macros.rs +0 -70
- data/ext/cargo-vendor/hashbrown-0.12.3/src/map.rs +0 -8408
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/alloc.rs +0 -73
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/bitmask.rs +0 -122
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/generic.rs +0 -154
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/mod.rs +0 -2460
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/sse2.rs +0 -146
- data/ext/cargo-vendor/hashbrown-0.12.3/src/rustc_entry.rs +0 -630
- data/ext/cargo-vendor/hashbrown-0.12.3/src/scopeguard.rs +0 -74
- data/ext/cargo-vendor/hashbrown-0.12.3/src/set.rs +0 -2790
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/hasher.rs +0 -65
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/rayon.rs +0 -533
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/serde.rs +0 -65
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/set.rs +0 -34
- data/ext/cargo-vendor/lazycell-1.3.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/lazycell-1.3.0/.cargo_vcs_info.json +0 -5
- data/ext/cargo-vendor/lazycell-1.3.0/CHANGELOG.md +0 -197
- data/ext/cargo-vendor/lazycell-1.3.0/Cargo.toml +0 -34
- data/ext/cargo-vendor/lazycell-1.3.0/Cargo.toml.orig +0 -27
- data/ext/cargo-vendor/lazycell-1.3.0/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/lazycell-1.3.0/LICENSE-MIT +0 -26
- data/ext/cargo-vendor/lazycell-1.3.0/README.md +0 -73
- data/ext/cargo-vendor/lazycell-1.3.0/src/lib.rs +0 -680
- data/ext/cargo-vendor/lazycell-1.3.0/src/serde_impl.rs +0 -86
- data/ext/cargo-vendor/lru-0.7.8/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/lru-0.7.8/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/lru-0.7.8/.github/workflows/main.yml +0 -54
- data/ext/cargo-vendor/lru-0.7.8/CHANGELOG.md +0 -194
- data/ext/cargo-vendor/lru-0.7.8/Cargo.toml +0 -42
- data/ext/cargo-vendor/lru-0.7.8/Cargo.toml.orig +0 -22
- data/ext/cargo-vendor/lru-0.7.8/LICENSE +0 -21
- data/ext/cargo-vendor/lru-0.7.8/README.md +0 -62
- data/ext/cargo-vendor/lru-0.7.8/src/lib.rs +0 -1872
- data/ext/cargo-vendor/rb-sys-0.9.117/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-0.9.117/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-0.9.117/Cargo.lock +0 -393
- data/ext/cargo-vendor/rb-sys-0.9.117/Cargo.toml +0 -70
- data/ext/cargo-vendor/rb-sys-0.9.117/Cargo.toml.orig +0 -57
- data/ext/cargo-vendor/rb-sys-0.9.117/build/main.rs +0 -286
- data/ext/cargo-vendor/rb-sys-0.9.117/build/stable_api_config.rs +0 -155
- data/ext/cargo-vendor/rb-sys-0.9.117/build/version.rs +0 -50
- data/ext/cargo-vendor/rb-sys-0.9.117/src/bindings.rs +0 -21
- data/ext/cargo-vendor/rb-sys-0.9.117/src/macros.rs +0 -371
- data/ext/cargo-vendor/rb-sys-0.9.117/src/memory.rs +0 -53
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/compiled.c +0 -179
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/compiled.rs +0 -257
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_2_6.rs +0 -324
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_2_7.rs +0 -324
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_0.rs +0 -332
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_1.rs +0 -325
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_2.rs +0 -323
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_3.rs +0 -339
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_4.rs +0 -339
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api.rs +0 -261
- data/ext/cargo-vendor/rb-sys-0.9.117/src/utils.rs +0 -89
- data/ext/cargo-vendor/rb-sys-build-0.9.117/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-build-0.9.117/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-build-0.9.117/Cargo.lock +0 -294
- data/ext/cargo-vendor/rb-sys-build-0.9.117/Cargo.toml +0 -71
- data/ext/cargo-vendor/rb-sys-build-0.9.117/Cargo.toml.orig +0 -32
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/bindings/stable_api.rs +0 -206
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/bindings.rs +0 -286
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/cc.rs +0 -421
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/rb_config.rs +0 -863
- data/ext/cargo-vendor/rb-sys-env-0.2.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-env-0.2.2/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-env-0.2.2/Cargo.toml +0 -33
- data/ext/cargo-vendor/rb-sys-env-0.2.2/Cargo.toml.orig +0 -14
- data/ext/cargo-vendor/rb-sys-env-0.2.2/readme.md +0 -119
- data/ext/cargo-vendor/rb-sys-env-0.2.2/src/ruby_version.rs +0 -163
- data/ext/cargo-vendor/rustc-hash-1.1.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rustc-hash-1.1.0/.cargo_vcs_info.json +0 -5
- data/ext/cargo-vendor/rustc-hash-1.1.0/CODE_OF_CONDUCT.md +0 -40
- data/ext/cargo-vendor/rustc-hash-1.1.0/Cargo.toml +0 -25
- data/ext/cargo-vendor/rustc-hash-1.1.0/Cargo.toml.orig +0 -13
- data/ext/cargo-vendor/rustc-hash-1.1.0/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/rustc-hash-1.1.0/README.md +0 -38
- data/ext/cargo-vendor/rustc-hash-1.1.0/src/lib.rs +0 -148
- data/ext/cargo-vendor/serde-1.0.228/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde-1.0.228/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde-1.0.228/Cargo.lock +0 -66
- data/ext/cargo-vendor/serde-1.0.228/Cargo.toml +0 -84
- data/ext/cargo-vendor/serde-1.0.228/Cargo.toml.orig +0 -62
- data/ext/cargo-vendor/serde-1.0.228/README.md +0 -114
- data/ext/cargo-vendor/serde-1.0.228/build.rs +0 -69
- data/ext/cargo-vendor/serde-1.0.228/src/core/de/impls.rs +0 -3173
- data/ext/cargo-vendor/serde-1.0.228/src/core/lib.rs +0 -121
- data/ext/cargo-vendor/serde-1.0.228/src/lib.rs +0 -285
- data/ext/cargo-vendor/serde_core-1.0.228/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_core-1.0.228/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_core-1.0.228/Cargo.lock +0 -63
- data/ext/cargo-vendor/serde_core-1.0.228/Cargo.toml +0 -87
- data/ext/cargo-vendor/serde_core-1.0.228/Cargo.toml.orig +0 -70
- data/ext/cargo-vendor/serde_core-1.0.228/build.rs +0 -113
- data/ext/cargo-vendor/serde_core-1.0.228/src/de/impls.rs +0 -3173
- data/ext/cargo-vendor/serde_core-1.0.228/src/lib.rs +0 -121
- data/ext/cargo-vendor/serde_derive-1.0.228/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_derive-1.0.228/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_derive-1.0.228/Cargo.lock +0 -77
- data/ext/cargo-vendor/serde_derive-1.0.228/Cargo.toml +0 -87
- data/ext/cargo-vendor/serde_derive-1.0.228/Cargo.toml.orig +0 -42
- data/ext/cargo-vendor/serde_derive-1.0.228/README.md +0 -114
- data/ext/cargo-vendor/serde_derive-1.0.228/src/bound.rs +0 -410
- data/ext/cargo-vendor/serde_derive-1.0.228/src/de/enum_adjacently.rs +0 -323
- data/ext/cargo-vendor/serde_derive-1.0.228/src/de/enum_externally.rs +0 -212
- data/ext/cargo-vendor/serde_derive-1.0.228/src/de.rs +0 -973
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/ast.rs +0 -218
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/attr.rs +0 -1831
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/ctxt.rs +0 -68
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/receiver.rs +0 -293
- data/ext/cargo-vendor/serde_derive-1.0.228/src/lib.rs +0 -127
- data/ext/cargo-vendor/serde_derive-1.0.228/src/pretend.rs +0 -188
- data/ext/cargo-vendor/serde_derive-1.0.228/src/ser.rs +0 -1369
- data/ext/cargo-vendor/serde_magnus-0.10.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_magnus-0.10.0/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_magnus-0.10.0/Cargo.lock +0 -387
- data/ext/cargo-vendor/serde_magnus-0.10.0/Cargo.toml +0 -162
- data/ext/cargo-vendor/serde_magnus-0.10.0/Cargo.toml.orig +0 -28
- data/ext/cargo-vendor/serde_magnus-0.10.0/README.md +0 -121
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/de/deserializer.rs +0 -185
- data/ext/cargo-vendor/version_check-0.9.5/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/version_check-0.9.5/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/version_check-0.9.5/.github/workflows/ci.yml +0 -42
- data/ext/cargo-vendor/version_check-0.9.5/.travis.yml +0 -6
- data/ext/cargo-vendor/version_check-0.9.5/Cargo.toml +0 -38
- data/ext/cargo-vendor/version_check-0.9.5/Cargo.toml.orig +0 -13
- data/ext/cargo-vendor/version_check-0.9.5/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/version_check-0.9.5/LICENSE-MIT +0 -19
- data/ext/cargo-vendor/version_check-0.9.5/README.md +0 -80
- data/ext/cargo-vendor/version_check-0.9.5/src/channel.rs +0 -195
- data/ext/cargo-vendor/version_check-0.9.5/src/date.rs +0 -203
- data/ext/cargo-vendor/version_check-0.9.5/src/lib.rs +0 -528
- data/ext/cargo-vendor/version_check-0.9.5/src/version.rs +0 -316
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.github/workflows/main.yml +0 -44
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.gitmodules +0 -3
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/CODE_OF_CONDUCT.md +0 -49
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/CONTRIBUTING.md +0 -8
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/Cargo.lock +0 -23
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/Cargo.toml +0 -59
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/Cargo.toml.orig +0 -29
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-Apache-2.0_WITH_LLVM-exception +0 -220
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-MIT +0 -23
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/ORG_CODE_OF_CONDUCT.md +0 -143
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/README.md +0 -94
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/SECURITY.md +0 -29
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/src/lib.rs +0 -47
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/src/lib_generated.rs +0 -2366
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/codegen/postprocessing/mod.rs +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/ir/mod.rs +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/options/helpers.rs +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/parse.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.github/workflows/dotslash-config.json +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.rustfmt.toml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.rusty-hook.toml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/AGENTS.md +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/CLAUDE.md +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/README.md +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/dev/run_benchmarks_for_file.sh +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/dev/run_benchmarks_for_gv.sh +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/common_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/config.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/crosscheck.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/codeowners_file_parser.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/codeowners_query.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/file_generator.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/file_owner_finder.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/annotated_file_mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/directory_mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/escaper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/package_mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/team_gem_mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/team_glob_mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/team_yml_mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/path_utils.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/tracked_files.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/cache_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/codeowners_path_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/crosscheck_owners_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/config/teams/test_team.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/ruby/app/models/test.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/app/foo.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/config/teams/foo.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/config/teams/payments.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/ruby/app/payments/foo.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/app/bar.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/config/teams/bar.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3/tests/fixtures/multiple-directory-owners/app/services → codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_name}/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3/tests/fixtures/multiple-directory-owners → codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team}/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3/tests/fixtures/multiple-directory-owners → codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team}/config/teams/foo.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/config/teams/payments.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/config/teams/payroll.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/gems/payroll_calculator/calculator.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/models/bank_account.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/models/blockchain.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/models/payroll.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/payments/nacha.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/services/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/services/multi_owned.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/unowned.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/packages/payroll_flow/package.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/.keep +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/config/teams/design.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/config/teams/frontend.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/apps/public/index.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/dashboard/package.json +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/dashboard/src/index.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/ui-kit/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/ui-kit/src/button.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/config/teams/bad_team.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/config/teams/good.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/gems/pets/dog.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/.github/CODEOWNERS +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/consumers/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/consumers/deep/nesting/nestdir/deep_file.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/consumers/one_owner.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/services/exciting/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/services/exciting/some_other_file.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/config/teams/bar.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/.ignore +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/teams/payments.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/teams/payroll.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/teams/ux.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/gems/payroll_calculator/calculator.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/gems/pets/dog.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/PayrollFlow/index.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/PayrollFlow/package.json +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/(special)/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/(special)/pay.ts +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/item.ts +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/list/page-admin.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/models/bank_account.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/models/payroll.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payments/foo/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payments/foo/ownedby_payroll.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payments/nacha.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payroll/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payroll/payroll.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/views/foos/edit.erb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/views/foos/index.html.erb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/views/foos/new.html.erb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/ignored_files/git_ignored.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/packages/payroll_flow/package.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/should_be_ignored/an_ignored_file.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/code_ownership.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/brewers.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/cubs.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/giants.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/rockies.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/datepicker/package.json +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/datepicker/src/picks/dp.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/list/package.json +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/list/src/item.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/textfield/package.json +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/textfield/src/field.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/textfield/src/fields/small.tsx +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/apollo/lib/apollo.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/ivy/lib/ivy.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/lager/lib/lager.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/summit/lib/summit.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/games/app/services/stats.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/games/package.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/locations/app/services/capacity.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/locations/package.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/schedule/app/services/date.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/schedule/package.yml +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/brewers/lib/util.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/brewers/services/play.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/models/.codeowner +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/models/db/price.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/models/entertainment.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/play.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/giants/services/play.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/rockies/services/play.rb +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/git_stage_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/invalid_project_structure_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/missing_github_team_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/multiple_directory_owners_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/run_config_executable_override_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/runner_api.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/untracked_files_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/valid_project_with_overrides_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/validate_files_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tmp/.gitkeep +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/LICENSE-APACHE.md +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/LICENSE-MIT.md +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/LICENSE.md +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/override.rs +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/hook__location_hook.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/report_display__doc.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/report_display_alt__doc.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__alt.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__charset_ascii.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__color_mode_color.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__color_mode_emphasis.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_context.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_decr.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_for_context.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_incr.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_multiple.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_provider.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__multiline.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__norm.snap +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/bin/release.sh +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/build/features.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/readme.md +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/hidden.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/ruby_abi_version.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/special_consts.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/symbol.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/tracking_allocator.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/value_type.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/bindings/sanitizer.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/bindings/wrapper.h +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/rb_config/flags.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/rb_config/library.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/rb_config/search_path.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/utils.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/build.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/defines.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/rb_env.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/utils.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rustc-hash-1.1.0 → serde-1.0.229}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/crates-io.md +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/crate_root.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/de/ignored_any.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/de/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/de/value.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/format.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/macros.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/content.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/doc.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/seed.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/size_hint.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/string.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/fmt.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/impls.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/impossible.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/std_error.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/integer128.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/private/de.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/private/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/private/ser.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde_core-1.0.229}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/README.md +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/crate_root.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/de/ignored_any.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/de/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/de/value.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/format.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/macros.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/content.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/doc.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/seed.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/size_hint.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/string.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/fmt.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/impls.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/impossible.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/std_error.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_derive-1.0.229}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/crates-io.md +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/enum_.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/enum_internally.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/enum_untagged.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/identifier.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/struct_.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/tuple.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/unit.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/deprecated.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/dummy.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/fragment.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/case.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/check.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/name.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/respan.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/symbol.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/this.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/array_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/array_enumerator.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/enum_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/hash_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/variant_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/enums.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/map_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/seq_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/struct_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/struct_variant_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/tuple_variant_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_arrays.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_booleans.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_enums.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_floats.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_integers.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_maps.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_options.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_results.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_strings.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_structs.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_tuples.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_vecs.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_arrays.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_booleans.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_enums.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_floats.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_integers.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_maps.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_options.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_results.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_strings.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_structs.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_tuples.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_vecs.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → syn-3.0.9}/LICENSE-MIT +0 -0
|
@@ -0,0 +1,1132 @@
|
|
|
1
|
+
//! [![github]](https://github.com/dtolnay/syn) [![crates-io]](https://crates.io/crates/syn) [![docs-rs]](crate)
|
|
2
|
+
//!
|
|
3
|
+
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
|
|
4
|
+
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
|
|
5
|
+
//! [docs-rs]: https://img.shields.io/badge/docs.rs-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs
|
|
6
|
+
//!
|
|
7
|
+
//! <br>
|
|
8
|
+
//!
|
|
9
|
+
//! Syn is a parsing library for parsing a stream of Rust tokens into a syntax
|
|
10
|
+
//! tree of Rust source code.
|
|
11
|
+
//!
|
|
12
|
+
//! Currently this library is geared toward use in Rust procedural macros, but
|
|
13
|
+
//! contains some APIs that may be useful more generally.
|
|
14
|
+
//!
|
|
15
|
+
//! - **Data structures** — Syn provides a syntax tree that can represent most
|
|
16
|
+
//! stable Rust source code and some unstable syntax. The syntax tree is
|
|
17
|
+
//! rooted at [`syn::File`] which represents a full source file, but there are
|
|
18
|
+
//! other entry points that may be useful to procedural macros including
|
|
19
|
+
//! [`syn::Item`], [`syn::Expr`] and [`syn::Type`].
|
|
20
|
+
//!
|
|
21
|
+
//! - **Derives** — Of particular interest to derive macros is
|
|
22
|
+
//! [`syn::DeriveInput`] which is any of the three legal input items to a
|
|
23
|
+
//! derive macro. An example below shows using this type in a library that can
|
|
24
|
+
//! derive implementations of a user-defined trait.
|
|
25
|
+
//!
|
|
26
|
+
//! - **Parsing** — Parsing in Syn is built around [parser functions] with the
|
|
27
|
+
//! signature `fn(ParseStream) -> Result<T>`. Every syntax tree node defined
|
|
28
|
+
//! by Syn is individually parsable and may be used as a building block for
|
|
29
|
+
//! custom syntaxes, or you may dream up your own brand new syntax without
|
|
30
|
+
//! involving any of our syntax tree types.
|
|
31
|
+
//!
|
|
32
|
+
//! - **Location information** — Every token parsed by Syn is associated with a
|
|
33
|
+
//! `Span` that tracks line and column information back to the source of that
|
|
34
|
+
//! token. These spans allow a procedural macro to display detailed error
|
|
35
|
+
//! messages pointing to all the right places in the user's code. There is an
|
|
36
|
+
//! example of this below.
|
|
37
|
+
//!
|
|
38
|
+
//! - **Feature flags** — Functionality is aggressively feature gated so your
|
|
39
|
+
//! procedural macros enable only what they need, and do not pay in compile
|
|
40
|
+
//! time for all the rest.
|
|
41
|
+
//!
|
|
42
|
+
//! [`syn::File`]: File
|
|
43
|
+
//! [`syn::Item`]: Item
|
|
44
|
+
//! [`syn::Expr`]: Expr
|
|
45
|
+
//! [`syn::Type`]: Type
|
|
46
|
+
//! [`syn::DeriveInput`]: DeriveInput
|
|
47
|
+
//! [parser functions]: mod@parse
|
|
48
|
+
//!
|
|
49
|
+
//! <br>
|
|
50
|
+
//!
|
|
51
|
+
//! # Example of a derive macro
|
|
52
|
+
//!
|
|
53
|
+
//! The canonical derive macro using Syn looks like this. We write an ordinary
|
|
54
|
+
//! Rust function tagged with a `proc_macro_derive` attribute and the name of
|
|
55
|
+
//! the trait we are deriving. Any time that derive appears in the user's code,
|
|
56
|
+
//! the Rust compiler passes their data structure as tokens into our macro. We
|
|
57
|
+
//! get to execute arbitrary Rust code to figure out what to do with those
|
|
58
|
+
//! tokens, then hand some tokens back to the compiler to compile into the
|
|
59
|
+
//! user's crate.
|
|
60
|
+
//!
|
|
61
|
+
//! [`TokenStream`]: proc_macro::TokenStream
|
|
62
|
+
//!
|
|
63
|
+
//! ```toml
|
|
64
|
+
//! # Cargo.toml
|
|
65
|
+
//! [package]
|
|
66
|
+
//! ...
|
|
67
|
+
//!
|
|
68
|
+
//! [lib]
|
|
69
|
+
//! proc-macro = true
|
|
70
|
+
//!
|
|
71
|
+
//! [dependencies]
|
|
72
|
+
//! syn = "3"
|
|
73
|
+
//! quote = "1"
|
|
74
|
+
//! ```
|
|
75
|
+
//!
|
|
76
|
+
//! ```
|
|
77
|
+
//! # extern crate proc_macro;
|
|
78
|
+
//! #
|
|
79
|
+
//! use proc_macro::TokenStream;
|
|
80
|
+
//! use quote::quote;
|
|
81
|
+
//! use syn::{parse_macro_input, DeriveInput};
|
|
82
|
+
//!
|
|
83
|
+
//! # const IGNORE_TOKENS: &str = stringify! {
|
|
84
|
+
//! #[proc_macro_derive(MyMacro)]
|
|
85
|
+
//! # };
|
|
86
|
+
//! pub fn my_macro(input: TokenStream) -> TokenStream {
|
|
87
|
+
//! // Parse the input tokens into a syntax tree
|
|
88
|
+
//! let input = parse_macro_input!(input as DeriveInput);
|
|
89
|
+
//!
|
|
90
|
+
//! // Build the output, possibly using quasi-quotation
|
|
91
|
+
//! let expanded = quote! {
|
|
92
|
+
//! // ...
|
|
93
|
+
//! };
|
|
94
|
+
//!
|
|
95
|
+
//! // Hand the output tokens back to the compiler
|
|
96
|
+
//! TokenStream::from(expanded)
|
|
97
|
+
//! }
|
|
98
|
+
//! ```
|
|
99
|
+
//!
|
|
100
|
+
//! The [`heapsize`] example directory shows a complete working implementation
|
|
101
|
+
//! of a derive macro. The example derives a `HeapSize` trait which computes an
|
|
102
|
+
//! estimate of the amount of heap memory owned by a value.
|
|
103
|
+
//!
|
|
104
|
+
//! [`heapsize`]: https://github.com/dtolnay/syn/tree/master/examples/heapsize
|
|
105
|
+
//!
|
|
106
|
+
//! ```
|
|
107
|
+
//! pub trait HeapSize {
|
|
108
|
+
//! /// Total number of bytes of heap memory owned by `self`.
|
|
109
|
+
//! fn heap_size_of_children(&self) -> usize;
|
|
110
|
+
//! }
|
|
111
|
+
//! ```
|
|
112
|
+
//!
|
|
113
|
+
//! The derive macro allows users to write `#[derive(HeapSize)]` on data
|
|
114
|
+
//! structures in their program.
|
|
115
|
+
//!
|
|
116
|
+
//! ```
|
|
117
|
+
//! # const IGNORE_TOKENS: &str = stringify! {
|
|
118
|
+
//! #[derive(HeapSize)]
|
|
119
|
+
//! # };
|
|
120
|
+
//! struct Demo<'a, T: ?Sized> {
|
|
121
|
+
//! a: Box<T>,
|
|
122
|
+
//! b: u8,
|
|
123
|
+
//! c: &'a str,
|
|
124
|
+
//! d: String,
|
|
125
|
+
//! }
|
|
126
|
+
//! ```
|
|
127
|
+
//!
|
|
128
|
+
//! <p><br></p>
|
|
129
|
+
//!
|
|
130
|
+
//! # Spans and error reporting
|
|
131
|
+
//!
|
|
132
|
+
//! The token-based procedural macro API provides great control over where the
|
|
133
|
+
//! compiler's error messages are displayed in user code. Consider the error the
|
|
134
|
+
//! user sees if one of their field types does not implement `HeapSize`.
|
|
135
|
+
//!
|
|
136
|
+
//! ```
|
|
137
|
+
//! # const IGNORE_TOKENS: &str = stringify! {
|
|
138
|
+
//! #[derive(HeapSize)]
|
|
139
|
+
//! # };
|
|
140
|
+
//! struct Broken {
|
|
141
|
+
//! ok: String,
|
|
142
|
+
//! bad: std::thread::Thread,
|
|
143
|
+
//! }
|
|
144
|
+
//! ```
|
|
145
|
+
//!
|
|
146
|
+
//! By tracking span information all the way through the expansion of a
|
|
147
|
+
//! procedural macro as shown in the `heapsize` example, token-based macros in
|
|
148
|
+
//! Syn are able to trigger errors that directly pinpoint the source of the
|
|
149
|
+
//! problem.
|
|
150
|
+
//!
|
|
151
|
+
//! ```text
|
|
152
|
+
//! error[E0277]: the trait bound `Thread: HeapSize` is not satisfied
|
|
153
|
+
//! --> src/main.rs:9:5
|
|
154
|
+
//! |
|
|
155
|
+
//! 3 | #[derive(HeapSize)]
|
|
156
|
+
//! | -------- required by a bound introduced by this call
|
|
157
|
+
//! ...
|
|
158
|
+
//! 9 | bad: std::thread::Thread,
|
|
159
|
+
//! | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `HeapSize` is not implemented for `Thread`
|
|
160
|
+
//! |
|
|
161
|
+
//! = help: the following other types implement trait `HeapSize`:
|
|
162
|
+
//! &'a T
|
|
163
|
+
//! Box<T>
|
|
164
|
+
//! Demo<'a, T>
|
|
165
|
+
//! String
|
|
166
|
+
//! [T]
|
|
167
|
+
//! u8
|
|
168
|
+
//! ```
|
|
169
|
+
//!
|
|
170
|
+
//! <br>
|
|
171
|
+
//!
|
|
172
|
+
//! # Parsing a custom syntax
|
|
173
|
+
//!
|
|
174
|
+
//! The [`lazy-static`] example directory shows the implementation of a
|
|
175
|
+
//! `functionlike!(...)` procedural macro in which the input tokens are parsed
|
|
176
|
+
//! using Syn's parsing API.
|
|
177
|
+
//!
|
|
178
|
+
//! [`lazy-static`]: https://github.com/dtolnay/syn/tree/master/examples/lazy-static
|
|
179
|
+
//!
|
|
180
|
+
//! The example reimplements the popular `lazy_static` crate from crates.io as a
|
|
181
|
+
//! procedural macro.
|
|
182
|
+
//!
|
|
183
|
+
//! ```
|
|
184
|
+
//! # macro_rules! lazy_static {
|
|
185
|
+
//! # ($($tt:tt)*) => {}
|
|
186
|
+
//! # }
|
|
187
|
+
//! #
|
|
188
|
+
//! lazy_static! {
|
|
189
|
+
//! static ref USERNAME: Regex = Regex::new("^[a-z0-9_-]{3,16}$").unwrap();
|
|
190
|
+
//! }
|
|
191
|
+
//! ```
|
|
192
|
+
//!
|
|
193
|
+
//! The implementation shows how to trigger custom warnings and error messages
|
|
194
|
+
//! on the macro input.
|
|
195
|
+
//!
|
|
196
|
+
//! ```text
|
|
197
|
+
//! warning: come on, pick a more creative name
|
|
198
|
+
//! --> src/main.rs:10:16
|
|
199
|
+
//! |
|
|
200
|
+
//! 10 | static ref FOO: String = "lazy_static".to_owned();
|
|
201
|
+
//! | ^^^
|
|
202
|
+
//! ```
|
|
203
|
+
//!
|
|
204
|
+
//! <br>
|
|
205
|
+
//!
|
|
206
|
+
//! # Testing
|
|
207
|
+
//!
|
|
208
|
+
//! When testing macros, we often care not just that the macro can be used
|
|
209
|
+
//! successfully but also that when the macro is provided with invalid input it
|
|
210
|
+
//! produces maximally helpful error messages. Consider using the [`trybuild`]
|
|
211
|
+
//! crate to write tests for errors that are emitted by your macro or errors
|
|
212
|
+
//! detected by the Rust compiler in the expanded code following misuse of the
|
|
213
|
+
//! macro. Such tests help avoid regressions from later refactors that
|
|
214
|
+
//! mistakenly make an error no longer trigger or be less helpful than it used
|
|
215
|
+
//! to be.
|
|
216
|
+
//!
|
|
217
|
+
//! [`trybuild`]: https://github.com/dtolnay/trybuild
|
|
218
|
+
//!
|
|
219
|
+
//! <br>
|
|
220
|
+
//!
|
|
221
|
+
//! # Debugging
|
|
222
|
+
//!
|
|
223
|
+
//! When developing a procedural macro it can be helpful to look at what the
|
|
224
|
+
//! generated code looks like. Use `cargo rustc -- -Zunstable-options
|
|
225
|
+
//! -Zunpretty=expanded` or the [`cargo expand`] subcommand.
|
|
226
|
+
//!
|
|
227
|
+
//! [`cargo expand`]: https://github.com/dtolnay/cargo-expand
|
|
228
|
+
//!
|
|
229
|
+
//! To show the expanded code for some crate that uses your procedural macro,
|
|
230
|
+
//! run `cargo expand` from that crate. To show the expanded code for one of
|
|
231
|
+
//! your own test cases, run `cargo expand --test the_test_case` where the last
|
|
232
|
+
//! argument is the name of the test file without the `.rs` extension.
|
|
233
|
+
//!
|
|
234
|
+
//! This write-up by Brandon W Maister discusses debugging in more detail:
|
|
235
|
+
//! [Debugging Rust's new Custom Derive system][debugging].
|
|
236
|
+
//!
|
|
237
|
+
//! [debugging]: https://quodlibetor.github.io/posts/debugging-rusts-new-custom-derive-system/
|
|
238
|
+
//!
|
|
239
|
+
//! <br>
|
|
240
|
+
//!
|
|
241
|
+
//! # Optional features
|
|
242
|
+
//!
|
|
243
|
+
//! Syn puts a lot of functionality behind optional features in order to
|
|
244
|
+
//! optimize compile time for the most common use cases. The following features
|
|
245
|
+
//! are available.
|
|
246
|
+
//!
|
|
247
|
+
//! - **`derive`** *(enabled by default)* — Data structures for representing the
|
|
248
|
+
//! possible input to a derive macro, including structs and enums and types.
|
|
249
|
+
//! - **`full`** — Data structures for representing the syntax tree of all valid
|
|
250
|
+
//! Rust source code, including items and expressions.
|
|
251
|
+
//! - **`parsing`** *(enabled by default)* — Ability to parse input tokens into
|
|
252
|
+
//! a syntax tree node of a chosen type.
|
|
253
|
+
//! - **`printing`** *(enabled by default)* — Ability to print a syntax tree
|
|
254
|
+
//! node as tokens of Rust source code.
|
|
255
|
+
//! - **`visit`** — Trait for traversing a syntax tree.
|
|
256
|
+
//! - **`visit-mut`** — Trait for traversing and mutating in place a syntax
|
|
257
|
+
//! tree.
|
|
258
|
+
//! - **`fold`** — Trait for transforming an owned syntax tree.
|
|
259
|
+
//! - **`clone-impls`** *(enabled by default)* — Clone impls for all syntax tree
|
|
260
|
+
//! types.
|
|
261
|
+
//! - **`extra-traits`** — Debug, Eq, PartialEq, Hash impls for all syntax tree
|
|
262
|
+
//! types.
|
|
263
|
+
//! - **`proc-macro`** *(enabled by default)* — Runtime dependency on the
|
|
264
|
+
//! dynamic library libproc_macro from rustc toolchain.
|
|
265
|
+
//!
|
|
266
|
+
//! <br>
|
|
267
|
+
//!
|
|
268
|
+
//! # Compatibility notes
|
|
269
|
+
//!
|
|
270
|
+
//! Syn is able to accommodate most kinds of Rust grammar changes without a new
|
|
271
|
+
//! major release through the following mechanisms.
|
|
272
|
+
//!
|
|
273
|
+
//! #### Modifiers
|
|
274
|
+
//!
|
|
275
|
+
//! Syntax tree structs which are expected to grow over the course of future
|
|
276
|
+
//! releases of the Rust language, such as [`ItemTrait`], contain a `modifiers`
|
|
277
|
+
//! field of one of several "Modifiers" types, in that case [`TraitModifiers`].
|
|
278
|
+
//!
|
|
279
|
+
//! All modifiers structs have the following commonalities:
|
|
280
|
+
//!
|
|
281
|
+
//! - Type name ending with "Modifiers".
|
|
282
|
+
//!
|
|
283
|
+
//! - Implements [`Default`]. The default value is guaranteed to comprise no
|
|
284
|
+
//! tokens.
|
|
285
|
+
//!
|
|
286
|
+
//! - Non-exhaustive. Can only be instantiated by Syn's parser or by creating
|
|
287
|
+
//! and then mutating an empty default value.
|
|
288
|
+
//!
|
|
289
|
+
//! - Does not implement [`Parse`][parse::Parse]. When parsing, they are parsed
|
|
290
|
+
//! by the enclosing syntax tree node.
|
|
291
|
+
//!
|
|
292
|
+
//! - Does not implement [`ToTokens`][quote::ToTokens]. In some cases the syntax
|
|
293
|
+
//! that might be held in modifiers in the future is not necessarily
|
|
294
|
+
//! contiguous tokens.
|
|
295
|
+
//!
|
|
296
|
+
//! - Provides `.require_empty() -> Result<()>` which returns a meaningfully
|
|
297
|
+
//! spanned error if the modifiers are different from the empty default. This
|
|
298
|
+
//! enables a caller to reject syntax it does not recognize without knowing
|
|
299
|
+
//! what that syntax may be.
|
|
300
|
+
//!
|
|
301
|
+
//! Across major versions, fields may be promoted out of a "Modifiers" struct
|
|
302
|
+
//! into the enclosing syntax tree node(s), typically for syntax that has
|
|
303
|
+
//! already been incorporated into a stable release of Rust or is deemed
|
|
304
|
+
//! sufficiently on track for stabilization.
|
|
305
|
+
//!
|
|
306
|
+
//! #### Verbatim variants
|
|
307
|
+
//!
|
|
308
|
+
//! Syntax tree enums which are expected to grow over the course of future
|
|
309
|
+
//! releases of the Rust language are declared non-exhaustive and may contain a
|
|
310
|
+
//! variant named `Verbatim` that holds [`TokenStream`]. For example
|
|
311
|
+
//! [`Expr::Verbatim`].
|
|
312
|
+
//!
|
|
313
|
+
//! Unstable language syntax for which a dedicated syntax tree node does not yet
|
|
314
|
+
//! exist will get parsed to `Verbatim`, thus allowing unstable syntax to
|
|
315
|
+
//! round-trip through parsing and printing of a syntax tree. For example you
|
|
316
|
+
//! might parse token input to [`ItemTrait`] (a trait definition) in order to
|
|
317
|
+
//! read or modify its method signatures, or insert associated types, or insert
|
|
318
|
+
//! default function bodies. All of this would work even if there is some
|
|
319
|
+
//! `Expr::Verbatim` syntax somewhere in one of the function bodies in the macro
|
|
320
|
+
//! input.
|
|
321
|
+
//!
|
|
322
|
+
//! Verbatim variants are not intended to be constructed other than by Syn's
|
|
323
|
+
//! parser. Do not rely on passing one containing arbitrary tokens through Syn's
|
|
324
|
+
//! `ToTokens` implementations or through any other library, as it may panic or
|
|
325
|
+
//! otherwise misbehave, such as failing to accurately parenthesize
|
|
326
|
+
//! subexpressions to preserve precedence.
|
|
327
|
+
//!
|
|
328
|
+
//! It is important not to write code that expects Syn's parser to continue to
|
|
329
|
+
//! produce `Verbatim` when parsing some particular syntax construct, as that
|
|
330
|
+
//! behavior changes across patch releases of Syn. Patch releases can promote
|
|
331
|
+
//! something that used to be parsed as `Verbatim` into a new dedicated syntax
|
|
332
|
+
//! tree node. Verbatim variants are specifically only for round-tripping code
|
|
333
|
+
//! not acted on by the caller.
|
|
334
|
+
//!
|
|
335
|
+
//! #### Non-exhaustive enums
|
|
336
|
+
//!
|
|
337
|
+
//! Some enums in the syntax tree are declared #\[non_exhaustive\] and cannot
|
|
338
|
+
//! be pattern-matched using an exhaustive match; a default case (`_ => ...`) is
|
|
339
|
+
//! required. New variants of these enums will be added over time corresponding
|
|
340
|
+
//! to new Rust syntax.
|
|
341
|
+
//!
|
|
342
|
+
//! For testing the exhaustiveness of a match on such an enum in downstream
|
|
343
|
+
//! code, it is recommended to use the following idiom.
|
|
344
|
+
//!
|
|
345
|
+
//! ```
|
|
346
|
+
//! # use syn::Expr;
|
|
347
|
+
//! #
|
|
348
|
+
//! # fn example(expr: Expr) {
|
|
349
|
+
//! match expr {
|
|
350
|
+
//! #![cfg_attr(test, deny(non_exhaustive_omitted_patterns))]
|
|
351
|
+
//!
|
|
352
|
+
//! Expr::Array(expr) => { /*...*/ }
|
|
353
|
+
//! Expr::Assign(expr) => { /*...*/ }
|
|
354
|
+
#![cfg_attr(not(doctest), doc = " ...")]
|
|
355
|
+
//! Expr::Yield(expr) => { /*...*/ }
|
|
356
|
+
//!
|
|
357
|
+
//! _ => { /* some sane fallback */ }
|
|
358
|
+
//! }
|
|
359
|
+
//! # }
|
|
360
|
+
//! ```
|
|
361
|
+
//!
|
|
362
|
+
//! This way you will be notified by a test failure when a variant is added, so
|
|
363
|
+
//! that you can add code to handle it, but your library will continue to
|
|
364
|
+
//! compile and work for downstream users in the interim.
|
|
365
|
+
|
|
366
|
+
#![no_std]
|
|
367
|
+
#![doc(html_root_url = "https://docs.rs/syn/3.0.9")]
|
|
368
|
+
#![cfg_attr(docsrs, feature(doc_cfg), doc(auto_cfg = false))]
|
|
369
|
+
#![deny(unsafe_op_in_unsafe_fn)]
|
|
370
|
+
#![allow(non_camel_case_types)]
|
|
371
|
+
#![cfg_attr(not(check_cfg), allow(unexpected_cfgs))]
|
|
372
|
+
#![allow(
|
|
373
|
+
clippy::bool_to_int_with_if,
|
|
374
|
+
clippy::cast_lossless,
|
|
375
|
+
clippy::cast_possible_truncation,
|
|
376
|
+
clippy::cast_possible_wrap,
|
|
377
|
+
clippy::cast_ptr_alignment,
|
|
378
|
+
clippy::default_trait_access,
|
|
379
|
+
clippy::derivable_impls,
|
|
380
|
+
clippy::diverging_sub_expression,
|
|
381
|
+
clippy::doc_markdown,
|
|
382
|
+
clippy::elidable_lifetime_names,
|
|
383
|
+
clippy::enum_glob_use,
|
|
384
|
+
clippy::expl_impl_clone_on_copy,
|
|
385
|
+
clippy::explicit_auto_deref,
|
|
386
|
+
clippy::fn_params_excessive_bools,
|
|
387
|
+
clippy::if_not_else,
|
|
388
|
+
clippy::inherent_to_string,
|
|
389
|
+
clippy::into_iter_without_iter,
|
|
390
|
+
clippy::items_after_statements,
|
|
391
|
+
clippy::large_enum_variant,
|
|
392
|
+
clippy::let_underscore_untyped, // https://github.com/rust-lang/rust-clippy/issues/10410
|
|
393
|
+
clippy::manual_assert,
|
|
394
|
+
clippy::manual_let_else,
|
|
395
|
+
clippy::manual_map,
|
|
396
|
+
clippy::match_like_matches_macro,
|
|
397
|
+
clippy::match_same_arms,
|
|
398
|
+
clippy::match_wildcard_for_single_variants, // clippy bug: https://github.com/rust-lang/rust-clippy/issues/6984
|
|
399
|
+
clippy::missing_errors_doc,
|
|
400
|
+
clippy::missing_panics_doc,
|
|
401
|
+
clippy::module_name_repetitions,
|
|
402
|
+
clippy::must_use_candidate,
|
|
403
|
+
clippy::needless_doctest_main,
|
|
404
|
+
clippy::needless_lifetimes,
|
|
405
|
+
clippy::needless_pass_by_value,
|
|
406
|
+
clippy::needless_update,
|
|
407
|
+
clippy::never_loop,
|
|
408
|
+
clippy::range_plus_one,
|
|
409
|
+
clippy::redundant_else,
|
|
410
|
+
clippy::ref_option,
|
|
411
|
+
clippy::return_self_not_must_use,
|
|
412
|
+
clippy::similar_names,
|
|
413
|
+
clippy::single_match_else,
|
|
414
|
+
clippy::struct_excessive_bools,
|
|
415
|
+
clippy::too_many_arguments,
|
|
416
|
+
clippy::too_many_lines,
|
|
417
|
+
clippy::trivially_copy_pass_by_ref,
|
|
418
|
+
clippy::type_complexity,
|
|
419
|
+
clippy::unconditional_recursion, // https://github.com/rust-lang/rust-clippy/issues/12133
|
|
420
|
+
clippy::uninhabited_references,
|
|
421
|
+
clippy::uninlined_format_args,
|
|
422
|
+
clippy::unnecessary_box_returns,
|
|
423
|
+
clippy::unnecessary_unwrap,
|
|
424
|
+
clippy::used_underscore_binding,
|
|
425
|
+
clippy::wildcard_imports,
|
|
426
|
+
)]
|
|
427
|
+
#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
|
|
428
|
+
|
|
429
|
+
extern crate alloc;
|
|
430
|
+
extern crate std;
|
|
431
|
+
|
|
432
|
+
extern crate self as syn;
|
|
433
|
+
|
|
434
|
+
#[cfg(feature = "proc-macro")]
|
|
435
|
+
extern crate proc_macro;
|
|
436
|
+
|
|
437
|
+
#[macro_use]
|
|
438
|
+
mod macros;
|
|
439
|
+
|
|
440
|
+
#[cfg(feature = "parsing")]
|
|
441
|
+
#[macro_use]
|
|
442
|
+
mod group;
|
|
443
|
+
|
|
444
|
+
#[macro_use]
|
|
445
|
+
pub mod token;
|
|
446
|
+
|
|
447
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
448
|
+
mod attr;
|
|
449
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
450
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
451
|
+
pub use crate::attr::{AttrStyle, Attribute, Meta, MetaList, MetaNameValue};
|
|
452
|
+
|
|
453
|
+
mod bigint;
|
|
454
|
+
|
|
455
|
+
#[cfg(feature = "parsing")]
|
|
456
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
457
|
+
pub mod buffer;
|
|
458
|
+
|
|
459
|
+
#[cfg(any(
|
|
460
|
+
all(feature = "parsing", feature = "full"),
|
|
461
|
+
all(feature = "printing", any(feature = "full", feature = "derive")),
|
|
462
|
+
))]
|
|
463
|
+
mod classify;
|
|
464
|
+
|
|
465
|
+
mod custom_keyword;
|
|
466
|
+
|
|
467
|
+
mod custom_punctuation;
|
|
468
|
+
|
|
469
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
470
|
+
mod data;
|
|
471
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
472
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
473
|
+
pub use crate::data::{Field, FieldModifiers, Fields, FieldsNamed, FieldsUnnamed, Variant};
|
|
474
|
+
|
|
475
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
476
|
+
mod derive;
|
|
477
|
+
#[cfg(feature = "derive")]
|
|
478
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "derive")))]
|
|
479
|
+
pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
|
|
480
|
+
|
|
481
|
+
mod drops;
|
|
482
|
+
|
|
483
|
+
mod error;
|
|
484
|
+
pub use crate::error::{Error, Result};
|
|
485
|
+
|
|
486
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
487
|
+
mod expr;
|
|
488
|
+
#[cfg(feature = "full")]
|
|
489
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
490
|
+
pub use crate::expr::{Arm, BlockModifiers, ClosureModifiers, Label, RangeLimits};
|
|
491
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
492
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
493
|
+
pub use crate::expr::{
|
|
494
|
+
Expr, ExprBinary, ExprCall, ExprCast, ExprField, ExprIndex, ExprLit, ExprMacro, ExprMethodCall,
|
|
495
|
+
ExprParen, ExprPath, ExprReference, ExprStruct, ExprUnary, FieldValue, Index, Member,
|
|
496
|
+
};
|
|
497
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
498
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
499
|
+
pub use crate::expr::{
|
|
500
|
+
ExprArray, ExprAssign, ExprAsync, ExprAwait, ExprBlock, ExprBreak, ExprClosure, ExprConst,
|
|
501
|
+
ExprContinue, ExprForLoop, ExprGroup, ExprIf, ExprInfer, ExprLet, ExprLoop, ExprMatch,
|
|
502
|
+
ExprRange, ExprRawAddr, ExprRepeat, ExprReturn, ExprTry, ExprTryBlock, ExprTuple, ExprUnsafe,
|
|
503
|
+
ExprWhile, ExprYield,
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
pub mod ext;
|
|
507
|
+
|
|
508
|
+
#[cfg(feature = "full")]
|
|
509
|
+
mod file;
|
|
510
|
+
#[cfg(feature = "full")]
|
|
511
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
512
|
+
pub use crate::file::{File, Frontmatter};
|
|
513
|
+
|
|
514
|
+
#[cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))]
|
|
515
|
+
mod fixup;
|
|
516
|
+
|
|
517
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
518
|
+
mod generics;
|
|
519
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
520
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
521
|
+
pub use crate::generics::{
|
|
522
|
+
BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeParam, PredicateLifetime,
|
|
523
|
+
PredicateType, TraitBound, TraitBoundModifiers, TypeParam, TypeParamBound, WhereClause,
|
|
524
|
+
WherePredicate,
|
|
525
|
+
};
|
|
526
|
+
#[cfg(feature = "full")]
|
|
527
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
528
|
+
pub use crate::generics::{CapturedParam, PreciseCapture};
|
|
529
|
+
#[cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))]
|
|
530
|
+
#[cfg_attr(
|
|
531
|
+
docsrs,
|
|
532
|
+
doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing")))
|
|
533
|
+
)]
|
|
534
|
+
pub use crate::generics::{ImplGenerics, Turbofish, TypeGenerics};
|
|
535
|
+
|
|
536
|
+
mod ident;
|
|
537
|
+
#[doc(inline)]
|
|
538
|
+
pub use crate::ident::Ident;
|
|
539
|
+
|
|
540
|
+
#[cfg(feature = "full")]
|
|
541
|
+
mod item;
|
|
542
|
+
#[cfg(feature = "full")]
|
|
543
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
544
|
+
pub use crate::item::{
|
|
545
|
+
ConstModifiers, FnArg, FnModifiers, ForeignItem, ForeignItemFn, ForeignItemMacro,
|
|
546
|
+
ForeignItemStatic, ForeignItemType, ImplItem, ImplItemConst, ImplItemFn, ImplItemMacro,
|
|
547
|
+
ImplItemType, ImplModifiers, Item, ItemConst, ItemEnum, ItemExternCrate, ItemFn,
|
|
548
|
+
ItemForeignMod, ItemImpl, ItemMacro, ItemMod, ItemStatic, ItemStruct, ItemTrait,
|
|
549
|
+
ItemTraitAlias, ItemType, ItemUnion, ItemUse, Receiver, ReceiverKind, Safety, Signature,
|
|
550
|
+
StaticMutability, TraitItem, TraitItemConst, TraitItemFn, TraitItemMacro, TraitItemType,
|
|
551
|
+
TraitModifiers, TypeModifiers, UseGlob, UseGroup, UseName, UsePath, UseRename, UseTree,
|
|
552
|
+
Variadic, WhereClausePlacement,
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
mod lifetime;
|
|
556
|
+
#[doc(inline)]
|
|
557
|
+
pub use crate::lifetime::Lifetime;
|
|
558
|
+
|
|
559
|
+
mod lit;
|
|
560
|
+
#[doc(inline)]
|
|
561
|
+
pub use crate::lit::{
|
|
562
|
+
Lit, LitBool, LitByte, LitByteStr, LitCStr, LitChar, LitFloat, LitInt, LitStr,
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
#[cfg(feature = "parsing")]
|
|
566
|
+
mod lookahead;
|
|
567
|
+
|
|
568
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
569
|
+
mod mac;
|
|
570
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
571
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
572
|
+
pub use crate::mac::{Macro, MacroDelimiter};
|
|
573
|
+
|
|
574
|
+
#[cfg(all(feature = "parsing", any(feature = "full", feature = "derive")))]
|
|
575
|
+
#[cfg_attr(
|
|
576
|
+
docsrs,
|
|
577
|
+
doc(cfg(all(feature = "parsing", any(feature = "full", feature = "derive"))))
|
|
578
|
+
)]
|
|
579
|
+
pub mod meta;
|
|
580
|
+
|
|
581
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
582
|
+
mod op;
|
|
583
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
584
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
585
|
+
pub use crate::op::{BinOp, UnOp};
|
|
586
|
+
|
|
587
|
+
#[cfg(feature = "parsing")]
|
|
588
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
589
|
+
pub mod parse;
|
|
590
|
+
|
|
591
|
+
#[cfg(all(feature = "parsing", feature = "proc-macro"))]
|
|
592
|
+
mod parse_macro_input;
|
|
593
|
+
|
|
594
|
+
#[cfg(all(feature = "parsing", feature = "printing"))]
|
|
595
|
+
mod parse_quote;
|
|
596
|
+
|
|
597
|
+
#[cfg(feature = "full")]
|
|
598
|
+
mod pat;
|
|
599
|
+
#[cfg(feature = "full")]
|
|
600
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
601
|
+
pub use crate::pat::{
|
|
602
|
+
FieldPat, Pat, PatConst, PatGuard, PatIdent, PatLit, PatMacro, PatOr, PatParen, PatPath,
|
|
603
|
+
PatRange, PatReference, PatRest, PatSlice, PatStruct, PatTuple, PatTupleStruct, PatType,
|
|
604
|
+
PatWild,
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
608
|
+
mod path;
|
|
609
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
610
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
611
|
+
pub use crate::path::{
|
|
612
|
+
AngleBracketedGenericArguments, AssocConst, AssocType, Constraint, GenericArgument,
|
|
613
|
+
ParenthesizedGenericArguments, Path, PathArguments, PathSegment, QSelf,
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
#[cfg(all(
|
|
617
|
+
any(feature = "full", feature = "derive"),
|
|
618
|
+
any(feature = "parsing", feature = "printing")
|
|
619
|
+
))]
|
|
620
|
+
mod precedence;
|
|
621
|
+
|
|
622
|
+
#[cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))]
|
|
623
|
+
mod print;
|
|
624
|
+
|
|
625
|
+
pub mod punctuated;
|
|
626
|
+
|
|
627
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
628
|
+
mod restriction;
|
|
629
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
630
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
631
|
+
pub use crate::restriction::{VisRestricted, Visibility};
|
|
632
|
+
|
|
633
|
+
mod sealed;
|
|
634
|
+
|
|
635
|
+
#[cfg(all(feature = "parsing", feature = "derive", not(feature = "full")))]
|
|
636
|
+
mod scan_expr;
|
|
637
|
+
|
|
638
|
+
mod span;
|
|
639
|
+
|
|
640
|
+
#[cfg(all(feature = "parsing", feature = "printing"))]
|
|
641
|
+
#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "printing"))))]
|
|
642
|
+
pub mod spanned;
|
|
643
|
+
|
|
644
|
+
#[cfg(feature = "full")]
|
|
645
|
+
mod stmt;
|
|
646
|
+
#[cfg(feature = "full")]
|
|
647
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
648
|
+
pub use crate::stmt::{Block, Local, LocalInit, LocalModifiers, Stmt, StmtMacro};
|
|
649
|
+
|
|
650
|
+
mod thread;
|
|
651
|
+
|
|
652
|
+
#[cfg(all(any(feature = "full", feature = "derive"), feature = "extra-traits"))]
|
|
653
|
+
mod tt;
|
|
654
|
+
|
|
655
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
656
|
+
mod ty;
|
|
657
|
+
#[cfg(any(feature = "full", feature = "derive"))]
|
|
658
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
659
|
+
pub use crate::ty::{
|
|
660
|
+
Abi, FnPtrVariadic, NamedArg, PointerMutability, ReturnType, Type, TypeArray, TypeFnPtr,
|
|
661
|
+
TypeGroup, TypeImplTrait, TypeInfer, TypeMacro, TypeNever, TypeParen, TypePath, TypePtr,
|
|
662
|
+
TypeReference, TypeSlice, TypeTraitObject, TypeTuple,
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
#[cfg(all(any(feature = "full", feature = "derive"), feature = "parsing"))]
|
|
666
|
+
mod verbatim;
|
|
667
|
+
|
|
668
|
+
#[cfg(all(feature = "parsing", feature = "full"))]
|
|
669
|
+
mod whitespace;
|
|
670
|
+
|
|
671
|
+
#[rustfmt::skip] // https://github.com/rust-lang/rustfmt/issues/6176
|
|
672
|
+
mod gen {
|
|
673
|
+
/// Syntax tree traversal to transform the nodes of an owned syntax tree.
|
|
674
|
+
///
|
|
675
|
+
/// Each method of the [`Fold`] trait is a hook that can be overridden to
|
|
676
|
+
/// customize the behavior when transforming the corresponding type of node.
|
|
677
|
+
/// By default, every method recursively visits the substructure of the
|
|
678
|
+
/// input by invoking the right visitor method of each of its fields.
|
|
679
|
+
///
|
|
680
|
+
/// [`Fold`]: fold::Fold
|
|
681
|
+
///
|
|
682
|
+
/// ```
|
|
683
|
+
/// # use syn::{Attribute, BinOp, Expr, ExprBinary};
|
|
684
|
+
/// #
|
|
685
|
+
/// pub trait Fold {
|
|
686
|
+
/// /* ... */
|
|
687
|
+
///
|
|
688
|
+
/// fn fold_expr_binary(&mut self, node: ExprBinary) -> ExprBinary {
|
|
689
|
+
/// fold_expr_binary(self, node)
|
|
690
|
+
/// }
|
|
691
|
+
///
|
|
692
|
+
/// /* ... */
|
|
693
|
+
/// # fn fold_attribute(&mut self, node: Attribute) -> Attribute;
|
|
694
|
+
/// # fn fold_expr(&mut self, node: Expr) -> Expr;
|
|
695
|
+
/// # fn fold_bin_op(&mut self, node: BinOp) -> BinOp;
|
|
696
|
+
/// }
|
|
697
|
+
///
|
|
698
|
+
/// pub fn fold_expr_binary<V>(v: &mut V, node: ExprBinary) -> ExprBinary
|
|
699
|
+
/// where
|
|
700
|
+
/// V: Fold + ?Sized,
|
|
701
|
+
/// {
|
|
702
|
+
/// ExprBinary {
|
|
703
|
+
/// attrs: node
|
|
704
|
+
/// .attrs
|
|
705
|
+
/// .into_iter()
|
|
706
|
+
/// .map(|attr| v.fold_attribute(attr))
|
|
707
|
+
/// .collect(),
|
|
708
|
+
/// left: Box::new(v.fold_expr(*node.left)),
|
|
709
|
+
/// op: v.fold_bin_op(node.op),
|
|
710
|
+
/// right: Box::new(v.fold_expr(*node.right)),
|
|
711
|
+
/// }
|
|
712
|
+
/// }
|
|
713
|
+
///
|
|
714
|
+
/// /* ... */
|
|
715
|
+
/// ```
|
|
716
|
+
///
|
|
717
|
+
/// <br>
|
|
718
|
+
///
|
|
719
|
+
/// # Example
|
|
720
|
+
///
|
|
721
|
+
/// This fold inserts parentheses to fully parenthesizes any expression.
|
|
722
|
+
///
|
|
723
|
+
/// ```
|
|
724
|
+
/// // [dependencies]
|
|
725
|
+
/// // quote = "1"
|
|
726
|
+
/// // syn = { version = "3", features = ["fold", "full"] }
|
|
727
|
+
///
|
|
728
|
+
/// use quote::quote;
|
|
729
|
+
/// use syn::fold::{fold_expr, Fold};
|
|
730
|
+
/// use syn::{token, Expr, ExprParen};
|
|
731
|
+
///
|
|
732
|
+
/// struct ParenthesizeEveryExpr;
|
|
733
|
+
///
|
|
734
|
+
/// impl Fold for ParenthesizeEveryExpr {
|
|
735
|
+
/// fn fold_expr(&mut self, expr: Expr) -> Expr {
|
|
736
|
+
/// Expr::Paren(ExprParen {
|
|
737
|
+
/// attrs: Vec::new(),
|
|
738
|
+
/// expr: Box::new(fold_expr(self, expr)),
|
|
739
|
+
/// paren_token: token::Paren::default(),
|
|
740
|
+
/// })
|
|
741
|
+
/// }
|
|
742
|
+
/// }
|
|
743
|
+
///
|
|
744
|
+
/// fn main() {
|
|
745
|
+
/// let code = quote! { a() + b(1) * c.d };
|
|
746
|
+
/// let expr: Expr = syn::parse2(code).unwrap();
|
|
747
|
+
/// let parenthesized = ParenthesizeEveryExpr.fold_expr(expr);
|
|
748
|
+
/// println!("{}", quote!(#parenthesized));
|
|
749
|
+
///
|
|
750
|
+
/// // Output: (((a)()) + (((b)((1))) * ((c).d)))
|
|
751
|
+
/// }
|
|
752
|
+
/// ```
|
|
753
|
+
#[cfg(feature = "fold")]
|
|
754
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "fold")))]
|
|
755
|
+
#[rustfmt::skip]
|
|
756
|
+
pub mod fold;
|
|
757
|
+
|
|
758
|
+
/// Syntax tree traversal to walk a shared borrow of a syntax tree.
|
|
759
|
+
///
|
|
760
|
+
/// Each method of the [`Visit`] trait is a hook that can be overridden to
|
|
761
|
+
/// customize the behavior when visiting the corresponding type of node. By
|
|
762
|
+
/// default, every method recursively visits the substructure of the input
|
|
763
|
+
/// by invoking the right visitor method of each of its fields.
|
|
764
|
+
///
|
|
765
|
+
/// [`Visit`]: visit::Visit
|
|
766
|
+
///
|
|
767
|
+
/// ```
|
|
768
|
+
/// # use syn::{Attribute, BinOp, Expr, ExprBinary};
|
|
769
|
+
/// #
|
|
770
|
+
/// pub trait Visit<'ast> {
|
|
771
|
+
/// /* ... */
|
|
772
|
+
///
|
|
773
|
+
/// fn visit_expr_binary(&mut self, node: &'ast ExprBinary) {
|
|
774
|
+
/// visit_expr_binary(self, node);
|
|
775
|
+
/// }
|
|
776
|
+
///
|
|
777
|
+
/// /* ... */
|
|
778
|
+
/// # fn visit_attribute(&mut self, node: &'ast Attribute);
|
|
779
|
+
/// # fn visit_expr(&mut self, node: &'ast Expr);
|
|
780
|
+
/// # fn visit_bin_op(&mut self, node: &'ast BinOp);
|
|
781
|
+
/// }
|
|
782
|
+
///
|
|
783
|
+
/// pub fn visit_expr_binary<'ast, V>(v: &mut V, node: &'ast ExprBinary)
|
|
784
|
+
/// where
|
|
785
|
+
/// V: Visit<'ast> + ?Sized,
|
|
786
|
+
/// {
|
|
787
|
+
/// for attr in &node.attrs {
|
|
788
|
+
/// v.visit_attribute(attr);
|
|
789
|
+
/// }
|
|
790
|
+
/// v.visit_expr(&*node.left);
|
|
791
|
+
/// v.visit_bin_op(&node.op);
|
|
792
|
+
/// v.visit_expr(&*node.right);
|
|
793
|
+
/// }
|
|
794
|
+
///
|
|
795
|
+
/// /* ... */
|
|
796
|
+
/// ```
|
|
797
|
+
///
|
|
798
|
+
/// <br>
|
|
799
|
+
///
|
|
800
|
+
/// # Example
|
|
801
|
+
///
|
|
802
|
+
/// This visitor will print the name of every freestanding function in the
|
|
803
|
+
/// syntax tree, including nested functions.
|
|
804
|
+
///
|
|
805
|
+
/// ```
|
|
806
|
+
/// // [dependencies]
|
|
807
|
+
/// // quote = "1"
|
|
808
|
+
/// // syn = { version = "3", features = ["full", "visit"] }
|
|
809
|
+
///
|
|
810
|
+
/// use quote::quote;
|
|
811
|
+
/// use syn::visit::{self, Visit};
|
|
812
|
+
/// use syn::{File, ItemFn};
|
|
813
|
+
///
|
|
814
|
+
/// struct FnVisitor;
|
|
815
|
+
///
|
|
816
|
+
/// impl<'ast> Visit<'ast> for FnVisitor {
|
|
817
|
+
/// fn visit_item_fn(&mut self, node: &'ast ItemFn) {
|
|
818
|
+
/// println!("Function with name={}", node.sig.ident);
|
|
819
|
+
///
|
|
820
|
+
/// // Delegate to the default impl to visit any nested functions.
|
|
821
|
+
/// visit::visit_item_fn(self, node);
|
|
822
|
+
/// }
|
|
823
|
+
/// }
|
|
824
|
+
///
|
|
825
|
+
/// fn main() {
|
|
826
|
+
/// let code = quote! {
|
|
827
|
+
/// pub fn f() {
|
|
828
|
+
/// fn g() {}
|
|
829
|
+
/// }
|
|
830
|
+
/// };
|
|
831
|
+
///
|
|
832
|
+
/// let syntax_tree: File = syn::parse2(code).unwrap();
|
|
833
|
+
/// FnVisitor.visit_file(&syntax_tree);
|
|
834
|
+
/// }
|
|
835
|
+
/// ```
|
|
836
|
+
///
|
|
837
|
+
/// The `'ast` lifetime on the input references means that the syntax tree
|
|
838
|
+
/// outlives the complete recursive visit call, so the visitor is allowed to
|
|
839
|
+
/// hold on to references into the syntax tree.
|
|
840
|
+
///
|
|
841
|
+
/// ```
|
|
842
|
+
/// use quote::quote;
|
|
843
|
+
/// use syn::visit::{self, Visit};
|
|
844
|
+
/// use syn::{File, ItemFn};
|
|
845
|
+
///
|
|
846
|
+
/// struct FnVisitor<'ast> {
|
|
847
|
+
/// functions: Vec<&'ast ItemFn>,
|
|
848
|
+
/// }
|
|
849
|
+
///
|
|
850
|
+
/// impl<'ast> Visit<'ast> for FnVisitor<'ast> {
|
|
851
|
+
/// fn visit_item_fn(&mut self, node: &'ast ItemFn) {
|
|
852
|
+
/// self.functions.push(node);
|
|
853
|
+
/// visit::visit_item_fn(self, node);
|
|
854
|
+
/// }
|
|
855
|
+
/// }
|
|
856
|
+
///
|
|
857
|
+
/// fn main() {
|
|
858
|
+
/// let code = quote! {
|
|
859
|
+
/// pub fn f() {
|
|
860
|
+
/// fn g() {}
|
|
861
|
+
/// }
|
|
862
|
+
/// };
|
|
863
|
+
///
|
|
864
|
+
/// let syntax_tree: File = syn::parse2(code).unwrap();
|
|
865
|
+
/// let mut visitor = FnVisitor { functions: Vec::new() };
|
|
866
|
+
/// visitor.visit_file(&syntax_tree);
|
|
867
|
+
/// for f in visitor.functions {
|
|
868
|
+
/// println!("Function with name={}", f.sig.ident);
|
|
869
|
+
/// }
|
|
870
|
+
/// }
|
|
871
|
+
/// ```
|
|
872
|
+
#[cfg(feature = "visit")]
|
|
873
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "visit")))]
|
|
874
|
+
#[rustfmt::skip]
|
|
875
|
+
pub mod visit;
|
|
876
|
+
|
|
877
|
+
/// Syntax tree traversal to mutate an exclusive borrow of a syntax tree in
|
|
878
|
+
/// place.
|
|
879
|
+
///
|
|
880
|
+
/// Each method of the [`VisitMut`] trait is a hook that can be overridden
|
|
881
|
+
/// to customize the behavior when mutating the corresponding type of node.
|
|
882
|
+
/// By default, every method recursively visits the substructure of the
|
|
883
|
+
/// input by invoking the right visitor method of each of its fields.
|
|
884
|
+
///
|
|
885
|
+
/// [`VisitMut`]: visit_mut::VisitMut
|
|
886
|
+
///
|
|
887
|
+
/// ```
|
|
888
|
+
/// # use syn::{Attribute, BinOp, Expr, ExprBinary};
|
|
889
|
+
/// #
|
|
890
|
+
/// pub trait VisitMut {
|
|
891
|
+
/// /* ... */
|
|
892
|
+
///
|
|
893
|
+
/// fn visit_expr_binary_mut(&mut self, node: &mut ExprBinary) {
|
|
894
|
+
/// visit_expr_binary_mut(self, node);
|
|
895
|
+
/// }
|
|
896
|
+
///
|
|
897
|
+
/// /* ... */
|
|
898
|
+
/// # fn visit_attribute_mut(&mut self, node: &mut Attribute);
|
|
899
|
+
/// # fn visit_expr_mut(&mut self, node: &mut Expr);
|
|
900
|
+
/// # fn visit_bin_op_mut(&mut self, node: &mut BinOp);
|
|
901
|
+
/// }
|
|
902
|
+
///
|
|
903
|
+
/// pub fn visit_expr_binary_mut<V>(v: &mut V, node: &mut ExprBinary)
|
|
904
|
+
/// where
|
|
905
|
+
/// V: VisitMut + ?Sized,
|
|
906
|
+
/// {
|
|
907
|
+
/// for attr in &mut node.attrs {
|
|
908
|
+
/// v.visit_attribute_mut(attr);
|
|
909
|
+
/// }
|
|
910
|
+
/// v.visit_expr_mut(&mut *node.left);
|
|
911
|
+
/// v.visit_bin_op_mut(&mut node.op);
|
|
912
|
+
/// v.visit_expr_mut(&mut *node.right);
|
|
913
|
+
/// }
|
|
914
|
+
///
|
|
915
|
+
/// /* ... */
|
|
916
|
+
/// ```
|
|
917
|
+
///
|
|
918
|
+
/// <br>
|
|
919
|
+
///
|
|
920
|
+
/// # Example
|
|
921
|
+
///
|
|
922
|
+
/// This mut visitor replace occurrences of u256 suffixed integer literals
|
|
923
|
+
/// like `999u256` with a macro invocation `bigint::u256!(999)`.
|
|
924
|
+
///
|
|
925
|
+
/// ```
|
|
926
|
+
/// // [dependencies]
|
|
927
|
+
/// // quote = "1"
|
|
928
|
+
/// // syn = { version = "3", features = ["full", "visit-mut"] }
|
|
929
|
+
///
|
|
930
|
+
/// use quote::quote;
|
|
931
|
+
/// use syn::visit_mut::{self, VisitMut};
|
|
932
|
+
/// use syn::{parse_quote, Expr, File, Lit, LitInt};
|
|
933
|
+
///
|
|
934
|
+
/// struct BigintReplace;
|
|
935
|
+
///
|
|
936
|
+
/// impl VisitMut for BigintReplace {
|
|
937
|
+
/// fn visit_expr_mut(&mut self, node: &mut Expr) {
|
|
938
|
+
/// if let Expr::Lit(expr) = &node {
|
|
939
|
+
/// if let Lit::Int(int) = &expr.lit {
|
|
940
|
+
/// if int.suffix() == "u256" {
|
|
941
|
+
/// let digits = int.base10_digits();
|
|
942
|
+
/// let unsuffixed: LitInt = syn::parse_str(digits).unwrap();
|
|
943
|
+
/// *node = parse_quote!(bigint::u256!(#unsuffixed));
|
|
944
|
+
/// return;
|
|
945
|
+
/// }
|
|
946
|
+
/// }
|
|
947
|
+
/// }
|
|
948
|
+
///
|
|
949
|
+
/// // Delegate to the default impl to visit nested expressions.
|
|
950
|
+
/// visit_mut::visit_expr_mut(self, node);
|
|
951
|
+
/// }
|
|
952
|
+
/// }
|
|
953
|
+
///
|
|
954
|
+
/// fn main() {
|
|
955
|
+
/// let code = quote! {
|
|
956
|
+
/// fn main() {
|
|
957
|
+
/// let _ = 999u256;
|
|
958
|
+
/// }
|
|
959
|
+
/// };
|
|
960
|
+
///
|
|
961
|
+
/// let mut syntax_tree: File = syn::parse2(code).unwrap();
|
|
962
|
+
/// BigintReplace.visit_file_mut(&mut syntax_tree);
|
|
963
|
+
/// println!("{}", quote!(#syntax_tree));
|
|
964
|
+
/// }
|
|
965
|
+
/// ```
|
|
966
|
+
#[cfg(feature = "visit-mut")]
|
|
967
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "visit-mut")))]
|
|
968
|
+
#[rustfmt::skip]
|
|
969
|
+
pub mod visit_mut;
|
|
970
|
+
|
|
971
|
+
#[cfg(feature = "clone-impls")]
|
|
972
|
+
#[rustfmt::skip]
|
|
973
|
+
mod clone;
|
|
974
|
+
|
|
975
|
+
#[cfg(feature = "extra-traits")]
|
|
976
|
+
#[rustfmt::skip]
|
|
977
|
+
mod debug;
|
|
978
|
+
|
|
979
|
+
#[cfg(feature = "extra-traits")]
|
|
980
|
+
#[rustfmt::skip]
|
|
981
|
+
mod eq;
|
|
982
|
+
|
|
983
|
+
#[cfg(feature = "extra-traits")]
|
|
984
|
+
#[rustfmt::skip]
|
|
985
|
+
mod hash;
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
#[cfg(feature = "fold")]
|
|
989
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "fold")))]
|
|
990
|
+
pub use crate::gen::fold;
|
|
991
|
+
|
|
992
|
+
#[cfg(feature = "visit")]
|
|
993
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "visit")))]
|
|
994
|
+
pub use crate::gen::visit;
|
|
995
|
+
|
|
996
|
+
#[cfg(feature = "visit-mut")]
|
|
997
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "visit-mut")))]
|
|
998
|
+
pub use crate::gen::visit_mut;
|
|
999
|
+
|
|
1000
|
+
// Not public API.
|
|
1001
|
+
#[doc(hidden)]
|
|
1002
|
+
#[path = "export.rs"]
|
|
1003
|
+
pub mod __private;
|
|
1004
|
+
|
|
1005
|
+
#[cfg(all(feature = "parsing", feature = "full"))]
|
|
1006
|
+
use alloc::string::ToString;
|
|
1007
|
+
|
|
1008
|
+
/// Parse tokens of source code into the chosen syntax tree node.
|
|
1009
|
+
///
|
|
1010
|
+
/// This is preferred over parsing a string because tokens are able to preserve
|
|
1011
|
+
/// information about where in the user's code they were originally written (the
|
|
1012
|
+
/// "span" of the token), possibly allowing the compiler to produce better error
|
|
1013
|
+
/// messages.
|
|
1014
|
+
///
|
|
1015
|
+
/// This function parses a `proc_macro::TokenStream` which is the type used for
|
|
1016
|
+
/// interop with the compiler in a procedural macro. To parse a
|
|
1017
|
+
/// `proc_macro2::TokenStream`, use [`syn::parse2`] instead.
|
|
1018
|
+
///
|
|
1019
|
+
/// [`syn::parse2`]: parse2
|
|
1020
|
+
///
|
|
1021
|
+
/// This function enforces that the input is fully parsed. If there are any
|
|
1022
|
+
/// unparsed tokens at the end of the stream, an error is returned.
|
|
1023
|
+
#[cfg(all(feature = "parsing", feature = "proc-macro"))]
|
|
1024
|
+
#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "proc-macro"))))]
|
|
1025
|
+
pub fn parse<T: parse::Parse>(tokens: proc_macro::TokenStream) -> Result<T> {
|
|
1026
|
+
parse::Parser::parse(T::parse, tokens)
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/// Parse a proc-macro2 token stream into the chosen syntax tree node.
|
|
1030
|
+
///
|
|
1031
|
+
/// This function parses a `proc_macro2::TokenStream` which is commonly useful
|
|
1032
|
+
/// when the input comes from a node of the Syn syntax tree, for example the
|
|
1033
|
+
/// body tokens of a [`Macro`] node. When in a procedural macro parsing the
|
|
1034
|
+
/// `proc_macro::TokenStream` provided by the compiler, use [`syn::parse`]
|
|
1035
|
+
/// instead.
|
|
1036
|
+
///
|
|
1037
|
+
/// [`syn::parse`]: parse()
|
|
1038
|
+
///
|
|
1039
|
+
/// This function enforces that the input is fully parsed. If there are any
|
|
1040
|
+
/// unparsed tokens at the end of the stream, an error is returned.
|
|
1041
|
+
#[cfg(feature = "parsing")]
|
|
1042
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
1043
|
+
pub fn parse2<T: parse::Parse>(tokens: proc_macro2::TokenStream) -> Result<T> {
|
|
1044
|
+
parse::Parser::parse2(T::parse, tokens)
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
/// Parse a string of Rust code into the chosen syntax tree node.
|
|
1048
|
+
///
|
|
1049
|
+
/// This function enforces that the input is fully parsed. If there are any
|
|
1050
|
+
/// unparsed tokens at the end of the stream, an error is returned.
|
|
1051
|
+
///
|
|
1052
|
+
/// # Hygiene
|
|
1053
|
+
///
|
|
1054
|
+
/// Every span in the resulting syntax tree will be set to resolve at the macro
|
|
1055
|
+
/// call site.
|
|
1056
|
+
///
|
|
1057
|
+
/// # Examples
|
|
1058
|
+
///
|
|
1059
|
+
/// ```
|
|
1060
|
+
/// use syn::{Expr, Result};
|
|
1061
|
+
///
|
|
1062
|
+
/// fn run() -> Result<()> {
|
|
1063
|
+
/// let code = "assert_eq!(u8::max_value(), 255)";
|
|
1064
|
+
/// let expr = syn::parse_str::<Expr>(code)?;
|
|
1065
|
+
/// println!("{:#?}", expr);
|
|
1066
|
+
/// Ok(())
|
|
1067
|
+
/// }
|
|
1068
|
+
/// #
|
|
1069
|
+
/// # run().unwrap();
|
|
1070
|
+
/// ```
|
|
1071
|
+
#[cfg(feature = "parsing")]
|
|
1072
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
1073
|
+
pub fn parse_str<T: parse::Parse>(s: &str) -> Result<T> {
|
|
1074
|
+
parse::Parser::parse_str(T::parse, s)
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/// Parse the content of a file of Rust code.
|
|
1078
|
+
///
|
|
1079
|
+
/// This is different from `syn::parse_str::<File>(content)` in two ways:
|
|
1080
|
+
///
|
|
1081
|
+
/// - It discards a leading byte order mark `\u{FEFF}` if the file has one.
|
|
1082
|
+
/// - It preserves the shebang line of the file, such as `#!/usr/bin/env rustx`.
|
|
1083
|
+
///
|
|
1084
|
+
/// If present, either of these would be an error using `from_str`.
|
|
1085
|
+
///
|
|
1086
|
+
/// # Examples
|
|
1087
|
+
///
|
|
1088
|
+
/// ```no_run
|
|
1089
|
+
/// use std::error::Error;
|
|
1090
|
+
/// use std::fs;
|
|
1091
|
+
/// use std::io::Read;
|
|
1092
|
+
///
|
|
1093
|
+
/// fn run() -> Result<(), Box<dyn Error>> {
|
|
1094
|
+
/// let content = fs::read_to_string("path/to/code.rs")?;
|
|
1095
|
+
/// let ast = syn::parse_file(&content)?;
|
|
1096
|
+
/// if let Some(shebang) = ast.shebang {
|
|
1097
|
+
/// println!("{}", shebang);
|
|
1098
|
+
/// }
|
|
1099
|
+
/// println!("{} items", ast.items.len());
|
|
1100
|
+
///
|
|
1101
|
+
/// Ok(())
|
|
1102
|
+
/// }
|
|
1103
|
+
/// #
|
|
1104
|
+
/// # run().unwrap();
|
|
1105
|
+
/// ```
|
|
1106
|
+
#[cfg(all(feature = "parsing", feature = "full"))]
|
|
1107
|
+
#[cfg_attr(docsrs, doc(cfg(all(feature = "parsing", feature = "full"))))]
|
|
1108
|
+
pub fn parse_file(mut content: &str) -> Result<File> {
|
|
1109
|
+
// Strip the BOM if it is present
|
|
1110
|
+
const BOM: &str = "\u{feff}";
|
|
1111
|
+
if content.starts_with(BOM) {
|
|
1112
|
+
content = &content[BOM.len()..];
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
let mut shebang = None;
|
|
1116
|
+
if content.starts_with("#!") {
|
|
1117
|
+
let rest = whitespace::skip(&content[2..]);
|
|
1118
|
+
if !rest.starts_with('[') {
|
|
1119
|
+
if let Some(idx) = content.find('\n') {
|
|
1120
|
+
shebang = Some(content[..idx].to_string());
|
|
1121
|
+
content = &content[idx..];
|
|
1122
|
+
} else {
|
|
1123
|
+
shebang = Some(content.to_string());
|
|
1124
|
+
content = "";
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
let mut file: File = parse_str(content)?;
|
|
1130
|
+
file.shebang = shebang;
|
|
1131
|
+
Ok(file)
|
|
1132
|
+
}
|