diff --git a/.config/nextest.toml b/.config/nextest.toml new file mode 100644 index 000000000..ca823884a --- /dev/null +++ b/.config/nextest.toml @@ -0,0 +1,6 @@ +[profile.ci] +# Report every failure in one run. +fail-fast = false + +# Flag tests slower than 60 s; kill them after 5 periods. +slow-timeout = { period = "60s", terminate-after = 5 } diff --git a/rust/.dockerignore b/.dockerignore similarity index 100% rename from rust/.dockerignore rename to .dockerignore diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 1c8d4d228..affbb671c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -2,11 +2,9 @@ ## Build, test, and lint commands -The main Rust workspace lives in `rust/`. Run Cargo commands there unless you are working on the compatibility suite. +The Rust workspace root is the repository root, with crates under `crates/`. Run Cargo commands there unless you are working on the compatibility suite. ```bash -cd rust - # Build and test the full workspace cargo build cargo test @@ -35,8 +33,8 @@ cargo build --release WASM builds are only checked for `pact_models` and `pact_matching`: ```bash -cd rust/pact_models && cargo build --target wasm32-wasip2 -cd rust/pact_matching && cargo build --target wasm32-wasip2 +cd crates/pact_models && cargo build --target wasm32-wasip2 +cd crates/pact_matching && cargo build --target wasm32-wasip2 ``` The compatibility suite is a separate crate under `compatibility-suite/` and is run independently from the main workspace: @@ -57,7 +55,7 @@ Cross-platform MUSL builds use the project Docker image: ```bash docker run --rm --user "$(id -u)":"$(id -g)" \ - -v $(pwd):/workspace -w /workspace/rust \ + -v $(pwd):/workspace -w /workspace \ -t -e TZ=UTC pactfoundation/rust-musl-build \ ./scripts/ci-musl-build.sh ``` @@ -87,15 +85,15 @@ Key architectural boundaries: - `pact_verifier_cli` is a thin executable wrapper over `pact_verifier`. - `pact_ffi` exposes consumer and verifier capabilities to other languages through a C ABI. - The mock server crates were moved to `pact-foundation/pact-core-mock-server` and are excluded from this workspace, even though some crates still depend on them as external packages. -- `compatibility-suite/` is separate from `rust/` and contains Cucumber-based spec compliance tests for Pact V1-V4. +- `compatibility-suite/` is a separate Cargo project, excluded from the workspace, and contains Cucumber-based spec compliance tests for Pact V1-V4. ## Key conventions - Most crates use Rust edition 2024 and require Rust 1.88+. `pact_ffi` is the exception and still uses edition 2021. - Keep dependencies aligned with the layering above. New code should normally depend "downward" into lower-level crates, not sideways or upward. - Feature flags are intentionally propagated across crates (`datetime`, `xml`, `plugins`, `multipart`, `form_urlencoded`, `tls`, `junit`). When adding an optional capability, check whether it also needs wiring through dependent crates and target-specific builds. -- `pact_models` is patched in `rust/Cargo.toml` via `[patch.crates-io]` to the local path. Changes there automatically affect workspace crates without publishing. +- `pact_models` is patched in the root `Cargo.toml` via `[patch.crates-io]` to the local path. Changes there automatically affect workspace crates without publishing. - Logging and test output are centered on `tracing`/`tracing-subscriber`; tests commonly use `test-log` so `RUST_LOG=debug` is useful when debugging failures. - Common test helpers across crates are `rstest`, `expectest`, `hamcrest2`, and `pretty_assertions`. Follow those existing choices before introducing new test utilities. -- CI exercises more than the default happy path: full workspace build/test, Linux `cargo clippy`, `cargo check --no-default-features`, WASM builds for `pact_models` and `pact_matching`, and a separate run with `PACT_MATCHING_ENGINE=v2`. +- CI (`.github/workflows/test.yml`) runs on Linux, macOS and Windows: nextest plus doctests, the compatibility suite, the FFI C examples, a musl build, `cargo hack check --each-feature`, WASM builds for `pact_models` and `pact_matching`, Linux `cargo clippy`, and an advisory run with `PACT_MATCHING_ENGINE=v2`. - Commit messages follow Conventional Changelog style (`feat:`, `fix:`, `chore:`, `refactor:`). diff --git a/.github/workflows/build-ffi.yml b/.github/workflows/build-ffi.yml deleted file mode 100644 index e31fc0d5d..000000000 --- a/.github/workflows/build-ffi.yml +++ /dev/null @@ -1,79 +0,0 @@ -name: Pact-Rust FFI Build - -on: - push: - branches: - - master - pull_request: - branches: - - master - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -env: - # Generic - FORCE_COLOR: '1' - CLICOLOR: '1' - # Rust - CARGO_TERM_COLOR: always - RUST_BACKTRACE: '1' - -jobs: - build: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","windows-latest","macos-15"]') }} - rust: [ nightly ] - env: - pact_do_not_track: true - steps: - - name: Checkout code - uses: actions/checkout@v5 - - - name: Install Conan - uses: conan-io/setup-conan@09566912d661de90608308897a4d513e850c04e8 # v1.2.0 - with: - cache_packages: true - - - name: Install Rust - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust }} - - - name: Cache Rust build artifacts - uses: Swatinem/rust-cache@v2 - with: - workspaces: rust -> target - - - name: Install cbindgen and just - uses: taiki-e/install-action@main - with: - tool: cbindgen,just - - - name: Install macOS dependencies - if: runner.os == 'macOS' - run: | - brew install \ - shared-mime-info \ - gettext - - - name: Check plugin log callback headers - if: runner.os == 'Linux' - working-directory: rust/pact_ffi - run: bash tests/check-plugin-log-callback.sh - - - name: Run C consumer examples - working-directory: c/consumer - run: just run - - - name: Run C provider verification - working-directory: c/provider - run: just run - - - name: Run mock_server_logs test - run: cargo test -p pact_ffi returns_mock_server_logs -- --nocapture --include-ignored - working-directory: rust diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 9ac77f3c3..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: Pact-Rust Build - -on: - push: - branches: - - '**' - pull_request: - branches: - - master - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - build: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","windows-latest","macos-15"]') }} - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - components: clippy - - uses: Swatinem/rust-cache@v2 - with: - workspaces: rust -> target - - name: Install shared mime info DB - if: runner.os == 'macOS' - run: brew install shared-mime-info - - name: Tests - run: cargo test - working-directory: rust - env: - RUST_LOG: debug - RUST_BACKTRACE: 1 - - name: Build Components - run: cargo build - working-directory: rust - - name: Clippy - if: runner.os == 'Linux' - run: cargo clippy - working-directory: rust - - v2-engine: - runs-on: ubuntu-latest - continue-on-error: true - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - workspaces: rust -> target - - name: Tests - run: cargo test - working-directory: rust - env: - RUST_LOG: debug - RUST_BACKTRACE: 1 - PACT_MATCHING_ENGINE: v2 - PACT_V2_MATCHING_LOG_EXECUTED_PLAN: 1 - - musl-build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - run: | - docker run --rm --user "$(id -u)":"$(id -g)" -v $(pwd):/workspace -w /workspace/rust -t -e TZ=UTC pactfoundation/rust-musl-build ./scripts/ci-musl-build.sh - - check-features: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v2 - with: - workspaces: rust -> target - - run: cargo check --no-default-features - working-directory: rust - - check-wasm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - with: - targets: wasm32-wasip2 - - uses: Swatinem/rust-cache@v2 - with: - workspaces: rust -> target - - run: cargo build --target wasm32-wasip2 - working-directory: rust/pact_models - - run: cargo build --target wasm32-wasip2 - working-directory: rust/pact_matching diff --git a/.github/workflows/compatability-suite.yml b/.github/workflows/compatability-suite.yml deleted file mode 100644 index 00fbef144..000000000 --- a/.github/workflows/compatability-suite.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Pact-Rust Compatibility Suite - -on: - push: - branches: - - master - pull_request: - branches: - - master - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -env: - pact_do_not_track: true - -jobs: - v1: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","windows-latest","macos-15"]') }} - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - workspaces: compatibility-suite -> target - - name: Run Cucumber - run: cargo test --test v1* - working-directory: compatibility-suite - v2: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","windows-latest","macos-15"]') }} - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - workspaces: compatibility-suite -> target - - name: Run Cucumber - run: cargo test --test v2* - working-directory: compatibility-suite - v3: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","windows-latest","macos-15"]') }} - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - workspaces: compatibility-suite -> target - - name: Run Cucumber - run: cargo test --test v3* - working-directory: compatibility-suite - v4: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: ${{ fromJSON(github.event_name == 'pull_request' && '["ubuntu-latest"]' || '["ubuntu-latest","windows-latest","macos-15"]') }} - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - with: - workspaces: compatibility-suite -> target - - name: Run Cucumber - run: cargo test --test v4* - working-directory: compatibility-suite diff --git a/.github/workflows/issue-comment-created.yml b/.github/workflows/issue-comment-created.yml index 8d83e08a3..69639a685 100644 --- a/.github/workflows/issue-comment-created.yml +++ b/.github/workflows/issue-comment-created.yml @@ -5,26 +5,34 @@ on: types: - created +permissions: + issues: write + jobs: jira: runs-on: ubuntu-latest if: ${{ github.event.comment.body == '/jira ticket' }} steps: - - run: echo ${{ github.event.comment.body }} + - env: + COMMENT_BODY: ${{ github.event.comment.body }} + run: echo "$COMMENT_BODY" - name: Login - uses: atlassian/gajira-login@v3 + uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3 env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - name: SearchParam - run: echo 'summary ~ ${{ toJSON(github.event.issue.title)}} AND project=${{ secrets.JIRA_PROJECT }}' + env: + ISSUE_TITLE: ${{ toJSON(github.event.issue.title) }} + JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }} + run: echo "summary ~ ${ISSUE_TITLE} AND project=${JIRA_PROJECT}" - name: Search id: search - uses: tomhjp/gh-action-jira-search@v0.1.0 + uses: tomhjp/gh-action-jira-search@e099f122d99bf8f12707c157a98166b16498466c # v0.1.0 with: jql: 'summary ~ ${{ toJSON(github.event.issue.title)}} AND project=${{ secrets.JIRA_PROJECT }}' @@ -34,7 +42,7 @@ jobs: - name: Create id: create if: steps.search.outputs.issue == '' - uses: atlassian/gajira-create@v3 + uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3 with: project: ${{ secrets.JIRA_PROJECT }} issuetype: Task @@ -47,7 +55,7 @@ jobs: - name: Add Comment if: steps.search.outputs.issue == '' && steps.create.outputs.issue != '' - uses: actions/github-script@v5 + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f171ae1cd..e44651228 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,10 +5,6 @@ on: types: - published - pull_request: - branches: - - master - workflow_dispatch: jobs: @@ -45,14 +41,15 @@ jobs: - name: Install release Rust toolchain uses: dtolnay/rust-toolchain@stable with: - # Rust 1.99 miscompiles C bool returns on Linux x86_64 (rust-lang/rust#163911). - toolchain: 1.98.1 + # Must match rust-toolchain.toml, which overrides `rustup default`; + # `targets` only reaches the toolchain named here. + toolchain: 1.99.1 targets: ${{ matrix.targets }} - name: Rust caching uses: Swatinem/rust-cache@v2 with: - workspaces: rust + workspaces: . key: ${{ matrix.targets }} - name: Set up QEMU @@ -94,7 +91,7 @@ jobs: run: | ./release-${{ steps.platform-abbreviation.outputs.platform }}.sh ${{ matrix.targets }} \ ${{ steps.cargo-flags.outputs.flags }} - working-directory: rust/pact_verifier_cli + working-directory: crates/pact_verifier_cli - name: Build FFI library if: | @@ -106,13 +103,13 @@ jobs: run: | ./release-${{ steps.platform-abbreviation.outputs.platform }}.sh ${{ matrix.targets }} \ ${{ steps.cargo-flags.outputs.flags }} - working-directory: rust/pact_ffi + working-directory: crates/pact_ffi - name: Upload Release Assets if: ${{ github.event_name == 'release' }} uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: rust/release_artifacts/* + file: release_artifacts/* file_glob: true tag: ${{ github.ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..24dacc8c7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,363 @@ +--- +name: Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + types: + - opened + - synchronize + - reopened + - ready_for_review + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +env: + FORCE_COLOR: '1' + NEXTEST_PROFILE: ci + pact_do_not_track: 'true' + +jobs: + # MARK: Sentinel + + complete: + name: CI complete + if: always() + needs: + - test + - compat + - ffi + - musl + - features + - wasm + - clippy + runs-on: ubuntu-latest + steps: + - name: Fail if any job failed + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 + + # MARK: Cross-platform + + test: + name: Test (${{ matrix.os }}) + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-15 + - windows-latest + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + # Windows builds are dominated by filesystem overhead; ReFS Dev Drives + # avoid most of it. + - name: Set up Dev Drive + if: runner.os == 'Windows' + uses: samypr100/setup-dev-drive@562171fe8df7401fdf582d766cd3b6ab80d5b1a0 # v4.1.0 + with: + drive-size: 12GB + workspace-copy: true + env-mapping: | + CARGO_HOME,{{ DEV_DRIVE }}/.cargo + RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup + + - name: Resolve workspace root + shell: bash + run: echo "WORKSPACE_ROOT=${DEV_DRIVE_WORKSPACE:-$GITHUB_WORKSPACE}" >> "$GITHUB_ENV" + + - name: Install macOS dependencies + if: runner.os == 'macOS' + run: brew install shared-mime-info + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache-workspaces: ${{ env.WORKSPACE_ROOT }} -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + - name: Install tools + uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + with: + working_directory: ${{ env.WORKSPACE_ROOT }} + install_args: aqua:nextest-rs/nextest/cargo-nextest + cache_save: ${{ github.ref == 'refs/heads/master' }} + + - name: Run tests + working-directory: ${{ env.WORKSPACE_ROOT }} + env: + RUST_LOG: debug + run: cargo nextest run --workspace + + # nextest does not run doctests. This step and the ones below run even + # when nextest fails, so one failure does not hide the rest. + - name: Run doctests + if: ${{ !cancelled() }} + working-directory: ${{ env.WORKSPACE_ROOT }} + run: cargo test --workspace --doc --no-fail-fast + + - name: Run mock server log test + if: ${{ !cancelled() }} + working-directory: ${{ env.WORKSPACE_ROOT }} + run: cargo nextest run -p pact_ffi --run-ignored only -E 'test(=returns_mock_server_logs)' + + - name: Run tests with the V2 matching engine + if: ${{ !cancelled() && runner.os == 'Linux' }} + continue-on-error: true + working-directory: ${{ env.WORKSPACE_ROOT }} + env: + RUST_LOG: debug + PACT_MATCHING_ENGINE: v2 + PACT_V2_MATCHING_LOG_EXECUTED_PLAN: '1' + run: cargo nextest run --workspace + + compat: + name: Compatibility suite (${{ matrix.os }}) + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-15 + - windows-latest + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Dev Drive + if: runner.os == 'Windows' + uses: samypr100/setup-dev-drive@562171fe8df7401fdf582d766cd3b6ab80d5b1a0 # v4.1.0 + with: + drive-size: 12GB + workspace-copy: true + env-mapping: | + CARGO_HOME,{{ DEV_DRIVE }}/.cargo + RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup + + - name: Resolve workspace root + shell: bash + run: echo "WORKSPACE_ROOT=${DEV_DRIVE_WORKSPACE:-$GITHUB_WORKSPACE}" >> "$GITHUB_ENV" + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache-workspaces: ${{ env.WORKSPACE_ROOT }}/compatibility-suite -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + # The cucumber binaries use `harness = false`, which nextest cannot drive. + - name: Run cucumber suites + working-directory: ${{ env.WORKSPACE_ROOT }}/compatibility-suite + run: cargo test --no-fail-fast + + ffi: + name: FFI (${{ matrix.os }}) + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-15 + - windows-latest + runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Dev Drive + if: runner.os == 'Windows' + uses: samypr100/setup-dev-drive@562171fe8df7401fdf582d766cd3b6ab80d5b1a0 # v4.1.0 + with: + drive-size: 12GB + workspace-copy: true + env-mapping: | + CARGO_HOME,{{ DEV_DRIVE }}/.cargo + RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup + + - name: Resolve workspace root + run: echo "WORKSPACE_ROOT=${DEV_DRIVE_WORKSPACE:-$GITHUB_WORKSPACE}" >> "$GITHUB_ENV" + + - name: Install macOS dependencies + if: runner.os == 'macOS' + run: brew install shared-mime-info gettext + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache-workspaces: ${{ env.WORKSPACE_ROOT }} -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + # cbindgen's macro expansion passes `-Zunpretty=expanded`, which only + # nightly accepts. The library itself builds with the pinned toolchain. + - name: Install nightly for cbindgen + run: rustup toolchain install nightly --profile minimal + + - name: Install tools + uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + with: + working_directory: ${{ env.WORKSPACE_ROOT }} + install_args: aqua:cargo-bins/cargo-binstall cargo:cbindgen just + cache_save: ${{ github.ref == 'refs/heads/master' }} + + - name: Install Conan + uses: conan-io/setup-conan@ed3942a6883243f4af84e13e49c972f9440fa1c2 # v1.4.0 + + - name: Restore Conan packages + id: conan-cache + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.conan2/p + key: conan-${{ runner.os }}-${{ hashFiles('c/*/conanfile.txt') }} + restore-keys: conan-${{ runner.os }}- + + - name: Check plugin log callback headers + if: runner.os == 'Linux' + working-directory: ${{ env.WORKSPACE_ROOT }}/crates/pact_ffi + run: bash tests/check-plugin-log-callback.sh + + - name: Build pact_ffi and run its examples + working-directory: ${{ env.WORKSPACE_ROOT }}/crates/pact_ffi + run: ./ci-build.sh + + - name: Run C consumer example + working-directory: ${{ env.WORKSPACE_ROOT }}/c/consumer + run: PACT_FFI_PREBUILT_DIR="$WORKSPACE_ROOT/crates/pact_ffi/build/install" just run + + - name: Run C provider example + working-directory: ${{ env.WORKSPACE_ROOT }}/c/provider + run: PACT_FFI_PREBUILT_DIR="$WORKSPACE_ROOT/crates/pact_ffi/build/install" just run + + - name: Save Conan packages + if: github.ref == 'refs/heads/master' && steps.conan-cache.outputs.cache-hit != 'true' + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ~/.conan2/p + key: conan-${{ runner.os }}-${{ hashFiles('c/*/conanfile.txt') }} + + # MARK: Linux-only + + musl: + name: Test (musl) + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + runs-on: ubuntu-latest + # The image's own toolchain is unused; rustup installs the pinned one + # from rust-toolchain.toml on first use. + container: rust:alpine + steps: + - name: Install build dependencies + run: >- + apk add --no-cache bash git musl-dev openssl-dev shared-mime-info + protobuf protobuf-dev tar tzdata zlib-dev + + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + components: rustfmt + cache-workspaces: . -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + - name: Build and test + env: + TZ: UTC + run: | + cargo build + cargo test --no-fail-fast + + features: + name: Feature combinations + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache-workspaces: . -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + - name: Install tools + uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + with: + install_args: github:taiki-e/cargo-hack + cache_save: ${{ github.ref == 'refs/heads/master' }} + + # pact-plugin-driver calls `Utc::now()` without enabling chrono's `clock` + # feature, so pact_matching fails to build with `plugins` alone. Check + # that combination again once the driver enables `clock`. + - name: Check each feature + run: | + cargo hack check --workspace --exclude pact_matching --each-feature --no-dev-deps + cargo hack check -p pact_matching --each-feature --no-dev-deps --exclude-features plugins + + wasm: + name: WASM + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + target: wasm32-wasip2 + cache-workspaces: . -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + - name: Build pact_models + working-directory: crates/pact_models + run: cargo build --target wasm32-wasip2 + + - name: Build pact_matching + working-directory: crates/pact_matching + run: cargo build --target wasm32-wasip2 + + clippy: + name: Clippy + if: github.event_name != 'pull_request' || !github.event.pull_request.draft + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + components: clippy + cache-workspaces: . -> target + cache-save-if: ${{ github.ref == 'refs/heads/master' }} + + # No `-D warnings`: only deny-by-default lints fail the job. + - name: Run clippy + run: cargo clippy diff --git a/.github/workflows/trigger_pact_docs_update.yml b/.github/workflows/trigger_pact_docs_update.yml index 8129910ae..60fe20020 100644 --- a/.github/workflows/trigger_pact_docs_update.yml +++ b/.github/workflows/trigger_pact_docs_update.yml @@ -7,6 +7,8 @@ on: paths: - '**.md' +permissions: {} + jobs: run: runs-on: ubuntu-latest diff --git a/CLAUDE.md b/CLAUDE.md index 42e8e1979..6605b166f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,11 +10,9 @@ This is the reference implementation of [Pact](https://pact.io) contract testing ## Build & Test Commands -All Cargo commands must be run from the `rust/` subdirectory (the workspace root): +Cargo commands run from the repository root, which is the workspace root. Crates live under `crates/`. ```bash -cd rust - # Build all crates cargo build @@ -24,6 +22,10 @@ cargo test # Run tests for a specific crate cargo test --package pact_models +# Run tests with nextest, as CI does (install tools with `mise install`) +cargo nextest run --workspace +cargo test --workspace --doc # nextest skips doctests + # Run a single test by name (exact match) cargo test --package pact_models -- my_test_name --exact @@ -53,7 +55,7 @@ cargo build --target wasm32-wasip2 ```bash docker run --rm --user "$(id -u)":"$(id -g)" \ - -v $(pwd):/workspace -w /workspace/rust \ + -v $(pwd):/workspace -w /workspace \ -t -e TZ=UTC pactfoundation/rust-musl-build \ ./scripts/ci-musl-build.sh ``` @@ -90,10 +92,11 @@ pact_verifier_cli pact_ffi ← Standalone CLI / C FFI bindings - **Rust edition**: 2024 for all crates except `pact_ffi` (2021). - **Minimum Rust version**: 1.88.0 (required for edition 2024). +- **Toolchain**: pinned in the root `rust-toolchain.toml`; auxiliary tools (nextest, cargo-hack, cbindgen, just) are pinned in `mise.toml`. cbindgen alone needs a nightly toolchain, for macro expansion. - **Async runtime**: `tokio` throughout (except WASM builds). - **Logging**: `tracing` / `tracing-subscriber` (not `log`). - **Test helpers**: `rstest`, `hamcrest2`, `expectest`, `pretty_assertions` are common dev-dependencies. -- **Workspace patch**: `pact_models` is patched in `rust/Cargo.toml` to always use the local path (`./pact_models`), so changes propagate across all crates without a publish. +- **Workspace patch**: `pact_models` is patched in the root `Cargo.toml` to always use the local path (`./crates/pact_models`), so changes propagate across all crates without a publish. ## Commit Messages diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8707b6e3b..4c7fc39bd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -42,11 +42,10 @@ To build the libraries in this project, you need a working Rust environment. Ref The build tool used is `cargo`. ```shell -cd rust cargo build ``` -This will compile all the libraries and put the generated files in `rust/target/debug`. +This will compile all the libraries and put the generated files in `target/debug`. ### Releasing diff --git a/rust/Cargo.lock b/Cargo.lock similarity index 100% rename from rust/Cargo.lock rename to Cargo.lock diff --git a/rust/Cargo.toml b/Cargo.toml similarity index 74% rename from rust/Cargo.toml rename to Cargo.toml index eeb72f740..b792194c1 100644 --- a/rust/Cargo.toml +++ b/Cargo.toml @@ -1,17 +1,18 @@ [workspace] members = [ - "pact_*" + "crates/pact_*" ] exclude = [ - "pact_mock_server", - "pact_mock_server_cli" + "compatibility-suite", + "crates/pact_mock_server", + "crates/pact_mock_server_cli" ] resolver = "2" [patch.crates-io] # Issue 389 - Pull change into other crates -pact_models = { path = "./pact_models" } -pact_matching = { version = "~2.0.11", path = "./pact_matching" } +pact_models = { path = "./crates/pact_models" } +pact_matching = { version = "~2.0.11", path = "./crates/pact_matching" } # Track unreleased changes in the crates this workspace depends on but doesn't own, so the whole # chain can be built and tested together before any of them are published to crates.io. pact-plugin-driver = { git = "https://github.com/pact-foundation/pact-plugins.git" } diff --git a/rust/Cross.toml b/Cross.toml similarity index 100% rename from rust/Cross.toml rename to Cross.toml diff --git a/rust/Dockerfile.musl-build b/Dockerfile.musl-build similarity index 100% rename from rust/Dockerfile.musl-build rename to Dockerfile.musl-build diff --git a/README.md b/README.md index 377d18dfb..e92a3d044 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ It exposes the core functionality through various crates, as part of the Pact Ru ### Rust -For Rust projects, you can use the Rust crates from this library in your project directly. Refer to the [Rust project readme](rust/README.md). +For Rust projects, you can use the Rust crates from this library in your project directly. Refer to the [Rust project readme](crates/README.md). ### FFI @@ -45,7 +45,7 @@ Lastly, you can also refer to [Hello Pact FFI](https://github.com/YOU54F/hello_f This project contains code to support exposing the core functionality through CLI (Command Line Interface). * [pact_mock_server_cli](https://github.com/pact-foundation/pact-core-mock-server/tree/main/pact_mock_server_cli) -* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/rust/pact_verifier_cli) +* [pact_verifier_cli](https://github.com/pact-foundation/pact-reference/tree/master/crates/pact_verifier_cli) * [pact-stub-server-cli](https://github.com/pact-foundation/pact-stub-server) They are distributed in binary & Docker formats. @@ -57,11 +57,10 @@ To build the libraries in this project, you need a working Rust environment. Re The build tool used is `cargo`. ```shell -cd rust cargo build ``` -This will compile all the libraries and put the generated files in `rust/target/debug`. +This will compile all the libraries and put the generated files in `target/debug`. ## Contributing @@ -69,7 +68,7 @@ See [CONTRIBUTING](CONTRIBUTING.md) (PRs are always welcome!). ## Documentation -Rust library documentation is published to the Rust documentation site [`docs.rs`](https://docs.rs). Refer to the [Rust project README](rust/README.md). +Rust library documentation is published to the Rust documentation site [`docs.rs`](https://docs.rs). Refer to the [Rust project README](crates/README.md). Additional documentation can be found at the main [Pact website](https://pact.io). diff --git a/c/consumer/CMakeLists.txt b/c/consumer/CMakeLists.txt index d1b75a4c0..a6ef38113 100644 --- a/c/consumer/CMakeLists.txt +++ b/c/consumer/CMakeLists.txt @@ -11,17 +11,7 @@ if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/conan_toolchain.cmake") include("${CMAKE_CURRENT_BINARY_DIR}/conan_toolchain.cmake") endif() -# We use [corrosion](https://github.com/corrosion-rs/corrosion) to integrate -# Rust into our C project. -include(FetchContent) -FetchContent_Declare( - Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.5 -) -FetchContent_MakeAvailable(Corrosion) - -get_filename_component(PACT_FFI_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../rust/pact_ffi" ABSOLUTE) +get_filename_component(PACT_FFI_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../crates/pact_ffi" ABSOLUTE) ################################################################################ # Project definition @@ -56,14 +46,44 @@ find_package(ZLIB REQUIRED) # dependencies' build scripts (e.g. mlua's vendored Lua), which cargo bakes # into the cdylib at link time but does not surface to corrosion for the # staticlib, causing missing symbol errors when linking against libpact_ffi.a. -corrosion_import_crate( - MANIFEST_PATH "${PACT_FFI_ROOT}/Cargo.toml" - CRATE_TYPES cdylib -) -corrosion_experimental_cbindgen( - TARGET pact_ffi - HEADER_NAME pact.h -) +# PACT_FFI_PREBUILT_DIR names an install prefix holding lib/ and +# include/pact.h. CI sets it to reuse one release build across projects; +# without it, Corrosion builds pact_ffi from source. +if(DEFINED ENV{PACT_FFI_PREBUILT_DIR}) + file(TO_CMAKE_PATH "$ENV{PACT_FFI_PREBUILT_DIR}" PACT_FFI_PREBUILT_DIR) + add_library(pact_ffi SHARED IMPORTED) + if(WIN32) + set_target_properties(pact_ffi PROPERTIES + IMPORTED_LOCATION "${PACT_FFI_PREBUILT_DIR}/lib/pact_ffi.dll" + IMPORTED_IMPLIB "${PACT_FFI_PREBUILT_DIR}/lib/pact_ffi.dll.lib") + elseif(APPLE) + set_target_properties(pact_ffi PROPERTIES + IMPORTED_LOCATION "${PACT_FFI_PREBUILT_DIR}/lib/libpact_ffi.dylib") + else() + set_target_properties(pact_ffi PROPERTIES + IMPORTED_LOCATION "${PACT_FFI_PREBUILT_DIR}/lib/libpact_ffi.so") + endif() + target_include_directories(pact_ffi INTERFACE "${PACT_FFI_PREBUILT_DIR}/include") +else() + # We use [corrosion](https://github.com/corrosion-rs/corrosion) to + # integrate Rust into our C project. + include(FetchContent) + FetchContent_Declare( + Corrosion + GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git + GIT_TAG v0.5 + ) + FetchContent_MakeAvailable(Corrosion) + + corrosion_import_crate( + MANIFEST_PATH "${PACT_FFI_ROOT}/Cargo.toml" + CRATE_TYPES cdylib + ) + corrosion_experimental_cbindgen( + TARGET pact_ffi + HEADER_NAME pact.h + ) +endif() target_link_libraries( pact_ffi @@ -106,6 +126,14 @@ if(WIN32) ) endif() +# The run recipe loads the library from beside the executable, where +# Corrosion would have built it, so copy the prebuilt one there. +if(DEFINED ENV{PACT_FFI_PREBUILT_DIR}) + add_custom_command(TARGET pact-consumer POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + $ $) +endif() + # Link macOS system frameworks if building on Apple platforms if(APPLE) target_link_libraries( diff --git a/c/consumer/README.md b/c/consumer/README.md index a1328ceb7..b2ec0d136 100644 --- a/c/consumer/README.md +++ b/c/consumer/README.md @@ -33,7 +33,7 @@ The results of the tests are printed to stdout and will exit with a non-zero sta The tests require: -- A C and Rust compiler (Rust compiler requires nightly toolchain) +- A C compiler and a nightly Rust toolchain (the justfile selects nightly, which `cbindgen` needs to generate the header) - CMake (version 3.24 or higher) - Conan (version 2.0 or higher) diff --git a/c/consumer/justfile b/c/consumer/justfile index cec30e3d1..88c8e961d 100644 --- a/c/consumer/justfile +++ b/c/consumer/justfile @@ -1,3 +1,7 @@ +# Without PACT_FFI_PREBUILT_DIR, Corrosion builds pact_ffi, and cbindgen's +# macro expansion needs a nightly toolchain. +export RUSTUP_TOOLCHAIN := env("RUSTUP_TOOLCHAIN", "nightly") + [unix] build: conan install . --output-folder=build --build=missing diff --git a/c/provider/CMakeLists.txt b/c/provider/CMakeLists.txt index 0245644e8..7f76ca7b8 100644 --- a/c/provider/CMakeLists.txt +++ b/c/provider/CMakeLists.txt @@ -11,17 +11,7 @@ if(EXISTS "${CMAKE_CURRENT_BINARY_DIR}/conan_toolchain.cmake") include("${CMAKE_CURRENT_BINARY_DIR}/conan_toolchain.cmake") endif() -# We use [corrosion](https://github.com/corrosion-rs/corrosion) to integrate -# Rust into our C project. -include(FetchContent) -FetchContent_Declare( - Corrosion - GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git - GIT_TAG v0.5 -) -FetchContent_MakeAvailable(Corrosion) - -get_filename_component(PACT_FFI_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../rust/pact_ffi" ABSOLUTE) +get_filename_component(PACT_FFI_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../crates/pact_ffi" ABSOLUTE) ################################################################################ # Project definition @@ -55,14 +45,44 @@ find_package(ZLIB REQUIRED) # dependencies' build scripts (e.g. mlua's vendored Lua), which cargo bakes # into the cdylib at link time but does not surface to corrosion for the # staticlib, causing missing symbol errors when linking against libpact_ffi.a. -corrosion_import_crate( - MANIFEST_PATH "${PACT_FFI_ROOT}/Cargo.toml" - CRATE_TYPES cdylib -) -corrosion_experimental_cbindgen( - TARGET pact_ffi - HEADER_NAME pact.h -) +# PACT_FFI_PREBUILT_DIR names an install prefix holding lib/ and +# include/pact.h. CI sets it to reuse one release build across projects; +# without it, Corrosion builds pact_ffi from source. +if(DEFINED ENV{PACT_FFI_PREBUILT_DIR}) + file(TO_CMAKE_PATH "$ENV{PACT_FFI_PREBUILT_DIR}" PACT_FFI_PREBUILT_DIR) + add_library(pact_ffi SHARED IMPORTED) + if(WIN32) + set_target_properties(pact_ffi PROPERTIES + IMPORTED_LOCATION "${PACT_FFI_PREBUILT_DIR}/lib/pact_ffi.dll" + IMPORTED_IMPLIB "${PACT_FFI_PREBUILT_DIR}/lib/pact_ffi.dll.lib") + elseif(APPLE) + set_target_properties(pact_ffi PROPERTIES + IMPORTED_LOCATION "${PACT_FFI_PREBUILT_DIR}/lib/libpact_ffi.dylib") + else() + set_target_properties(pact_ffi PROPERTIES + IMPORTED_LOCATION "${PACT_FFI_PREBUILT_DIR}/lib/libpact_ffi.so") + endif() + target_include_directories(pact_ffi INTERFACE "${PACT_FFI_PREBUILT_DIR}/include") +else() + # We use [corrosion](https://github.com/corrosion-rs/corrosion) to + # integrate Rust into our C project. + include(FetchContent) + FetchContent_Declare( + Corrosion + GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git + GIT_TAG v0.5 + ) + FetchContent_MakeAvailable(Corrosion) + + corrosion_import_crate( + MANIFEST_PATH "${PACT_FFI_ROOT}/Cargo.toml" + CRATE_TYPES cdylib + ) + corrosion_experimental_cbindgen( + TARGET pact_ffi + HEADER_NAME pact.h + ) +endif() target_link_libraries( pact_ffi @@ -121,6 +141,14 @@ if(WIN32) ) endif() +# The run recipe loads the library from beside the executable, where +# Corrosion would have built it, so copy the prebuilt one there. +if(DEFINED ENV{PACT_FFI_PREBUILT_DIR}) + add_custom_command(TARGET pact-provider POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + $ $) +endif() + # Link macOS system frameworks if building on Apple platforms if(APPLE) target_link_libraries( diff --git a/c/provider/README.md b/c/provider/README.md index 8afebdb38..a702c6337 100644 --- a/c/provider/README.md +++ b/c/provider/README.md @@ -34,7 +34,7 @@ It assumes that the consumer contracts have already been generated by running th The verification tests require: -- A C and Rust compiler (Rust compiler requires nightly toolchain) +- A C compiler and a nightly Rust toolchain (the justfile selects nightly, which `cbindgen` needs to generate the header) - CMake (version 3.24 or higher) - Conan (version 2.0 or higher) diff --git a/c/provider/justfile b/c/provider/justfile index 0ae8e1568..599281de7 100644 --- a/c/provider/justfile +++ b/c/provider/justfile @@ -1,3 +1,7 @@ +# Without PACT_FFI_PREBUILT_DIR, Corrosion builds pact_ffi, and cbindgen's +# macro expansion needs a nightly toolchain. +export RUSTUP_TOOLCHAIN := env("RUSTUP_TOOLCHAIN", "nightly") + [unix] build: conan install . --output-folder=build --build=missing diff --git a/compatibility-suite/Cargo.toml b/compatibility-suite/Cargo.toml index 3d6b7b149..2bb512ec9 100644 --- a/compatibility-suite/Cargo.toml +++ b/compatibility-suite/Cargo.toml @@ -12,11 +12,11 @@ cucumber = "0.23.0" itertools = "0.15.0" lazy_static = "1.5.0" maplit = "1.0.2" -pact_consumer = { path = "../rust/pact_consumer" } +pact_consumer = { path = "../crates/pact_consumer" } pact_models = { version = "1.3.16" } pact_matching = { version = "2.0.11" } pact_mock_server = { version = "~2.2.5" } -pact_verifier = { path = "../rust/pact_verifier" } +pact_verifier = { path = "../crates/pact_verifier" } regex = "1.10.2" reqwest = { version = "0.13.4", default-features = false, features = ["json"] } rocket = { version = "0.5.0", features = ["json"] } @@ -30,8 +30,8 @@ tracing-subscriber = { version = "0.3.19", features = ["env-filter", "tracing-lo uuid = { version = "1.5.0", features = ["v4"] } [patch.crates-io] -pact_models = { path = "../rust/pact_models" } -pact_matching = { path = "../rust/pact_matching" } +pact_models = { path = "../crates/pact_models" } +pact_matching = { path = "../crates/pact_matching" } pact-plugin-driver = { git = "https://github.com/pact-foundation/pact-plugins.git" } pact_mock_server = { git = "https://github.com/pact-foundation/pact-core-mock-server.git" } diff --git a/rust/README.md b/crates/README.md similarity index 89% rename from rust/README.md rename to crates/README.md index f12da1511..e5d65736c 100644 --- a/rust/README.md +++ b/crates/README.md @@ -1,7 +1,6 @@ ![Logo of the project](https://raw.githubusercontent.com/pact-foundation/pact-reference/master/images/logo.svg) -[![Pact-Rust Build](https://github.com/pact-foundation/pact-reference/workflows/Pact-Rust%20Build/badge.svg)](https://github.com/pact-foundation/pact-reference/actions?query=workflow%3A%22Pact-Rust+Build%22) -[![Windows Build status](https://ci.appveyor.com/api/projects/status/bqlb7ny924lsu6yi?svg=true)](https://ci.appveyor.com/project/pact-foundation/pact-reference) +[![Test](https://github.com/pact-foundation/pact-reference/actions/workflows/test.yml/badge.svg)](https://github.com/pact-foundation/pact-reference/actions/workflows/test.yml) # Pact-Rust > Pact implementation written in Rust. @@ -22,7 +21,7 @@ The project crates are published to crates.io, and you can use them directly. For a Rust consumer, refer to the [pact_consumer](./pact_consumer) crate. -You can find examples where the [integration to the Pact Broker](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_verifier/tests/tests.rs) is tested using +You can find examples where the [integration to the Pact Broker](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_verifier/tests/tests.rs) is tested using Pact tests written with the `pact_consumer` crate. #### Verifying Providers @@ -87,11 +86,10 @@ Rust 2024 edition (1.88.0 or later). The build tool used is `cargo`. ```shell -cd rust cargo build ``` -This will compile all the libraries and put the generated files in `rust/target/debug`. +This will compile all the libraries and put the generated files in `target/debug`. ### Releasing diff --git a/rust/pact_consumer/CHANGELOG.md b/crates/pact_consumer/CHANGELOG.md similarity index 100% rename from rust/pact_consumer/CHANGELOG.md rename to crates/pact_consumer/CHANGELOG.md diff --git a/rust/pact_consumer/Cargo.toml b/crates/pact_consumer/Cargo.toml similarity index 98% rename from rust/pact_consumer/Cargo.toml rename to crates/pact_consumer/Cargo.toml index e92999023..bac0e8eb2 100644 --- a/rust/pact_consumer/Cargo.toml +++ b/crates/pact_consumer/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Ronald Holshausen ", "Eric Kidd anyhow::Result<()> { #[test_log::test] fn mock_server_passing_validation_blocking() -> anyhow::Result<()> { + install_crypto_provider(); let alice_service = PactBuilder::new_v4("BlockingConsumer", "Alice Service") .interaction("a retrieve Mallory request", "", |mut i| { i.given("there is some good mallory"); @@ -331,6 +337,7 @@ async fn post_json_with_incorrect_content_type() { // Issue #300 #[test_log::test(tokio::test)] async fn multi_value_headers() { + install_crypto_provider(); let alice_service = PactBuilder::new_v4("Consumer", "Alice Service") .interaction("a retrieve Mallory request", "", |mut i| { i.given("there is some good mallory"); diff --git a/rust/pact_ffi/ARCHITECTURE.md b/crates/pact_ffi/ARCHITECTURE.md similarity index 100% rename from rust/pact_ffi/ARCHITECTURE.md rename to crates/pact_ffi/ARCHITECTURE.md diff --git a/rust/pact_ffi/CHANGELOG.md b/crates/pact_ffi/CHANGELOG.md similarity index 100% rename from rust/pact_ffi/CHANGELOG.md rename to crates/pact_ffi/CHANGELOG.md diff --git a/rust/pact_ffi/CMakeLists.txt b/crates/pact_ffi/CMakeLists.txt similarity index 98% rename from rust/pact_ffi/CMakeLists.txt rename to crates/pact_ffi/CMakeLists.txt index bc751ce04..94feb51ee 100644 --- a/rust/pact_ffi/CMakeLists.txt +++ b/crates/pact_ffi/CMakeLists.txt @@ -146,10 +146,6 @@ endif() # Uses the finder specified in `cmake/FindCargo.cmake` find_package(Cargo) -if(NOT CARGO_CHANNEL STREQUAL "nightly") - message(FATAL_ERROR "${NAME_STRING} requires a nightly Cargo version to build.") -endif() - # Uses the finder specified in `cmake/FindCbindgen.cmake` find_package(Cbindgen) @@ -176,7 +172,7 @@ endif() # the workspace root and get the target dir from that, and in a more general context # that's what ought to be done, but for now we know where the target dir is, and should # just reuse it. -set(CARGO_TARGET_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../target") +set(CARGO_TARGET_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../target") # The name of the crate itself. set(CRATE_NAME ${NAME_STRING}) diff --git a/rust/pact_ffi/Cargo.toml b/crates/pact_ffi/Cargo.toml similarity index 98% rename from rust/pact_ffi/Cargo.toml rename to crates/pact_ffi/Cargo.toml index 570499aef..f42ab6ffe 100644 --- a/rust/pact_ffi/Cargo.toml +++ b/crates/pact_ffi/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Ronald Holshausen ", "Matt Fellows ::None` encoding (`2`) instead of -the required false byte (`0`), causing foreign-language callers to interpret -false results as true. The 0.5.10 Linux x86_64 release artifacts exhibited this -issue; the same reduced example returns `0` with Rust 1.98.1. - -Keep the release compiler pinned until a corrected compiler is verified through -a foreign-language caller. Rust-only tests can miss this regression because -the lowest bit of the invalid return byte is still zero. This pin applies to -native release builds, not the nightly toolchain used to generate C headers. -Already-published artifacts are not repaired by this change; corrected artifacts -require rebuilding and a separate release. +The root `rust-toolchain.toml` pins the compiler for every build, releases +included. Rust 1.99.0 miscompiled C `bool` returns on Linux x86_64 +([rust-lang/rust#163911](https://github.com/rust-lang/rust/issues/163911)): +optimised code could return the `Option::None` encoding (`2`) in place +of the false byte (`0`), so foreign-language callers read false results as +true. The 0.5.10 Linux x86_64 release artifacts carry this defect. Rust 1.99.1 +contains the fix. + +Rust-only tests can miss this class of regression, because the lowest bit of +the invalid return byte is still zero. Check a new compiler through a +foreign-language caller before raising the pin. Header generation uses nightly +and is unaffected by the pin. ## Building with CMake @@ -102,7 +100,7 @@ $ cmake --build . ## Architecture You can read about the architecture and design choices of this crate in -[ARCHITECTURE.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/ARCHITECTURE.md). +[ARCHITECTURE.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/ARCHITECTURE.md). ## Compatibility diff --git a/rust/pact_ffi/build.rs b/crates/pact_ffi/build.rs similarity index 100% rename from rust/pact_ffi/build.rs rename to crates/pact_ffi/build.rs diff --git a/rust/pact_ffi/cbindgen-c++.toml b/crates/pact_ffi/cbindgen-c++.toml similarity index 100% rename from rust/pact_ffi/cbindgen-c++.toml rename to crates/pact_ffi/cbindgen-c++.toml diff --git a/rust/pact_ffi/cbindgen.toml b/crates/pact_ffi/cbindgen.toml similarity index 100% rename from rust/pact_ffi/cbindgen.toml rename to crates/pact_ffi/cbindgen.toml diff --git a/crates/pact_ffi/ci-build.sh b/crates/pact_ffi/ci-build.sh new file mode 100755 index 000000000..97e38e0ef --- /dev/null +++ b/crates/pact_ffi/ci-build.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# Builds pact_ffi in release through its CMake project, installs it under +# build/install (lib/ + include/pact.h), then builds and runs every example +# in examples/ against that install. +set -euo pipefail + +cd "$(dirname "$0")" +install_dir="$PWD/build/install" + +# MARK: Library + +cmake -S . -B build -DCMAKE_BUILD_TYPE=Release +cmake --build build --config Release +cmake --build build --config Release --target generate_header +cmake --install build --config Release --prefix "$install_dir" + +# MARK: Examples + +for example in examples/*/; do + name=$(basename "$example") + build_dir="build/examples/$name" + echo "::group::Example $name" + cmake -S "$example" -B "$build_dir" -DCMAKE_BUILD_TYPE=Release + cmake --build "$build_dir" --config Release + case "$(uname -s)" in + MINGW* | MSYS* | CYGWIN*) + PATH="$install_dir/lib:$PATH" "$build_dir/Release/example.exe" + ;; + Darwin) + DYLD_LIBRARY_PATH="$install_dir/lib" "$build_dir/example" + ;; + *) + LD_LIBRARY_PATH="$install_dir/lib" "$build_dir/example" + ;; + esac + echo "::endgroup::" +done diff --git a/rust/pact_ffi/cmake/FindCargo.cmake b/crates/pact_ffi/cmake/FindCargo.cmake similarity index 79% rename from rust/pact_ffi/cmake/FindCargo.cmake rename to crates/pact_ffi/cmake/FindCargo.cmake index 23eb54762..f0059bad0 100644 --- a/rust/pact_ffi/cmake/FindCargo.cmake +++ b/crates/pact_ffi/cmake/FindCargo.cmake @@ -8,13 +8,13 @@ set(CARGO_CHANNEL "stable") # If we found it, see if we can get its version. if(CARGO_EXECUTABLE) - execute_process(COMMAND ${CARGO_EXECUTABLE} +nightly -V OUTPUT_VARIABLE CARGO_VERSION_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE) + execute_process(COMMAND ${CARGO_EXECUTABLE} -V OUTPUT_VARIABLE CARGO_VERSION_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE) if(CARGO_VERSION_OUTPUT MATCHES "cargo ([0-9]+\\.[0-9]+\\.[0-9]+).*") set(CARGO_VERSION ${CMAKE_MATCH_1}) endif() - execute_process(COMMAND ${CARGO_EXECUTABLE} +nightly -V OUTPUT_VARIABLE CARGO_CHANNEL_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE) + execute_process(COMMAND ${CARGO_EXECUTABLE} -V OUTPUT_VARIABLE CARGO_CHANNEL_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE) if(CARGO_CHANNEL_OUTPUT MATCHES "cargo [0-9]+\\.[0-9]+\\.[0-9]+-([a-zA-Z]*).*") set(CARGO_CHANNEL ${CMAKE_MATCH_1}) diff --git a/rust/pact_ffi/cmake/FindCbindgen.cmake b/crates/pact_ffi/cmake/FindCbindgen.cmake similarity index 100% rename from rust/pact_ffi/cmake/FindCbindgen.cmake rename to crates/pact_ffi/cmake/FindCbindgen.cmake diff --git a/rust/pact_ffi/cmake/PactFfiConfig.cmake.in b/crates/pact_ffi/cmake/PactFfiConfig.cmake.in similarity index 100% rename from rust/pact_ffi/cmake/PactFfiConfig.cmake.in rename to crates/pact_ffi/cmake/PactFfiConfig.cmake.in diff --git a/rust/pact_ffi/conan/dll/conanfile.py b/crates/pact_ffi/conan/dll/conanfile.py similarity index 100% rename from rust/pact_ffi/conan/dll/conanfile.py rename to crates/pact_ffi/conan/dll/conanfile.py diff --git a/rust/pact_ffi/conan/dll/test_package/CMakeLists.txt b/crates/pact_ffi/conan/dll/test_package/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/conan/dll/test_package/CMakeLists.txt rename to crates/pact_ffi/conan/dll/test_package/CMakeLists.txt diff --git a/rust/pact_ffi/conan/dll/test_package/conanfile.py b/crates/pact_ffi/conan/dll/test_package/conanfile.py similarity index 100% rename from rust/pact_ffi/conan/dll/test_package/conanfile.py rename to crates/pact_ffi/conan/dll/test_package/conanfile.py diff --git a/rust/pact_ffi/conan/dll/test_package/example.cpp b/crates/pact_ffi/conan/dll/test_package/example.cpp similarity index 100% rename from rust/pact_ffi/conan/dll/test_package/example.cpp rename to crates/pact_ffi/conan/dll/test_package/example.cpp diff --git a/rust/pact_ffi/conan/lib/conanfile.py b/crates/pact_ffi/conan/lib/conanfile.py similarity index 100% rename from rust/pact_ffi/conan/lib/conanfile.py rename to crates/pact_ffi/conan/lib/conanfile.py diff --git a/rust/pact_ffi/conan/lib/test_package/CMakeLists.txt b/crates/pact_ffi/conan/lib/test_package/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/conan/lib/test_package/CMakeLists.txt rename to crates/pact_ffi/conan/lib/test_package/CMakeLists.txt diff --git a/rust/pact_ffi/conan/lib/test_package/conanfile.py b/crates/pact_ffi/conan/lib/test_package/conanfile.py similarity index 100% rename from rust/pact_ffi/conan/lib/test_package/conanfile.py rename to crates/pact_ffi/conan/lib/test_package/conanfile.py diff --git a/rust/pact_ffi/conan/lib/test_package/example.cpp b/crates/pact_ffi/conan/lib/test_package/example.cpp similarity index 100% rename from rust/pact_ffi/conan/lib/test_package/example.cpp rename to crates/pact_ffi/conan/lib/test_package/example.cpp diff --git a/rust/pact_ffi/examples/error_handling/CMakeLists.txt b/crates/pact_ffi/examples/error_handling/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/examples/error_handling/CMakeLists.txt rename to crates/pact_ffi/examples/error_handling/CMakeLists.txt diff --git a/rust/pact_ffi/examples/error_handling/src/main.c b/crates/pact_ffi/examples/error_handling/src/main.c similarity index 100% rename from rust/pact_ffi/examples/error_handling/src/main.c rename to crates/pact_ffi/examples/error_handling/src/main.c diff --git a/rust/pact_ffi/examples/logging/CMakeLists.txt b/crates/pact_ffi/examples/logging/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/examples/logging/CMakeLists.txt rename to crates/pact_ffi/examples/logging/CMakeLists.txt diff --git a/rust/pact_ffi/examples/logging/src/main.c b/crates/pact_ffi/examples/logging/src/main.c similarity index 100% rename from rust/pact_ffi/examples/logging/src/main.c rename to crates/pact_ffi/examples/logging/src/main.c diff --git a/rust/pact_ffi/examples/matching_expressions/CMakeLists.txt b/crates/pact_ffi/examples/matching_expressions/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/examples/matching_expressions/CMakeLists.txt rename to crates/pact_ffi/examples/matching_expressions/CMakeLists.txt diff --git a/rust/pact_ffi/examples/matching_expressions/src/main.c b/crates/pact_ffi/examples/matching_expressions/src/main.c similarity index 100% rename from rust/pact_ffi/examples/matching_expressions/src/main.c rename to crates/pact_ffi/examples/matching_expressions/src/main.c diff --git a/rust/pact_ffi/examples/matching_values/CMakeLists.txt b/crates/pact_ffi/examples/matching_values/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/examples/matching_values/CMakeLists.txt rename to crates/pact_ffi/examples/matching_values/CMakeLists.txt diff --git a/rust/pact_ffi/examples/matching_values/src/main.c b/crates/pact_ffi/examples/matching_values/src/main.c similarity index 100% rename from rust/pact_ffi/examples/matching_values/src/main.c rename to crates/pact_ffi/examples/matching_values/src/main.c diff --git a/rust/pact_ffi/examples/normal_usage/CMakeLists.txt b/crates/pact_ffi/examples/normal_usage/CMakeLists.txt similarity index 100% rename from rust/pact_ffi/examples/normal_usage/CMakeLists.txt rename to crates/pact_ffi/examples/normal_usage/CMakeLists.txt diff --git a/rust/pact_ffi/examples/normal_usage/src/main.c b/crates/pact_ffi/examples/normal_usage/src/main.c similarity index 100% rename from rust/pact_ffi/examples/normal_usage/src/main.c rename to crates/pact_ffi/examples/normal_usage/src/main.c diff --git a/rust/pact_ffi/include/.gitignore b/crates/pact_ffi/include/.gitignore similarity index 100% rename from rust/pact_ffi/include/.gitignore rename to crates/pact_ffi/include/.gitignore diff --git a/rust/pact_ffi/publish.md b/crates/pact_ffi/publish.md similarity index 100% rename from rust/pact_ffi/publish.md rename to crates/pact_ffi/publish.md diff --git a/crates/pact_ffi/release-ios.sh b/crates/pact_ffi/release-ios.sh new file mode 100755 index 000000000..df0c56a22 --- /dev/null +++ b/crates/pact_ffi/release-ios.sh @@ -0,0 +1,10 @@ +#!/bin/bash -x +# Requires all architectures to be added to in order to produce universal library for iOS. +# ```rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios x86_64-apple-ios i386-apple-ios +# cargo install cargo-lipo``` + +cargo clean +cargo lipo --release +mkdir -p ../../release_artifacts +gzip -c ../../target/universal/release/libpact_ffi.a > ../../release_artifacts/libpact_ffi-ios-universal.a.gz +openssl dgst -sha256 -r ../../release_artifacts/libpact_ffi-ios-universal.a.gz > ../../release_artifacts/libpact_ffi-ios-universal.a.gz.sha256 diff --git a/rust/pact_ffi/release-linux.sh b/crates/pact_ffi/release-linux.sh similarity index 97% rename from rust/pact_ffi/release-linux.sh rename to crates/pact_ffi/release-linux.sh index 91b960444..4ed5c2d5c 100755 --- a/rust/pact_ffi/release-linux.sh +++ b/crates/pact_ffi/release-linux.sh @@ -3,7 +3,7 @@ set -e set -x -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" APP_NAME=libpact_ffi source "$RUST_DIR/scripts/gzip-and-sum.sh" diff --git a/rust/pact_ffi/release-macos.sh b/crates/pact_ffi/release-macos.sh similarity index 96% rename from rust/pact_ffi/release-macos.sh rename to crates/pact_ffi/release-macos.sh index f4edfcada..931fd7f85 100755 --- a/rust/pact_ffi/release-macos.sh +++ b/crates/pact_ffi/release-macos.sh @@ -3,7 +3,7 @@ set -e set -x -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" APP_NAME=libpact_ffi source "$RUST_DIR/scripts/gzip-and-sum.sh" diff --git a/rust/pact_ffi/release-win.sh b/crates/pact_ffi/release-win.sh similarity index 95% rename from rust/pact_ffi/release-win.sh rename to crates/pact_ffi/release-win.sh index 4cfb26d89..0ae39d035 100755 --- a/rust/pact_ffi/release-win.sh +++ b/crates/pact_ffi/release-win.sh @@ -3,7 +3,7 @@ set -e set -x -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" APP_NAME=pact_ffi source "$RUST_DIR/scripts/gzip-and-sum.sh" diff --git a/rust/pact_ffi/release.groovy b/crates/pact_ffi/release.groovy similarity index 97% rename from rust/pact_ffi/release.groovy rename to crates/pact_ffi/release.groovy index fd36886ba..f415671cb 100755 --- a/rust/pact_ffi/release.groovy +++ b/crates/pact_ffi/release.groovy @@ -39,7 +39,7 @@ executeOnShell 'git pull' ask('Execute Build?: [Y]') { executeOnShell 'cargo clean' - executeOnShell 'mkdir -p ../release_artifacts' + executeOnShell 'mkdir -p ../../release_artifacts' executeOnShell 'cargo build' executeOnShell 'cargo test' } @@ -119,7 +119,7 @@ ask("Bump version to $nextVer?: [Y]") { executeOnShell "sed -i -e 's/version = \"${releaseVer}\"/version = \"${nextVer}\"/' conan/dll/conanfile.py" executeOnShell("cargo update") executeOnShell("git add Cargo.toml README.md conan/lib/conanfile.py conan/dll/conanfile.py") - executeOnShell("git add ../Cargo.lock") + executeOnShell("git add ../../Cargo.lock") executeOnShell("git diff --cached") ask("Commit and push this change?: [Y]") { executeOnShell("git commit -m 'bump version to $nextVer'") diff --git a/rust/pact_ffi/src/error/any_error.rs b/crates/pact_ffi/src/error/any_error.rs similarity index 100% rename from rust/pact_ffi/src/error/any_error.rs rename to crates/pact_ffi/src/error/any_error.rs diff --git a/rust/pact_ffi/src/error/error_msg.rs b/crates/pact_ffi/src/error/error_msg.rs similarity index 100% rename from rust/pact_ffi/src/error/error_msg.rs rename to crates/pact_ffi/src/error/error_msg.rs diff --git a/rust/pact_ffi/src/error/ffi.rs b/crates/pact_ffi/src/error/ffi.rs similarity index 100% rename from rust/pact_ffi/src/error/ffi.rs rename to crates/pact_ffi/src/error/ffi.rs diff --git a/rust/pact_ffi/src/error/last_error.rs b/crates/pact_ffi/src/error/last_error.rs similarity index 100% rename from rust/pact_ffi/src/error/last_error.rs rename to crates/pact_ffi/src/error/last_error.rs diff --git a/rust/pact_ffi/src/error/mod.rs b/crates/pact_ffi/src/error/mod.rs similarity index 100% rename from rust/pact_ffi/src/error/mod.rs rename to crates/pact_ffi/src/error/mod.rs diff --git a/rust/pact_ffi/src/error/panic.rs b/crates/pact_ffi/src/error/panic.rs similarity index 100% rename from rust/pact_ffi/src/error/panic.rs rename to crates/pact_ffi/src/error/panic.rs diff --git a/rust/pact_ffi/src/error/status.rs b/crates/pact_ffi/src/error/status.rs similarity index 100% rename from rust/pact_ffi/src/error/status.rs rename to crates/pact_ffi/src/error/status.rs diff --git a/rust/pact_ffi/src/lib.rs b/crates/pact_ffi/src/lib.rs similarity index 100% rename from rust/pact_ffi/src/lib.rs rename to crates/pact_ffi/src/lib.rs diff --git a/rust/pact_ffi/src/log/callback_layer.rs b/crates/pact_ffi/src/log/callback_layer.rs similarity index 100% rename from rust/pact_ffi/src/log/callback_layer.rs rename to crates/pact_ffi/src/log/callback_layer.rs diff --git a/rust/pact_ffi/src/log/ffi.rs b/crates/pact_ffi/src/log/ffi.rs similarity index 100% rename from rust/pact_ffi/src/log/ffi.rs rename to crates/pact_ffi/src/log/ffi.rs diff --git a/rust/pact_ffi/src/log/inmem_buffer.rs b/crates/pact_ffi/src/log/inmem_buffer.rs similarity index 100% rename from rust/pact_ffi/src/log/inmem_buffer.rs rename to crates/pact_ffi/src/log/inmem_buffer.rs diff --git a/rust/pact_ffi/src/log/level_filter.rs b/crates/pact_ffi/src/log/level_filter.rs similarity index 100% rename from rust/pact_ffi/src/log/level_filter.rs rename to crates/pact_ffi/src/log/level_filter.rs diff --git a/rust/pact_ffi/src/log/logger.rs b/crates/pact_ffi/src/log/logger.rs similarity index 100% rename from rust/pact_ffi/src/log/logger.rs rename to crates/pact_ffi/src/log/logger.rs diff --git a/rust/pact_ffi/src/log/mod.rs b/crates/pact_ffi/src/log/mod.rs similarity index 100% rename from rust/pact_ffi/src/log/mod.rs rename to crates/pact_ffi/src/log/mod.rs diff --git a/rust/pact_ffi/src/log/plugin_sink.rs b/crates/pact_ffi/src/log/plugin_sink.rs similarity index 100% rename from rust/pact_ffi/src/log/plugin_sink.rs rename to crates/pact_ffi/src/log/plugin_sink.rs diff --git a/rust/pact_ffi/src/log/sink.rs b/crates/pact_ffi/src/log/sink.rs similarity index 100% rename from rust/pact_ffi/src/log/sink.rs rename to crates/pact_ffi/src/log/sink.rs diff --git a/rust/pact_ffi/src/log/status.rs b/crates/pact_ffi/src/log/status.rs similarity index 100% rename from rust/pact_ffi/src/log/status.rs rename to crates/pact_ffi/src/log/status.rs diff --git a/rust/pact_ffi/src/matching.rs b/crates/pact_ffi/src/matching.rs similarity index 100% rename from rust/pact_ffi/src/matching.rs rename to crates/pact_ffi/src/matching.rs diff --git a/rust/pact_ffi/src/mock_server/bodies.rs b/crates/pact_ffi/src/mock_server/bodies.rs similarity index 100% rename from rust/pact_ffi/src/mock_server/bodies.rs rename to crates/pact_ffi/src/mock_server/bodies.rs diff --git a/rust/pact_ffi/src/mock_server/ca.pem b/crates/pact_ffi/src/mock_server/ca.pem similarity index 100% rename from rust/pact_ffi/src/mock_server/ca.pem rename to crates/pact_ffi/src/mock_server/ca.pem diff --git a/rust/pact_ffi/src/mock_server/form_urlencoded.rs b/crates/pact_ffi/src/mock_server/form_urlencoded.rs similarity index 100% rename from rust/pact_ffi/src/mock_server/form_urlencoded.rs rename to crates/pact_ffi/src/mock_server/form_urlencoded.rs diff --git a/rust/pact_ffi/src/mock_server/handles.rs b/crates/pact_ffi/src/mock_server/handles.rs similarity index 99% rename from rust/pact_ffi/src/mock_server/handles.rs rename to crates/pact_ffi/src/mock_server/handles.rs index 0583911cc..d04101ef8 100644 --- a/rust/pact_ffi/src/mock_server/handles.rs +++ b/crates/pact_ffi/src/mock_server/handles.rs @@ -734,7 +734,7 @@ pub extern "C" fn pactffi_given_with_params( /// const char* value = "{\"value\":\"/path/to/100\", \"pact:matcher:type\":\"regex\", \"regex\":\"\\/path\\/to\\/\\\\d+\"}"; /// pactffi_with_request(handle, "GET", value); /// ``` -/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) +/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) #[no_mangle] pub extern "C" fn pactffi_with_request( interaction: InteractionHandle, @@ -853,7 +853,7 @@ pub extern "C" fn pactffi_with_query_parameter( /// const char* value = "{\"value\":\"2\", \"pact:matcher:type\":\"regex\", \"regex\":\"\\\\d+\"}"; /// pactffi_with_query_parameter_v2(handle, "id", 0, value); /// ``` -/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) +/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) /// /// If you want the matching rules to apply to all values (and not just the one with the given /// index), make sure to set the value to be an array. @@ -1218,7 +1218,7 @@ pub extern "C" fn pactffi_with_pact_metadata( /// ``` /// /// See - /// [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) + /// [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) /// /// # Note /// @@ -1451,7 +1451,7 @@ pub extern "C" fn pactffi_with_header( /// const char* value = "{\"value\":\"2\", \"pact:matcher:type\":\"regex\", \"regex\":\"\\\\d+\"}"; /// pactffi_with_header_v2(handle, InteractionPart::Request, "id", 0, value); /// ``` -/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) +/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) /// /// NOTE: If you pass in a form with multiple values, the index will be ignored. /// @@ -1668,7 +1668,7 @@ pub extern "C" fn pactffi_response_status(interaction: InteractionHandle, status /// const char* status = "{ \"pact:generator:type\": \"RandomInt\", \"min\": 100, \"max\": 399, \"pact:matcher:type\":\"statusCode\", \"status\": \"nonError\"}"; /// pactffi_response_status_v2(handle, status); /// ``` -/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) +/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) /// /// # Safety /// The status parameter must be valid pointers to NULL terminated strings. @@ -1814,7 +1814,7 @@ fn process_body( /// internal logic. /// * `body` - The body contents. For JSON payloads, matching rules can be /// embedded in the body. See -/// [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) +/// [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) /// /// The payload's content type is determined as follows, whichever is first: /// @@ -3045,7 +3045,7 @@ pub extern "C" fn pactffi_message_with_metadata(message_handle: MessageHandle, k /// const char* value = "{\"value\": { \"ID\": \"sjhdjkshsdjh\", \"weight\": 100.5 }, \"pact:matcher:type\":\"type\"}"; /// pactffi_message_with_metadata_v2(handle, "TagData", value); /// ``` -/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md) +/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_ffi/IntegrationJson.md) /// /// # Safety /// The key and value parameters must be valid pointers to NULL terminated strings. diff --git a/rust/pact_ffi/src/mock_server/mod.rs b/crates/pact_ffi/src/mock_server/mod.rs similarity index 100% rename from rust/pact_ffi/src/mock_server/mod.rs rename to crates/pact_ffi/src/mock_server/mod.rs diff --git a/rust/pact_ffi/src/mock_server/self-signed.crt b/crates/pact_ffi/src/mock_server/self-signed.crt similarity index 100% rename from rust/pact_ffi/src/mock_server/self-signed.crt rename to crates/pact_ffi/src/mock_server/self-signed.crt diff --git a/rust/pact_ffi/src/mock_server/self-signed.key b/crates/pact_ffi/src/mock_server/self-signed.key similarity index 100% rename from rust/pact_ffi/src/mock_server/self-signed.key rename to crates/pact_ffi/src/mock_server/self-signed.key diff --git a/rust/pact_ffi/src/mock_server/xml.rs b/crates/pact_ffi/src/mock_server/xml.rs similarity index 100% rename from rust/pact_ffi/src/mock_server/xml.rs rename to crates/pact_ffi/src/mock_server/xml.rs diff --git a/rust/pact_ffi/src/models/async_message.rs b/crates/pact_ffi/src/models/async_message.rs similarity index 100% rename from rust/pact_ffi/src/models/async_message.rs rename to crates/pact_ffi/src/models/async_message.rs diff --git a/rust/pact_ffi/src/models/consumer.rs b/crates/pact_ffi/src/models/consumer.rs similarity index 100% rename from rust/pact_ffi/src/models/consumer.rs rename to crates/pact_ffi/src/models/consumer.rs diff --git a/rust/pact_ffi/src/models/contents.rs b/crates/pact_ffi/src/models/contents.rs similarity index 100% rename from rust/pact_ffi/src/models/contents.rs rename to crates/pact_ffi/src/models/contents.rs diff --git a/rust/pact_ffi/src/models/expressions.rs b/crates/pact_ffi/src/models/expressions.rs similarity index 100% rename from rust/pact_ffi/src/models/expressions.rs rename to crates/pact_ffi/src/models/expressions.rs diff --git a/rust/pact_ffi/src/models/generators.rs b/crates/pact_ffi/src/models/generators.rs similarity index 100% rename from rust/pact_ffi/src/models/generators.rs rename to crates/pact_ffi/src/models/generators.rs diff --git a/rust/pact_ffi/src/models/http_interaction.rs b/crates/pact_ffi/src/models/http_interaction.rs similarity index 100% rename from rust/pact_ffi/src/models/http_interaction.rs rename to crates/pact_ffi/src/models/http_interaction.rs diff --git a/rust/pact_ffi/src/models/interactions.rs b/crates/pact_ffi/src/models/interactions.rs similarity index 100% rename from rust/pact_ffi/src/models/interactions.rs rename to crates/pact_ffi/src/models/interactions.rs diff --git a/rust/pact_ffi/src/models/iterators.rs b/crates/pact_ffi/src/models/iterators.rs similarity index 100% rename from rust/pact_ffi/src/models/iterators.rs rename to crates/pact_ffi/src/models/iterators.rs diff --git a/rust/pact_ffi/src/models/matching_rules.rs b/crates/pact_ffi/src/models/matching_rules.rs similarity index 100% rename from rust/pact_ffi/src/models/matching_rules.rs rename to crates/pact_ffi/src/models/matching_rules.rs diff --git a/rust/pact_ffi/src/models/message.rs b/crates/pact_ffi/src/models/message.rs similarity index 100% rename from rust/pact_ffi/src/models/message.rs rename to crates/pact_ffi/src/models/message.rs diff --git a/rust/pact_ffi/src/models/message_pact.rs b/crates/pact_ffi/src/models/message_pact.rs similarity index 100% rename from rust/pact_ffi/src/models/message_pact.rs rename to crates/pact_ffi/src/models/message_pact.rs diff --git a/rust/pact_ffi/src/models/mod.rs b/crates/pact_ffi/src/models/mod.rs similarity index 100% rename from rust/pact_ffi/src/models/mod.rs rename to crates/pact_ffi/src/models/mod.rs diff --git a/rust/pact_ffi/src/models/pact_specification.rs b/crates/pact_ffi/src/models/pact_specification.rs similarity index 100% rename from rust/pact_ffi/src/models/pact_specification.rs rename to crates/pact_ffi/src/models/pact_specification.rs diff --git a/rust/pact_ffi/src/models/provider.rs b/crates/pact_ffi/src/models/provider.rs similarity index 100% rename from rust/pact_ffi/src/models/provider.rs rename to crates/pact_ffi/src/models/provider.rs diff --git a/rust/pact_ffi/src/models/provider_state.rs b/crates/pact_ffi/src/models/provider_state.rs similarity index 100% rename from rust/pact_ffi/src/models/provider_state.rs rename to crates/pact_ffi/src/models/provider_state.rs diff --git a/rust/pact_ffi/src/models/sync_message.rs b/crates/pact_ffi/src/models/sync_message.rs similarity index 100% rename from rust/pact_ffi/src/models/sync_message.rs rename to crates/pact_ffi/src/models/sync_message.rs diff --git a/rust/pact_ffi/src/plugins/mod.rs b/crates/pact_ffi/src/plugins/mod.rs similarity index 100% rename from rust/pact_ffi/src/plugins/mod.rs rename to crates/pact_ffi/src/plugins/mod.rs diff --git a/rust/pact_ffi/src/util/ffi.rs b/crates/pact_ffi/src/util/ffi.rs similarity index 100% rename from rust/pact_ffi/src/util/ffi.rs rename to crates/pact_ffi/src/util/ffi.rs diff --git a/rust/pact_ffi/src/util/mod.rs b/crates/pact_ffi/src/util/mod.rs similarity index 100% rename from rust/pact_ffi/src/util/mod.rs rename to crates/pact_ffi/src/util/mod.rs diff --git a/rust/pact_ffi/src/util/ptr.rs b/crates/pact_ffi/src/util/ptr.rs similarity index 100% rename from rust/pact_ffi/src/util/ptr.rs rename to crates/pact_ffi/src/util/ptr.rs diff --git a/rust/pact_ffi/src/util/string.rs b/crates/pact_ffi/src/util/string.rs similarity index 100% rename from rust/pact_ffi/src/util/string.rs rename to crates/pact_ffi/src/util/string.rs diff --git a/rust/pact_ffi/src/util/write.rs b/crates/pact_ffi/src/util/write.rs similarity index 100% rename from rust/pact_ffi/src/util/write.rs rename to crates/pact_ffi/src/util/write.rs diff --git a/rust/pact_ffi/src/verifier/handle.rs b/crates/pact_ffi/src/verifier/handle.rs similarity index 100% rename from rust/pact_ffi/src/verifier/handle.rs rename to crates/pact_ffi/src/verifier/handle.rs diff --git a/rust/pact_ffi/src/verifier/mod.rs b/crates/pact_ffi/src/verifier/mod.rs similarity index 100% rename from rust/pact_ffi/src/verifier/mod.rs rename to crates/pact_ffi/src/verifier/mod.rs diff --git a/rust/pact_ffi/tests/1px.gif b/crates/pact_ffi/tests/1px.gif similarity index 100% rename from rust/pact_ffi/tests/1px.gif rename to crates/pact_ffi/tests/1px.gif diff --git a/rust/pact_ffi/tests/check-plugin-log-callback.sh b/crates/pact_ffi/tests/check-plugin-log-callback.sh similarity index 100% rename from rust/pact_ffi/tests/check-plugin-log-callback.sh rename to crates/pact_ffi/tests/check-plugin-log-callback.sh diff --git a/rust/pact_ffi/tests/missing-plugin-pact.json b/crates/pact_ffi/tests/missing-plugin-pact.json similarity index 100% rename from rust/pact_ffi/tests/missing-plugin-pact.json rename to crates/pact_ffi/tests/missing-plugin-pact.json diff --git a/rust/pact_ffi/tests/multipart-test-file.json b/crates/pact_ffi/tests/multipart-test-file.json similarity index 100% rename from rust/pact_ffi/tests/multipart-test-file.json rename to crates/pact_ffi/tests/multipart-test-file.json diff --git a/rust/pact_ffi/tests/note.text b/crates/pact_ffi/tests/note.text similarity index 100% rename from rust/pact_ffi/tests/note.text rename to crates/pact_ffi/tests/note.text diff --git a/rust/pact_ffi/tests/pacts/pact-1.json b/crates/pact_ffi/tests/pacts/pact-1.json similarity index 100% rename from rust/pact_ffi/tests/pacts/pact-1.json rename to crates/pact_ffi/tests/pacts/pact-1.json diff --git a/rust/pact_ffi/tests/pacts/pact-2.json b/crates/pact_ffi/tests/pacts/pact-2.json similarity index 100% rename from rust/pact_ffi/tests/pacts/pact-2.json rename to crates/pact_ffi/tests/pacts/pact-2.json diff --git a/rust/pact_ffi/tests/plugin_log_callback.c b/crates/pact_ffi/tests/plugin_log_callback.c similarity index 100% rename from rust/pact_ffi/tests/plugin_log_callback.c rename to crates/pact_ffi/tests/plugin_log_callback.c diff --git a/rust/pact_ffi/tests/tests.rs b/crates/pact_ffi/tests/tests.rs similarity index 99% rename from rust/pact_ffi/tests/tests.rs rename to crates/pact_ffi/tests/tests.rs index d3e9e55fa..90b5644ce 100644 --- a/rust/pact_ffi/tests/tests.rs +++ b/crates/pact_ffi/tests/tests.rs @@ -89,6 +89,13 @@ use pact_models::matchingrules::{MatchingRule, RuleLogic}; use pact_models::matchingrules::matchers_to_json; use pact_models::path_exp::DocPath; +/// HTTP client for calling mock servers. +/// It installs the rustls crypto provider, which the library installs only on its own code paths. +fn http_client() -> Client { + let _ = rustls::crypto::ring::default_provider().install_default(); + Client::default() +} + #[test] fn post_to_mock_server_with_mismatches() { // Refactored to use pactffi_create_mock_server_for_transport and pact handle API @@ -112,7 +119,7 @@ fn post_to_mock_server_with_mismatches() { let port = pactffi_create_mock_server_for_transport(pact_handle, address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); client.post(format!("http://127.0.0.1:{}/path", port).as_str()) .header(CONTENT_TYPE, "application/json") .body(r#"{"foo":"no-very-bar"}"#) @@ -527,7 +534,7 @@ fn http_consumer_feature_test() { // Mock server has started, we can't now modify the pact expect!(pactffi_upon_receiving(interaction.clone(), description.as_ptr())).to(be_false()); - let client = Client::default(); + let client = http_client(); let result = client.post(format!("http://127.0.0.1:{}/request/9999?foo=baz", port).as_str()) .header("Content-Type", "application/json") .header("Authorization", "Bearer 9999") @@ -596,7 +603,7 @@ fn http_xml_consumer_feature_test() { // Mock server has started, we can't now modify the pact expect!(pactffi_upon_receiving(interaction.clone(), description.as_ptr())).to(be_false()); - let client = Client::default(); + let client = http_client(); let result = client.get(format!("http://127.0.0.1:{}/xml", port).as_str()) .header("Accept", "application/xml") .send(); @@ -716,7 +723,7 @@ fn http_xml_consumer_with_examples_and_content_test() { expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.get(format!("http://127.0.0.1:{}/items", port).as_str()) .header("Accept", "application/xml") .send(); @@ -827,7 +834,7 @@ fn pactffi_with_binary_file_feature_test(specification: PactSpecification, expec let port = pactffi_create_mock_server_for_transport(pact_handle.clone(), address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.post(format!("http://127.0.0.1:{}/upload", port).as_str()) .header("Content-Type", "image/gif") .body(buffer) @@ -951,7 +958,7 @@ fn each_value_matcher() { expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.put(format!("http://127.0.0.1:{}/book", port).as_str()) .header("Content-Type", "application/json") .body(r#"{"id1": "book100", "id2": "book2"}"#) @@ -1019,7 +1026,7 @@ fn each_key_matcher() { expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.put(format!("http://127.0.0.1:{}/book", port).as_str()) .header("Content-Type", "application/json") .body(r#"{"1": "foo","not valid": 1,"key": "value","key2": "value"}"#) @@ -1103,7 +1110,7 @@ fn array_contains_matcher() { expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.get(format!("http://127.0.0.1:{}/book", port).as_str()) .header("Content-Type", "application/json") .send(); @@ -1167,7 +1174,7 @@ fn multiple_query_values_with_regex_matcher() { let port = pactffi_create_mock_server_for_transport(pact_handle.clone(), address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.get(format!("http://127.0.0.1:{}/request?foo=1&foo=443&foo=112", port).as_str()) .send(); @@ -1869,7 +1876,7 @@ fn combined_each_key_and_each_value_matcher() { expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let json_body = json!({ "results": { "KGK-9954356": { @@ -1936,7 +1943,7 @@ fn matching_definition_expressions_matcher() { expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let json_body = json!({ "results": { "KGK-9954356": { @@ -1999,7 +2006,7 @@ fn returns_mock_server_logs() { let _ = rustls::crypto::ring::default_provider().install_default(); } - let client = Client::default(); + let client = http_client(); client.post(format!("http://127.0.0.1:{}/path", port).as_str()) .header(CONTENT_TYPE, "application/json") .body(r#"{"foo":"no-very-bar"}"#) @@ -2095,7 +2102,7 @@ fn http_form_urlencoded_consumer_feature_test() { // Mock server has started, we can't now modify the pact expect!(pactffi_upon_receiving(interaction.clone(), description.as_ptr())).to(be_false()); - let client = Client::default(); + let client = http_client(); let result = client.post(format!("http://127.0.0.1:{}/form-urlencoded", port).as_str()) .header("Accept", "application/x-www-form-urlencoded") .header("Content-Type", "application/x-www-form-urlencoded") @@ -2144,7 +2151,7 @@ fn time_matcher_in_query_parameters() { let port = pactffi_create_mock_server_for_transport(pact_handle.clone(), address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.get(format!("http://127.0.0.1:{}/request?item=12:13", port).as_str()) .send(); @@ -2193,7 +2200,7 @@ fn numeric_matcher_passing_test_sending_string_value() { let port = pactffi_create_mock_server_for_transport(pact_handle.clone(), address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let _result = client.post(format!("http://127.0.0.1:{}/request", port).as_str()) .header("Content-Type", "application/json") .body(r#"{"key2":"456","key1":"321.1"}"#) @@ -2245,7 +2252,7 @@ fn include_matcher_in_query_parameters() { let port = pactffi_create_mock_server_for_transport(pact_handle.clone(), address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let result = client.get(format!("http://127.0.0.1:{}/request?item=subway", port).as_str()) .send(); @@ -2304,7 +2311,7 @@ fn mime_multipart() { let port = pactffi_create_mock_server_for_transport(pact_handle.clone(), address.as_ptr(), 0, null(), null()); expect!(port).to(be_greater_than(0)); - let client = Client::default(); + let client = http_client(); let form = reqwest::blocking::multipart::Form::new().text("baz", "bat"); let result = client.post(format!("http://127.0.0.1:{}/formpost", port).as_str()) .multipart(form) @@ -2378,7 +2385,7 @@ fn date_matcher_in_response_body_with_generator_type() { )) .to(be_false()); - let client = Client::default(); + let client = http_client(); let result = client .get(format!("http://127.0.0.1:{}/request", port).as_str()) .send(); @@ -2455,7 +2462,7 @@ fn date_matcher_in_response_body_without_generator_type() { )) .to(be_false()); - let client = Client::default(); + let client = http_client(); let result = client .get(format!("http://127.0.0.1:{}/request", port).as_str()) .send(); @@ -2558,7 +2565,7 @@ fn mime_multipart_with_json_and_image() { expect!(port).to(be_greater_than(0)); // Make actual request with different JSON values and the same JPEG structure - let client = Client::default(); + let client = http_client(); let form = reqwest::blocking::multipart::Form::new() .text("metadata", r#"{"name":"different","size":200}"#) .part( diff --git a/rust/pact_matching/CHANGELOG.md b/crates/pact_matching/CHANGELOG.md similarity index 100% rename from rust/pact_matching/CHANGELOG.md rename to crates/pact_matching/CHANGELOG.md diff --git a/rust/pact_matching/Cargo.toml b/crates/pact_matching/Cargo.toml similarity index 98% rename from rust/pact_matching/Cargo.toml rename to crates/pact_matching/Cargo.toml index 63c96e8b3..9718ed951 100644 --- a/rust/pact_matching/Cargo.toml +++ b/crates/pact_matching/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" description = "Pact-Rust support library that implements request and response matching logic" documentation = "https://docs.rs/pact_matching/" homepage = "https://www.pact.io" -repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_matching" +repository = "https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_matching" readme = "README.md" keywords = ["testing", "pact", "cdc"] license = "MIT" diff --git a/rust/pact_matching/PERFORMANCE.md b/crates/pact_matching/PERFORMANCE.md similarity index 96% rename from rust/pact_matching/PERFORMANCE.md rename to crates/pact_matching/PERFORMANCE.md index 3dbbb07a7..24dce9690 100644 --- a/rust/pact_matching/PERFORMANCE.md +++ b/crates/pact_matching/PERFORMANCE.md @@ -36,7 +36,7 @@ against. Without it you know the code is different but not whether it's better. ## Step 1 — Generate a Flamegraph -The profiling build profile in `rust/Cargo.toml` gives release-speed optimisations +The profiling build profile in the root `Cargo.toml` gives release-speed optimisations with debug symbols retained (required for readable stack frames): ```toml @@ -50,7 +50,7 @@ The profiling target is `pact_matching/examples/profile_engine.rs`. It runs four representative matching scenarios (text body, JSON equality, JSON with matching rules, headers + query parameters) in a tight loop so `perf` collects enough samples. -Generate the flamegraph from the `rust/` directory: +Generate the flamegraph from the repository root: ```bash cargo flamegraph \ @@ -81,10 +81,10 @@ Benchmarks live in `pact_matching/benches/v2_engine.rs` and use Clear any prior criterion data first (stale baselines cause misleading comparisons): ```bash -rm -rf rust/target/criterion +rm -rf target/criterion ``` -Run the full benchmark suite from the `rust/` directory: +Run the full benchmark suite from the repository root: ```bash cargo bench --package pact_matching --bench v2_engine diff --git a/rust/pact_matching/README.md b/crates/pact_matching/README.md similarity index 100% rename from rust/pact_matching/README.md rename to crates/pact_matching/README.md diff --git a/rust/pact_matching/benches/v2_engine.rs b/crates/pact_matching/benches/v2_engine.rs similarity index 100% rename from rust/pact_matching/benches/v2_engine.rs rename to crates/pact_matching/benches/v2_engine.rs diff --git a/rust/pact_matching/examples/profile_engine.rs b/crates/pact_matching/examples/profile_engine.rs similarity index 100% rename from rust/pact_matching/examples/profile_engine.rs rename to crates/pact_matching/examples/profile_engine.rs diff --git a/rust/pact_matching/generate-spec-tests.groovy b/crates/pact_matching/generate-spec-tests.groovy similarity index 100% rename from rust/pact_matching/generate-spec-tests.groovy rename to crates/pact_matching/generate-spec-tests.groovy diff --git a/rust/pact_matching/release.groovy b/crates/pact_matching/release.groovy similarity index 98% rename from rust/pact_matching/release.groovy rename to crates/pact_matching/release.groovy index 91ce2a1e3..52c3f9fb3 100755 --- a/rust/pact_matching/release.groovy +++ b/crates/pact_matching/release.groovy @@ -104,7 +104,7 @@ ask("Bump version to $nextVer?: [Y]") { executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" executeOnShell "sed -i -e 's/pact_matching = \"${releaseVer}\"/pact_matching = \"${nextVer}\"/' README.md" executeOnShell("cargo update") - executeOnShell("git add Cargo.toml README.md ../Cargo.lock") + executeOnShell("git add Cargo.toml README.md ../../Cargo.lock") executeOnShell("git diff --cached") ask("Commit and push this change?: [Y]") { executeOnShell("git commit -m 'bump version to $nextVer [skip ci]'") diff --git a/rust/pact_matching/src/binary_utils.rs b/crates/pact_matching/src/binary_utils.rs similarity index 100% rename from rust/pact_matching/src/binary_utils.rs rename to crates/pact_matching/src/binary_utils.rs diff --git a/rust/pact_matching/src/core_capabilities.rs b/crates/pact_matching/src/core_capabilities.rs similarity index 100% rename from rust/pact_matching/src/core_capabilities.rs rename to crates/pact_matching/src/core_capabilities.rs diff --git a/rust/pact_matching/src/engine/bodies/form_urlencoded.rs b/crates/pact_matching/src/engine/bodies/form_urlencoded.rs similarity index 100% rename from rust/pact_matching/src/engine/bodies/form_urlencoded.rs rename to crates/pact_matching/src/engine/bodies/form_urlencoded.rs diff --git a/rust/pact_matching/src/engine/bodies/json.rs b/crates/pact_matching/src/engine/bodies/json.rs similarity index 100% rename from rust/pact_matching/src/engine/bodies/json.rs rename to crates/pact_matching/src/engine/bodies/json.rs diff --git a/rust/pact_matching/src/engine/bodies/mod.rs b/crates/pact_matching/src/engine/bodies/mod.rs similarity index 100% rename from rust/pact_matching/src/engine/bodies/mod.rs rename to crates/pact_matching/src/engine/bodies/mod.rs diff --git a/rust/pact_matching/src/engine/bodies/multipart.rs b/crates/pact_matching/src/engine/bodies/multipart.rs similarity index 100% rename from rust/pact_matching/src/engine/bodies/multipart.rs rename to crates/pact_matching/src/engine/bodies/multipart.rs diff --git a/rust/pact_matching/src/engine/bodies/xml.rs b/crates/pact_matching/src/engine/bodies/xml.rs similarity index 100% rename from rust/pact_matching/src/engine/bodies/xml.rs rename to crates/pact_matching/src/engine/bodies/xml.rs diff --git a/rust/pact_matching/src/engine/context.rs b/crates/pact_matching/src/engine/context.rs similarity index 100% rename from rust/pact_matching/src/engine/context.rs rename to crates/pact_matching/src/engine/context.rs diff --git a/rust/pact_matching/src/engine/interpreter.rs b/crates/pact_matching/src/engine/interpreter.rs similarity index 100% rename from rust/pact_matching/src/engine/interpreter.rs rename to crates/pact_matching/src/engine/interpreter.rs diff --git a/rust/pact_matching/src/engine/mod.rs b/crates/pact_matching/src/engine/mod.rs similarity index 100% rename from rust/pact_matching/src/engine/mod.rs rename to crates/pact_matching/src/engine/mod.rs diff --git a/rust/pact_matching/src/engine/tests/header_tests.rs b/crates/pact_matching/src/engine/tests/header_tests.rs similarity index 100% rename from rust/pact_matching/src/engine/tests/header_tests.rs rename to crates/pact_matching/src/engine/tests/header_tests.rs diff --git a/rust/pact_matching/src/engine/tests/mod.rs b/crates/pact_matching/src/engine/tests/mod.rs similarity index 100% rename from rust/pact_matching/src/engine/tests/mod.rs rename to crates/pact_matching/src/engine/tests/mod.rs diff --git a/rust/pact_matching/src/engine/tests/query_tests.rs b/crates/pact_matching/src/engine/tests/query_tests.rs similarity index 100% rename from rust/pact_matching/src/engine/tests/query_tests.rs rename to crates/pact_matching/src/engine/tests/query_tests.rs diff --git a/rust/pact_matching/src/engine/tests/walk_tree_tests.rs b/crates/pact_matching/src/engine/tests/walk_tree_tests.rs similarity index 100% rename from rust/pact_matching/src/engine/tests/walk_tree_tests.rs rename to crates/pact_matching/src/engine/tests/walk_tree_tests.rs diff --git a/rust/pact_matching/src/engine/value_resolvers.rs b/crates/pact_matching/src/engine/value_resolvers.rs similarity index 100% rename from rust/pact_matching/src/engine/value_resolvers.rs rename to crates/pact_matching/src/engine/value_resolvers.rs diff --git a/rust/pact_matching/src/engine/xml.rs b/crates/pact_matching/src/engine/xml.rs similarity index 100% rename from rust/pact_matching/src/engine/xml.rs rename to crates/pact_matching/src/engine/xml.rs diff --git a/rust/pact_matching/src/field_rules.rs b/crates/pact_matching/src/field_rules.rs similarity index 100% rename from rust/pact_matching/src/field_rules.rs rename to crates/pact_matching/src/field_rules.rs diff --git a/rust/pact_matching/src/form_urlencoded.rs b/crates/pact_matching/src/form_urlencoded.rs similarity index 100% rename from rust/pact_matching/src/form_urlencoded.rs rename to crates/pact_matching/src/form_urlencoded.rs diff --git a/rust/pact_matching/src/generator_tests.rs b/crates/pact_matching/src/generator_tests.rs similarity index 100% rename from rust/pact_matching/src/generator_tests.rs rename to crates/pact_matching/src/generator_tests.rs diff --git a/rust/pact_matching/src/generators/bodies.rs b/crates/pact_matching/src/generators/bodies.rs similarity index 100% rename from rust/pact_matching/src/generators/bodies.rs rename to crates/pact_matching/src/generators/bodies.rs diff --git a/rust/pact_matching/src/generators/mod.rs b/crates/pact_matching/src/generators/mod.rs similarity index 100% rename from rust/pact_matching/src/generators/mod.rs rename to crates/pact_matching/src/generators/mod.rs diff --git a/rust/pact_matching/src/headers.rs b/crates/pact_matching/src/headers.rs similarity index 100% rename from rust/pact_matching/src/headers.rs rename to crates/pact_matching/src/headers.rs diff --git a/rust/pact_matching/src/json.rs b/crates/pact_matching/src/json.rs similarity index 100% rename from rust/pact_matching/src/json.rs rename to crates/pact_matching/src/json.rs diff --git a/rust/pact_matching/src/lib.rs b/crates/pact_matching/src/lib.rs similarity index 100% rename from rust/pact_matching/src/lib.rs rename to crates/pact_matching/src/lib.rs diff --git a/rust/pact_matching/src/matchingrules.rs b/crates/pact_matching/src/matchingrules.rs similarity index 100% rename from rust/pact_matching/src/matchingrules.rs rename to crates/pact_matching/src/matchingrules.rs diff --git a/rust/pact_matching/src/metrics.rs b/crates/pact_matching/src/metrics.rs similarity index 100% rename from rust/pact_matching/src/metrics.rs rename to crates/pact_matching/src/metrics.rs diff --git a/rust/pact_matching/src/plugin_support.rs b/crates/pact_matching/src/plugin_support.rs similarity index 100% rename from rust/pact_matching/src/plugin_support.rs rename to crates/pact_matching/src/plugin_support.rs diff --git a/rust/pact_matching/src/query.rs b/crates/pact_matching/src/query.rs similarity index 100% rename from rust/pact_matching/src/query.rs rename to crates/pact_matching/src/query.rs diff --git a/rust/pact_matching/src/tests.rs b/crates/pact_matching/src/tests.rs similarity index 100% rename from rust/pact_matching/src/tests.rs rename to crates/pact_matching/src/tests.rs diff --git a/rust/pact_matching/src/xml.rs b/crates/pact_matching/src/xml.rs similarity index 100% rename from rust/pact_matching/src/xml.rs rename to crates/pact_matching/src/xml.rs diff --git a/rust/pact_matching/tests/1px.gif b/crates/pact_matching/tests/1px.gif similarity index 100% rename from rust/pact_matching/tests/1px.gif rename to crates/pact_matching/tests/1px.gif diff --git a/rust/pact_matching/tests/more-specific-request.json b/crates/pact_matching/tests/more-specific-request.json similarity index 100% rename from rust/pact_matching/tests/more-specific-request.json rename to crates/pact_matching/tests/more-specific-request.json diff --git a/rust/pact_matching/tests/pact.json b/crates/pact_matching/tests/pact.json similarity index 100% rename from rust/pact_matching/tests/pact.json rename to crates/pact_matching/tests/pact.json diff --git a/rust/pact_matching/tests/spec_testcases/mod.rs b/crates/pact_matching/tests/spec_testcases/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/mod.rs rename to crates/pact_matching/tests/spec_testcases/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/matches.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/request/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/request/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v1/request/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/request/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v1/request/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v1/request/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/method/different method.json b/crates/pact_matching/tests/spec_testcases/v1/request/method/different method.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/method/different method.json rename to crates/pact_matching/tests/spec_testcases/v1/request/method/different method.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/method/matches.json b/crates/pact_matching/tests/spec_testcases/v1/request/method/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/method/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/request/method/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/method/method is different case.json b/crates/pact_matching/tests/spec_testcases/v1/request/method/method is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/method/method is different case.json rename to crates/pact_matching/tests/spec_testcases/v1/request/method/method is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/method/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/request/method/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/method/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/request/method/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/request/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/request/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/empty path found when forward slash expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/path/empty path found when forward slash expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/empty path found when forward slash expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/path/empty path found when forward slash expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/forward slash found when empty path expected.json b/crates/pact_matching/tests/spec_testcases/v1/request/path/forward slash found when empty path expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/forward slash found when empty path expected.json rename to crates/pact_matching/tests/spec_testcases/v1/request/path/forward slash found when empty path expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/incorrect path.json b/crates/pact_matching/tests/spec_testcases/v1/request/path/incorrect path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/incorrect path.json rename to crates/pact_matching/tests/spec_testcases/v1/request/path/incorrect path.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/matches.json b/crates/pact_matching/tests/spec_testcases/v1/request/path/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/request/path/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/missing trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v1/request/path/missing trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/missing trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v1/request/path/missing trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/request/path/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/request/path/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/path/unexpected trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v1/request/path/unexpected trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/path/unexpected trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v1/request/path/unexpected trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/query/different param order.json b/crates/pact_matching/tests/spec_testcases/v1/request/query/different param order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/query/different param order.json rename to crates/pact_matching/tests/spec_testcases/v1/request/query/different param order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/query/different param values.json b/crates/pact_matching/tests/spec_testcases/v1/request/query/different param values.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/query/different param values.json rename to crates/pact_matching/tests/spec_testcases/v1/request/query/different param values.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/query/matches with equals in the query value.json b/crates/pact_matching/tests/spec_testcases/v1/request/query/matches with equals in the query value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/query/matches with equals in the query value.json rename to crates/pact_matching/tests/spec_testcases/v1/request/query/matches with equals in the query value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/query/matches.json b/crates/pact_matching/tests/spec_testcases/v1/request/query/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/query/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/request/query/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/query/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/request/query/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/query/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/request/query/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/request/query/trailing amperand.json b/crates/pact_matching/tests/spec_testcases/v1/request/query/trailing amperand.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/request/query/trailing amperand.json rename to crates/pact_matching/tests/spec_testcases/v1/request/query/trailing amperand.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/deeply nested objects.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/deeply nested objects.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/deeply nested objects.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/deeply nested objects.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/keys out of order match.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/keys out of order match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/keys out of order match.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/keys out of order match.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/response/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/response/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/objects in array first matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/objects in array first matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/objects in array first matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/objects in array first matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/objects in array no matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/objects in array no matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/objects in array no matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/objects in array no matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/objects in array second matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/objects in array second matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/objects in array second matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/objects in array second matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/property name is different case.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/property name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/property name is different case.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/property name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v1/response/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/response/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v1/response/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v1/response/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/response/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/response/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/status/different status.json b/crates/pact_matching/tests/spec_testcases/v1/response/status/different status.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/status/different status.json rename to crates/pact_matching/tests/spec_testcases/v1/response/status/different status.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/status/matches.json b/crates/pact_matching/tests/spec_testcases/v1/response/status/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/status/matches.json rename to crates/pact_matching/tests/spec_testcases/v1/response/status/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1/response/status/mod.rs b/crates/pact_matching/tests/spec_testcases/v1/response/status/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1/response/status/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1/response/status/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/null body.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/method/different method.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/method/different method.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/method/different method.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/method/different method.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/method/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/method/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/method/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/method/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/method/method is different case.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/method/method is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/method/method is different case.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/method/method is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/method/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/request/method/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/method/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/request/method/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/request/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/request/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/empty path found when forward slash expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/empty path found when forward slash expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/empty path found when forward slash expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/empty path found when forward slash expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/forward slash found when empty path expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/forward slash found when empty path expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/forward slash found when empty path expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/forward slash found when empty path expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/incorrect path.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/incorrect path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/incorrect path.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/incorrect path.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/missing trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/missing trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/missing trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/missing trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/path/unexpected trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/path/unexpected trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/path/unexpected trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/path/unexpected trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/different order.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/different order.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/different params.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/different params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/different params.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/different params.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/matches with equals in the query value.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/matches with equals in the query value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/matches with equals in the query value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/matches with equals in the query value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/missing params.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/missing params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/missing params.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/missing params.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter different values.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter different values.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter different values.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter different values.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times in different order.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times in different order.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/same parameter multiple times.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/trailing ampersand.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/trailing ampersand.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/trailing ampersand.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/trailing ampersand.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/request/query/unexpected param.json b/crates/pact_matching/tests/spec_testcases/v1_1/request/query/unexpected param.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/request/query/unexpected param.json rename to crates/pact_matching/tests/spec_testcases/v1_1/request/query/unexpected param.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/deeply nested objects.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/deeply nested objects.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/deeply nested objects.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/deeply nested objects.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/keys out of order match.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/keys out of order match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/keys out of order match.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/keys out of order match.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/null body.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array first matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array first matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array first matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array first matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array no matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array no matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array no matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array no matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array second matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array second matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array second matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/objects in array second matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/property name is different case.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/property name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/property name is different case.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/property name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/response/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/response/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/status/different status.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/status/different status.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/status/different status.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/status/different status.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/status/matches.json b/crates/pact_matching/tests/spec_testcases/v1_1/response/status/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/status/matches.json rename to crates/pact_matching/tests/spec_testcases/v1_1/response/status/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v1_1/response/status/mod.rs b/crates/pact_matching/tests/spec_testcases/v1_1/response/status/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v1_1/response/status/mod.rs rename to crates/pact_matching/tests/spec_testcases/v1_1/response/status/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array at top level xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array at top level xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array at top level xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array at top level xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array in different order xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array in different order xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array in different order xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array in different order xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array size less than required xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array size less than required xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array size less than required xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array size less than required xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array size less than required.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array size less than required.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array size less than required.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array size less than required.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element matching by example.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element not matching example type.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element not matching example type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element not matching example type.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with at least one element not matching example type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that does not match.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that does not match.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with nested array that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/array with regular expression that does not match in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at index xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at index xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at key xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at key xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/empty found at key where not empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/empty found at key where not empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/empty found at key where not empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/empty found at key where not empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with floats.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with floats.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with floats.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with floats.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with integers.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with integers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with integers.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with integers.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex with bracket notation.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing index xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing index xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing key xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing key xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/request/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/request/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/no body no content type xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/no body no content type xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/no body no content type xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/no body no content type xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/no body xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/no body xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/no body xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/no body xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/no body.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/no body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/no body.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/no body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/not empty found at key when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/not empty found at key when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/not empty found at key when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/not empty found at key when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/not empty found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/not empty found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/not empty found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/not empty found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/null body.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with missing value xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with missing value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with missing value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with missing value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with empty value xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/body/value found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v2/request/body/value found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/body/value found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v2/request/body/value found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/request/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v2/request/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v2/request/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/method/different method.json b/crates/pact_matching/tests/spec_testcases/v2/request/method/different method.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/method/different method.json rename to crates/pact_matching/tests/spec_testcases/v2/request/method/different method.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/method/matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/method/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/method/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/method/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/method/method is different case.json b/crates/pact_matching/tests/spec_testcases/v2/request/method/method is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/method/method is different case.json rename to crates/pact_matching/tests/spec_testcases/v2/request/method/method is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/method/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/request/method/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/method/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/request/method/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/request/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/request/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/empty path found when forward slash expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/path/empty path found when forward slash expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/empty path found when forward slash expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/path/empty path found when forward slash expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/forward slash found when empty path expected.json b/crates/pact_matching/tests/spec_testcases/v2/request/path/forward slash found when empty path expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/forward slash found when empty path expected.json rename to crates/pact_matching/tests/spec_testcases/v2/request/path/forward slash found when empty path expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/incorrect path.json b/crates/pact_matching/tests/spec_testcases/v2/request/path/incorrect path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/incorrect path.json rename to crates/pact_matching/tests/spec_testcases/v2/request/path/incorrect path.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/path/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/path/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/missing trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v2/request/path/missing trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/missing trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v2/request/path/missing trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/request/path/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/request/path/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/path/unexpected trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v2/request/path/unexpected trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/path/unexpected trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v2/request/path/unexpected trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/different order.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/different order.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/different params.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/different params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/different params.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/different params.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/matches with equals in the query value.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/matches with equals in the query value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/matches with equals in the query value.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/matches with equals in the query value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/matches.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/missing params.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/missing params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/missing params.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/missing params.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/request/query/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/request/query/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/same parameter different values.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/same parameter different values.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/same parameter different values.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/same parameter different values.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times in different order.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times in different order.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/same parameter multiple times.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/trailing ampersand.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/trailing ampersand.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/trailing ampersand.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/trailing ampersand.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/request/query/unexpected param.json b/crates/pact_matching/tests/spec_testcases/v2/request/query/unexpected param.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/request/query/unexpected param.json rename to crates/pact_matching/tests/spec_testcases/v2/request/query/unexpected param.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher that does not match.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher that does not match.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/additional property with type matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level with matchers.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array in different order xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array in different order xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array in different order xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array in different order xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array with regex matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher mismatch.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/array with type matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/deeply nested objects.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at index xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at index xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at key xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at key xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/keys out of order match.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches with floats.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches with floats.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches with floats.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches with floats.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches with integers.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches with integers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches with integers.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches with integers.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches with regex xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches with regex xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches with regex xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches with regex xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing body xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing body xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing body xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing body xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing index xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing index xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing key xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing key xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/response/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/response/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/no body no content type xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/no body no content type xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/no body no content type xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/no body no content type xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/null body.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array first matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array no matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array second matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array type matching.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/objects in array with type mismatching.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/property name is different case xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/property name is different case xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/property name is different case xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/property name is different case xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/property name is different case.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/property name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/property name is different case.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/property name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with missing value xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with missing value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with missing value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with missing value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with empty value xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/body/value found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v2/response/body/value found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/body/value found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v2/response/body/value found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/response/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v2/response/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v2/response/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/response/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/response/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/status/different status.json b/crates/pact_matching/tests/spec_testcases/v2/response/status/different status.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/status/different status.json rename to crates/pact_matching/tests/spec_testcases/v2/response/status/different status.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/status/matches.json b/crates/pact_matching/tests/spec_testcases/v2/response/status/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/status/matches.json rename to crates/pact_matching/tests/spec_testcases/v2/response/status/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v2/response/status/mod.rs b/crates/pact_matching/tests/spec_testcases/v2/response/status/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v2/response/status/mod.rs rename to crates/pact_matching/tests/spec_testcases/v2/response/status/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array size less than required.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array size less than required.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array size less than required.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array size less than required.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element matching by example.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element matching by example.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element matching by example.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element matching by example.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element not matching example type.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element not matching example type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element not matching example type.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array with at least one element not matching example type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that does not match.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that does not match.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that matches.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that matches.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array with nested array that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression in element.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression in element.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression that does not match in element.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression that does not match in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression that does not match in element.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/array with regular expression that does not match in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/matches with regex with bracket notation.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/matches with regex with bracket notation.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/matches with regex with bracket notation.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/matches with regex with bracket notation.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/matches.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/message/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/message/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/no body.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/no body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/no body.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/no body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v3/message/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/message/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/message/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/message/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/message/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array at top level xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array at top level xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array at top level xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array at top level xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array in different order xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array in different order xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array in different order xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array in different order xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array size less than required xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array size less than required xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array size less than required xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array size less than required xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array size less than required.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array size less than required.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array size less than required.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array size less than required.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element matching by example.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element not matching example type.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element not matching example type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element not matching example type.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with at least one element not matching example type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that does not match.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that does not match.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with nested array that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/array with regular expression that does not match in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at index xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at index xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at key xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at key xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/empty found at key where not empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/empty found at key where not empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/empty found at key where not empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/empty found at key where not empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with floats.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with floats.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with floats.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with floats.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with integers.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with integers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with integers.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with integers.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex with bracket notation.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing index xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing index xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing key xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing key xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/request/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/request/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/no body no content type xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/no body no content type xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/no body no content type xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/no body no content type xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/no body xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/no body xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/no body xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/no body xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/no body.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/no body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/no body.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/no body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/not empty found at key when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/not empty found at key when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/not empty found at key when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/not empty found at key when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/not empty found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/not empty found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/not empty found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/not empty found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/null body.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with missing value xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with missing value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with missing value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with missing value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with empty value xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/body/value found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v3/request/body/value found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/body/value found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v3/request/body/value found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/content type parameters do not match.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/content type parameters do not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/content type parameters do not match.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/content type parameters do not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset with different case.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset with different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset with different case.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset with different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with charset.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with parameters in different order.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with parameters in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with parameters in different order.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/matches content type with parameters in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/request/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v3/request/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v3/request/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/method/different method.json b/crates/pact_matching/tests/spec_testcases/v3/request/method/different method.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/method/different method.json rename to crates/pact_matching/tests/spec_testcases/v3/request/method/different method.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/method/matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/method/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/method/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/method/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/method/method is different case.json b/crates/pact_matching/tests/spec_testcases/v3/request/method/method is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/method/method is different case.json rename to crates/pact_matching/tests/spec_testcases/v3/request/method/method is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/method/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/request/method/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/method/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/request/method/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/request/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/request/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/empty path found when forward slash expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/empty path found when forward slash expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/empty path found when forward slash expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/empty path found when forward slash expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/forward slash found when empty path expected.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/forward slash found when empty path expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/forward slash found when empty path expected.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/forward slash found when empty path expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/incorrect path.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/incorrect path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/incorrect path.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/incorrect path.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/missing trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/missing trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/missing trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/missing trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/request/path/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/request/path/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/path/unexpected trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v3/request/path/unexpected trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/path/unexpected trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v3/request/path/unexpected trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/different order.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/different order.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/different params.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/different params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/different params.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/different params.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/matches with equals in the query value.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/matches with equals in the query value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/matches with equals in the query value.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/matches with equals in the query value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/matches.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/missing params.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/missing params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/missing params.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/missing params.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/request/query/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/request/query/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/same parameter different values.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/same parameter different values.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/same parameter different values.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/same parameter different values.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times in different order.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times in different order.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/same parameter multiple times.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/request/query/unexpected param.json b/crates/pact_matching/tests/spec_testcases/v3/request/query/unexpected param.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/request/query/unexpected param.json rename to crates/pact_matching/tests/spec_testcases/v3/request/query/unexpected param.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher that does not match.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher that does not match.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/additional property with type matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level with matchers.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array in different order xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array in different order xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array in different order xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array in different order xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array with regex matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher mismatch.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/array with type matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/deeply nested objects.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at index xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at index xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at key xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at key xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/different xml namespace prefixes.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/different xml namespace prefixes.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/different xml namespace prefixes.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/different xml namespace prefixes.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/different xml namespaces.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/different xml namespaces.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/different xml namespaces.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/different xml namespaces.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/keys out of order match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches with floats.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches with floats.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches with floats.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches with floats.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches with integers.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches with integers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches with integers.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches with integers.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches with regex xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches with regex xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches with regex xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches with regex xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing body xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing body xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing body xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing body xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing index xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing index xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing key xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing key xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/response/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/response/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/no body no content type xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/no body no content type xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/no body no content type xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/no body no content type xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/null body.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array first matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array no matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array second matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array type matching.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/objects in array with type mismatching.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text empty body.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text empty body.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text missing body.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text missing body.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching missing body.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching missing body.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching that does not match.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching that does not match.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text regex matching.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/property name is different case xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/property name is different case xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/property name is different case xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/property name is different case xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/property name is different case.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/property name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/property name is different case.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/property name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with missing value xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with missing value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with missing value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with missing value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with empty value xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected xml namespace.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected xml namespace.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/unexpected xml namespace.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/unexpected xml namespace.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/body/value found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v3/response/body/value found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/body/value found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v3/response/body/value found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/content type parameters do not match.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/content type parameters do not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/content type parameters do not match.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/content type parameters do not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset with different case.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset with different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset with different case.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset with different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with charset.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with parameters in different order.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with parameters in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with parameters in different order.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/matches content type with parameters in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/response/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v3/response/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v3/response/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/response/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/response/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/status/different status.json b/crates/pact_matching/tests/spec_testcases/v3/response/status/different status.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/status/different status.json rename to crates/pact_matching/tests/spec_testcases/v3/response/status/different status.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/status/matches.json b/crates/pact_matching/tests/spec_testcases/v3/response/status/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/status/matches.json rename to crates/pact_matching/tests/spec_testcases/v3/response/status/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v3/response/status/mod.rs b/crates/pact_matching/tests/spec_testcases/v3/response/status/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v3/response/status/mod.rs rename to crates/pact_matching/tests/spec_testcases/v3/response/status/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array size less than required.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array size less than required.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array size less than required.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array size less than required.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element matching by example.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element matching by example.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element matching by example.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element matching by example.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element not matching example type.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element not matching example type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element not matching example type.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array with at least one element not matching example type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that does not match.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that does not match.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that matches.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that matches.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array with nested array that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression in element.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression in element.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression that does not match in element.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression that does not match in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression that does not match in element.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/array with regular expression that does not match in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/matches with regex with bracket notation.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/matches with regex with bracket notation.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/matches with regex with bracket notation.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/matches with regex with bracket notation.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/matches.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/message/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/message/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/no body.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/no body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/no body.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/no body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v4/message/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/message/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/message/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/message/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/message/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array at top level xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array at top level xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array at top level xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array at top level xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array in different order xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array in different order xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array in different order xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array in different order xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array size less than required xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array size less than required xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array size less than required xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array size less than required xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array size less than required.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array size less than required.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array size less than required.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array size less than required.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element matching by example.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element not matching example type.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element not matching example type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element not matching example type.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with at least one element not matching example type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that does not match.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that does not match.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with nested array that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/array with regular expression that does not match in element.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at index xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at index xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at key xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at key xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/empty found at key where not empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/empty found at key where not empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/empty found at key where not empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/empty found at key where not empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with floats.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with floats.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with floats.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with floats.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with integers.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with integers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with integers.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with integers.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex with bracket notation.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing index xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing index xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing key xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing key xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/request/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/request/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/no body no content type xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/no body no content type xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/no body no content type xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/no body no content type xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/no body xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/no body xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/no body xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/no body xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/no body.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/no body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/no body.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/no body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/not empty found at key when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/not empty found at key when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/not empty found at key when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/not empty found at key when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/not empty found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/not empty found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/not empty found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/not empty found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/null body.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with missing value xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with missing value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with missing value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with missing value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with empty value xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/body/value found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v4/request/body/value found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/body/value found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v4/request/body/value found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/content type parameters do not match.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/content type parameters do not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/content type parameters do not match.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/content type parameters do not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset with different case.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset with different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset with different case.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset with different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with charset.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with parameters in different order.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with parameters in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with parameters in different order.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/matches content type with parameters in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/request/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v4/request/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v4/request/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/method/different method.json b/crates/pact_matching/tests/spec_testcases/v4/request/method/different method.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/method/different method.json rename to crates/pact_matching/tests/spec_testcases/v4/request/method/different method.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/method/matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/method/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/method/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/method/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/method/method is different case.json b/crates/pact_matching/tests/spec_testcases/v4/request/method/method is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/method/method is different case.json rename to crates/pact_matching/tests/spec_testcases/v4/request/method/method is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/method/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/request/method/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/method/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/request/method/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/request/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/request/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/empty path found when forward slash expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/empty path found when forward slash expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/empty path found when forward slash expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/empty path found when forward slash expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/forward slash found when empty path expected.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/forward slash found when empty path expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/forward slash found when empty path expected.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/forward slash found when empty path expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/incorrect path.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/incorrect path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/incorrect path.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/incorrect path.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/missing trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/missing trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/missing trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/missing trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/request/path/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/request/path/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/path/unexpected trailing slash in path.json b/crates/pact_matching/tests/spec_testcases/v4/request/path/unexpected trailing slash in path.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/path/unexpected trailing slash in path.json rename to crates/pact_matching/tests/spec_testcases/v4/request/path/unexpected trailing slash in path.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/different order.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/different order.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/different params.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/different params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/different params.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/different params.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/matches with equals in the query value.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/matches with equals in the query value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/matches with equals in the query value.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/matches with equals in the query value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/matches.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/missing params.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/missing params.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/missing params.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/missing params.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/request/query/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/request/query/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/same parameter different values.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/same parameter different values.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/same parameter different values.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/same parameter different values.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times in different order.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times in different order.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/same parameter multiple times.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/request/query/unexpected param.json b/crates/pact_matching/tests/spec_testcases/v4/request/query/unexpected param.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/request/query/unexpected param.json rename to crates/pact_matching/tests/spec_testcases/v4/request/query/unexpected param.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher that does not match.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher that does not match.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/additional property with type matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level with matchers.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array at top level.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array at top level.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array in different order xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array in different order xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array in different order xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array in different order xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array in different order.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array in different order.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array with regex matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher mismatch.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/array with type matcher.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/deeply nested objects.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at index xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at index xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at index.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at index.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at index.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at key xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at key xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at key.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/different value found at key.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/different value found at key.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/different xml namespace prefixes.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/different xml namespace prefixes.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/different xml namespace prefixes.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/different xml namespace prefixes.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/different xml namespaces.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/different xml namespaces.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/different xml namespaces.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/different xml namespaces.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/empty body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/empty body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/empty body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/empty body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/empty body.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/empty body.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/keys out of order match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches with floats.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches with floats.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches with floats.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches with floats.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches with integers.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches with integers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches with integers.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches with integers.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches with regex xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches with regex xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches with regex xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches with regex xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches with type.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches with type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches with type.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches with type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing body xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing body xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing body xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing body xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing body.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing body.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing index xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing index xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing index xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing index xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing index.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing index.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing index.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing index.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing key xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing key xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing key xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing key xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/missing key.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/missing key.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/missing key.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/missing key.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/response/body/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/response/body/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/no body no content type xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/no body no content type xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/no body no content type xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/no body no content type xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/no body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/no body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/no body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/no body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/non empty body found when empty expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/non empty body found when empty expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/non empty body found when empty expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/non empty body found when empty expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/not null found at key when null expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/not null found at key when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/not null found at key when null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/not null found at key when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/not null found in array when null expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/not null found in array when null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/not null found in array when null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/not null found in array when null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/null body no content type.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/null body no content type.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/null body no content type.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/null body no content type.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/null body.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/null body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/null body.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/null body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/null found at key where not null expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/null found at key where not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/null found at key where not null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/null found at key where not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/null found in array when not null expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/null found in array when not null expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/null found in array when not null expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/null found in array when not null expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/number found at key when string expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/number found at key when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/number found at key when string expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/number found at key when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/number found in array when string expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/number found in array when string expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/number found in array when string expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/number found in array when string expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array first matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array no matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array second matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array type matching.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/objects in array with type mismatching.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text empty body.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text empty body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text empty body.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text empty body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text missing body.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text missing body.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching missing body.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching missing body.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching missing body.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching missing body.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching that does not match.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching that does not match.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text regex matching.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text that does not match.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text that does not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text that does not match.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text that does not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/plain text that matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/plain text that matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/plain text that matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/plain text that matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/property name is different case xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/property name is different case xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/property name is different case xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/property name is different case xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/property name is different case.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/property name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/property name is different case.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/property name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/string found at key when number expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/string found at key when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/string found at key when number expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/string found at key when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/string found in array when number expected.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/string found in array when number expected.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/string found in array when number expected.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/string found in array when number expected.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with missing value xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with missing value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with missing value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with missing value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with not null value.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with not null value.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with null value.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with null value.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected index with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with empty value xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with non-empty value xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with non-empty value xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with non-empty value xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with non-empty value xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with not null value.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with not null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with not null value.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with not null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with null value.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with null value.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with null value.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected key with null value.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected xml namespace.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected xml namespace.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/unexpected xml namespace.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/unexpected xml namespace.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/body/value found in array when empty expected xml.json b/crates/pact_matching/tests/spec_testcases/v4/response/body/value found in array when empty expected xml.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/body/value found in array when empty expected xml.json rename to crates/pact_matching/tests/spec_testcases/v4/response/body/value found in array when empty expected xml.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/content type parameters do not match.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/content type parameters do not match.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/content type parameters do not match.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/content type parameters do not match.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/empty headers.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/empty headers.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/empty headers.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/empty headers.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/header name is different case.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/header name is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/header name is different case.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/header name is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/header value is different case.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/header value is different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/header value is different case.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/header value is different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset with different case.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset with different case.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset with different case.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset with different case.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with charset.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with parameters in different order.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with parameters in different order.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with parameters in different order.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/matches content type with parameters in different order.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/matches with regex.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/matches with regex.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/matches with regex.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/matches with regex.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/response/headers/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/order of comma separated header values different.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/order of comma separated header values different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/order of comma separated header values different.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/order of comma separated header values different.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/unexpected header found.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/unexpected header found.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/unexpected header found.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/unexpected header found.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/headers/whitespace after comma different.json b/crates/pact_matching/tests/spec_testcases/v4/response/headers/whitespace after comma different.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/headers/whitespace after comma different.json rename to crates/pact_matching/tests/spec_testcases/v4/response/headers/whitespace after comma different.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/response/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/response/mod.rs diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/status/different status.json b/crates/pact_matching/tests/spec_testcases/v4/response/status/different status.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/status/different status.json rename to crates/pact_matching/tests/spec_testcases/v4/response/status/different status.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/status/matches.json b/crates/pact_matching/tests/spec_testcases/v4/response/status/matches.json similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/status/matches.json rename to crates/pact_matching/tests/spec_testcases/v4/response/status/matches.json diff --git a/rust/pact_matching/tests/spec_testcases/v4/response/status/mod.rs b/crates/pact_matching/tests/spec_testcases/v4/response/status/mod.rs similarity index 100% rename from rust/pact_matching/tests/spec_testcases/v4/response/status/mod.rs rename to crates/pact_matching/tests/spec_testcases/v4/response/status/mod.rs diff --git a/rust/pact_matching/tests/test_pact.json b/crates/pact_matching/tests/test_pact.json similarity index 100% rename from rust/pact_matching/tests/test_pact.json rename to crates/pact_matching/tests/test_pact.json diff --git a/rust/pact_matching/tests/test_pact_binary_body.json b/crates/pact_matching/tests/test_pact_binary_body.json similarity index 100% rename from rust/pact_matching/tests/test_pact_binary_body.json rename to crates/pact_matching/tests/test_pact_binary_body.json diff --git a/rust/pact_matching/tests/test_pact_camel_case_spec_version.json b/crates/pact_matching/tests/test_pact_camel_case_spec_version.json similarity index 100% rename from rust/pact_matching/tests/test_pact_camel_case_spec_version.json rename to crates/pact_matching/tests/test_pact_camel_case_spec_version.json diff --git a/rust/pact_matching/tests/test_pact_encoded_query.json b/crates/pact_matching/tests/test_pact_encoded_query.json similarity index 100% rename from rust/pact_matching/tests/test_pact_encoded_query.json rename to crates/pact_matching/tests/test_pact_encoded_query.json diff --git a/rust/pact_matching/tests/test_pact_lowercase_method.json b/crates/pact_matching/tests/test_pact_lowercase_method.json similarity index 100% rename from rust/pact_matching/tests/test_pact_lowercase_method.json rename to crates/pact_matching/tests/test_pact_lowercase_method.json diff --git a/rust/pact_matching/tests/test_pact_matchers.json b/crates/pact_matching/tests/test_pact_matchers.json similarity index 100% rename from rust/pact_matching/tests/test_pact_matchers.json rename to crates/pact_matching/tests/test_pact_matchers.json diff --git a/rust/pact_matching/tests/test_pact_matchers_old_format.json b/crates/pact_matching/tests/test_pact_matchers_old_format.json similarity index 100% rename from rust/pact_matching/tests/test_pact_matchers_old_format.json rename to crates/pact_matching/tests/test_pact_matchers_old_format.json diff --git a/rust/pact_matching/tests/test_pact_no_bodies.json b/crates/pact_matching/tests/test_pact_no_bodies.json similarity index 100% rename from rust/pact_matching/tests/test_pact_no_bodies.json rename to crates/pact_matching/tests/test_pact_no_bodies.json diff --git a/rust/pact_matching/tests/test_pact_no_metadata.json b/crates/pact_matching/tests/test_pact_no_metadata.json similarity index 100% rename from rust/pact_matching/tests/test_pact_no_metadata.json rename to crates/pact_matching/tests/test_pact_no_metadata.json diff --git a/rust/pact_matching/tests/test_pact_no_spec_version.json b/crates/pact_matching/tests/test_pact_no_spec_version.json similarity index 100% rename from rust/pact_matching/tests/test_pact_no_spec_version.json rename to crates/pact_matching/tests/test_pact_no_spec_version.json diff --git a/rust/pact_matching/tests/test_pact_no_version.json b/crates/pact_matching/tests/test_pact_no_version.json similarity index 100% rename from rust/pact_matching/tests/test_pact_no_version.json rename to crates/pact_matching/tests/test_pact_no_version.json diff --git a/rust/pact_matching/tests/test_pact_query_old_format.json b/crates/pact_matching/tests/test_pact_query_old_format.json similarity index 100% rename from rust/pact_matching/tests/test_pact_query_old_format.json rename to crates/pact_matching/tests/test_pact_query_old_format.json diff --git a/rust/pact_matching/tests/test_pact_root_string_json.json b/crates/pact_matching/tests/test_pact_root_string_json.json similarity index 100% rename from rust/pact_matching/tests/test_pact_root_string_json.json rename to crates/pact_matching/tests/test_pact_root_string_json.json diff --git a/rust/pact_matching/tests/test_pact_with_bodies.json b/crates/pact_matching/tests/test_pact_with_bodies.json similarity index 100% rename from rust/pact_matching/tests/test_pact_with_bodies.json rename to crates/pact_matching/tests/test_pact_with_bodies.json diff --git a/rust/pact_matching/tests/tests.rs b/crates/pact_matching/tests/tests.rs similarity index 100% rename from rust/pact_matching/tests/tests.rs rename to crates/pact_matching/tests/tests.rs diff --git a/rust/pact_matching/tests/v1-pact.json b/crates/pact_matching/tests/v1-pact.json similarity index 100% rename from rust/pact_matching/tests/v1-pact.json rename to crates/pact_matching/tests/v1-pact.json diff --git a/rust/pact_matching/tests/v2-pact.json b/crates/pact_matching/tests/v2-pact.json similarity index 100% rename from rust/pact_matching/tests/v2-pact.json rename to crates/pact_matching/tests/v2-pact.json diff --git a/rust/pact_matching/tests/v2_pact_query.json b/crates/pact_matching/tests/v2_pact_query.json similarity index 100% rename from rust/pact_matching/tests/v2_pact_query.json rename to crates/pact_matching/tests/v2_pact_query.json diff --git a/rust/pact_matching/tests/v3-message-pact-generators.json b/crates/pact_matching/tests/v3-message-pact-generators.json similarity index 100% rename from rust/pact_matching/tests/v3-message-pact-generators.json rename to crates/pact_matching/tests/v3-message-pact-generators.json diff --git a/rust/pact_matching/tests/v3-message-pact.json b/crates/pact_matching/tests/v3-message-pact.json similarity index 100% rename from rust/pact_matching/tests/v3-message-pact.json rename to crates/pact_matching/tests/v3-message-pact.json diff --git a/rust/pact_matching/tests/v4-combined-pact.json b/crates/pact_matching/tests/v4-combined-pact.json similarity index 100% rename from rust/pact_matching/tests/v4-combined-pact.json rename to crates/pact_matching/tests/v4-combined-pact.json diff --git a/rust/pact_matching/tests/v4-http-pact-comments.json b/crates/pact_matching/tests/v4-http-pact-comments.json similarity index 100% rename from rust/pact_matching/tests/v4-http-pact-comments.json rename to crates/pact_matching/tests/v4-http-pact-comments.json diff --git a/rust/pact_matching/tests/v4-http-pact.json b/crates/pact_matching/tests/v4-http-pact.json similarity index 100% rename from rust/pact_matching/tests/v4-http-pact.json rename to crates/pact_matching/tests/v4-http-pact.json diff --git a/rust/pact_matching/tests/v4-message-pact-comments.json b/crates/pact_matching/tests/v4-message-pact-comments.json similarity index 100% rename from rust/pact_matching/tests/v4-message-pact-comments.json rename to crates/pact_matching/tests/v4-message-pact-comments.json diff --git a/rust/pact_matching/tests/v4-message-pact.json b/crates/pact_matching/tests/v4-message-pact.json similarity index 100% rename from rust/pact_matching/tests/v4-message-pact.json rename to crates/pact_matching/tests/v4-message-pact.json diff --git a/rust/pact_mock_server/README.md b/crates/pact_mock_server/README.md similarity index 100% rename from rust/pact_mock_server/README.md rename to crates/pact_mock_server/README.md diff --git a/rust/pact_mock_server_cli/README.md b/crates/pact_mock_server_cli/README.md similarity index 100% rename from rust/pact_mock_server_cli/README.md rename to crates/pact_mock_server_cli/README.md diff --git a/rust/pact_models/CHANGELOG.md b/crates/pact_models/CHANGELOG.md similarity index 100% rename from rust/pact_models/CHANGELOG.md rename to crates/pact_models/CHANGELOG.md diff --git a/rust/pact_models/Cargo.toml b/crates/pact_models/Cargo.toml similarity index 98% rename from rust/pact_models/Cargo.toml rename to crates/pact_models/Cargo.toml index 2451cd1be..69ac539a9 100644 --- a/rust/pact_models/Cargo.toml +++ b/crates/pact_models/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Ronald Holshausen "] edition = "2024" description = "Pact-Rust support library that provides the core models for dealing with Pact files" homepage = "https://www.pact.io" -repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_models" +repository = "https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_models" readme = "README.md" keywords = ["testing", "pact", "cdc"] license = "MIT" diff --git a/rust/pact_models/README.md b/crates/pact_models/README.md similarity index 100% rename from rust/pact_models/README.md rename to crates/pact_models/README.md diff --git a/rust/pact_models/build.rs b/crates/pact_models/build.rs similarity index 100% rename from rust/pact_models/build.rs rename to crates/pact_models/build.rs diff --git a/rust/pact_models/release.groovy b/crates/pact_models/release.groovy similarity index 98% rename from rust/pact_models/release.groovy rename to crates/pact_models/release.groovy index d2d7f773a..0b29214e0 100755 --- a/rust/pact_models/release.groovy +++ b/crates/pact_models/release.groovy @@ -105,7 +105,7 @@ ask("Bump version to $nextVer?: [Y]") { executeOnShell "sed -i -e 's/documentation = \"https:\\/\\/docs\\.rs\\/pact_models\\/${releaseVer}\\/pact_models\\/\"/documentation = \"https:\\/\\/docs\\.rs\\/pact_models\\/${nextVer}\\/pact_models\\/\"/' Cargo.toml" executeOnShell("cargo update") executeOnShell("git add Cargo.toml") - executeOnShell("git add ../Cargo.lock") + executeOnShell("git add ../../Cargo.lock") executeOnShell("git diff --cached") ask("Commit and push this change?: [Y]") { executeOnShell("git commit -m 'chore(pact_models): bump version to $nextVer [skip ci]'") diff --git a/rust/pact_models/src/bodies.rs b/crates/pact_models/src/bodies.rs similarity index 100% rename from rust/pact_models/src/bodies.rs rename to crates/pact_models/src/bodies.rs diff --git a/rust/pact_models/src/content_types.rs b/crates/pact_models/src/content_types.rs similarity index 100% rename from rust/pact_models/src/content_types.rs rename to crates/pact_models/src/content_types.rs diff --git a/rust/pact_models/src/expression_parser.rs b/crates/pact_models/src/expression_parser.rs similarity index 100% rename from rust/pact_models/src/expression_parser.rs rename to crates/pact_models/src/expression_parser.rs diff --git a/rust/pact_models/src/file_utils.rs b/crates/pact_models/src/file_utils.rs similarity index 100% rename from rust/pact_models/src/file_utils.rs rename to crates/pact_models/src/file_utils.rs diff --git a/rust/pact_models/src/generators/date_expression_parser.rs b/crates/pact_models/src/generators/date_expression_parser.rs similarity index 100% rename from rust/pact_models/src/generators/date_expression_parser.rs rename to crates/pact_models/src/generators/date_expression_parser.rs diff --git a/rust/pact_models/src/generators/datetime_expressions.rs b/crates/pact_models/src/generators/datetime_expressions.rs similarity index 100% rename from rust/pact_models/src/generators/datetime_expressions.rs rename to crates/pact_models/src/generators/datetime_expressions.rs diff --git a/rust/pact_models/src/generators/form_urlencoded.rs b/crates/pact_models/src/generators/form_urlencoded.rs similarity index 100% rename from rust/pact_models/src/generators/form_urlencoded.rs rename to crates/pact_models/src/generators/form_urlencoded.rs diff --git a/rust/pact_models/src/generators/mod.rs b/crates/pact_models/src/generators/mod.rs similarity index 100% rename from rust/pact_models/src/generators/mod.rs rename to crates/pact_models/src/generators/mod.rs diff --git a/rust/pact_models/src/generators/time_expression_parser.rs b/crates/pact_models/src/generators/time_expression_parser.rs similarity index 100% rename from rust/pact_models/src/generators/time_expression_parser.rs rename to crates/pact_models/src/generators/time_expression_parser.rs diff --git a/rust/pact_models/src/generators/xml.rs b/crates/pact_models/src/generators/xml.rs similarity index 100% rename from rust/pact_models/src/generators/xml.rs rename to crates/pact_models/src/generators/xml.rs diff --git a/rust/pact_models/src/headers.rs b/crates/pact_models/src/headers.rs similarity index 100% rename from rust/pact_models/src/headers.rs rename to crates/pact_models/src/headers.rs diff --git a/rust/pact_models/src/http_parts.rs b/crates/pact_models/src/http_parts.rs similarity index 100% rename from rust/pact_models/src/http_parts.rs rename to crates/pact_models/src/http_parts.rs diff --git a/rust/pact_models/src/http_utils.rs b/crates/pact_models/src/http_utils.rs similarity index 100% rename from rust/pact_models/src/http_utils.rs rename to crates/pact_models/src/http_utils.rs diff --git a/rust/pact_models/src/interaction.rs b/crates/pact_models/src/interaction.rs similarity index 100% rename from rust/pact_models/src/interaction.rs rename to crates/pact_models/src/interaction.rs diff --git a/rust/pact_models/src/iterator_utils.rs b/crates/pact_models/src/iterator_utils.rs similarity index 100% rename from rust/pact_models/src/iterator_utils.rs rename to crates/pact_models/src/iterator_utils.rs diff --git a/rust/pact_models/src/json_utils.rs b/crates/pact_models/src/json_utils.rs similarity index 100% rename from rust/pact_models/src/json_utils.rs rename to crates/pact_models/src/json_utils.rs diff --git a/rust/pact_models/src/lib.rs b/crates/pact_models/src/lib.rs similarity index 100% rename from rust/pact_models/src/lib.rs rename to crates/pact_models/src/lib.rs diff --git a/rust/pact_models/src/matchingrules/expressions.rs b/crates/pact_models/src/matchingrules/expressions.rs similarity index 100% rename from rust/pact_models/src/matchingrules/expressions.rs rename to crates/pact_models/src/matchingrules/expressions.rs diff --git a/rust/pact_models/src/matchingrules/mod.rs b/crates/pact_models/src/matchingrules/mod.rs similarity index 100% rename from rust/pact_models/src/matchingrules/mod.rs rename to crates/pact_models/src/matchingrules/mod.rs diff --git a/rust/pact_models/src/message.rs b/crates/pact_models/src/message.rs similarity index 100% rename from rust/pact_models/src/message.rs rename to crates/pact_models/src/message.rs diff --git a/rust/pact_models/src/message_pact.rs b/crates/pact_models/src/message_pact.rs similarity index 100% rename from rust/pact_models/src/message_pact.rs rename to crates/pact_models/src/message_pact.rs diff --git a/rust/pact_models/src/pact.rs b/crates/pact_models/src/pact.rs similarity index 100% rename from rust/pact_models/src/pact.rs rename to crates/pact_models/src/pact.rs diff --git a/rust/pact_models/src/path_exp.rs b/crates/pact_models/src/path_exp.rs similarity index 100% rename from rust/pact_models/src/path_exp.rs rename to crates/pact_models/src/path_exp.rs diff --git a/rust/pact_models/src/plugins.rs b/crates/pact_models/src/plugins.rs similarity index 100% rename from rust/pact_models/src/plugins.rs rename to crates/pact_models/src/plugins.rs diff --git a/rust/pact_models/src/provider_states.rs b/crates/pact_models/src/provider_states.rs similarity index 100% rename from rust/pact_models/src/provider_states.rs rename to crates/pact_models/src/provider_states.rs diff --git a/rust/pact_models/src/query_strings.rs b/crates/pact_models/src/query_strings.rs similarity index 100% rename from rust/pact_models/src/query_strings.rs rename to crates/pact_models/src/query_strings.rs diff --git a/rust/pact_models/src/request.rs b/crates/pact_models/src/request.rs similarity index 100% rename from rust/pact_models/src/request.rs rename to crates/pact_models/src/request.rs diff --git a/rust/pact_models/src/response.rs b/crates/pact_models/src/response.rs similarity index 100% rename from rust/pact_models/src/response.rs rename to crates/pact_models/src/response.rs diff --git a/rust/pact_models/src/sync_interaction.rs b/crates/pact_models/src/sync_interaction.rs similarity index 100% rename from rust/pact_models/src/sync_interaction.rs rename to crates/pact_models/src/sync_interaction.rs diff --git a/rust/pact_models/src/sync_pact.rs b/crates/pact_models/src/sync_pact.rs similarity index 100% rename from rust/pact_models/src/sync_pact.rs rename to crates/pact_models/src/sync_pact.rs diff --git a/rust/pact_models/src/tests.rs b/crates/pact_models/src/tests.rs similarity index 100% rename from rust/pact_models/src/tests.rs rename to crates/pact_models/src/tests.rs diff --git a/rust/pact_models/src/time_utils.rs b/crates/pact_models/src/time_utils.rs similarity index 100% rename from rust/pact_models/src/time_utils.rs rename to crates/pact_models/src/time_utils.rs diff --git a/rust/pact_models/src/timezone_db.rs b/crates/pact_models/src/timezone_db.rs similarity index 100% rename from rust/pact_models/src/timezone_db.rs rename to crates/pact_models/src/timezone_db.rs diff --git a/rust/pact_models/src/v4/async_message.rs b/crates/pact_models/src/v4/async_message.rs similarity index 100% rename from rust/pact_models/src/v4/async_message.rs rename to crates/pact_models/src/v4/async_message.rs diff --git a/rust/pact_models/src/v4/http_parts.rs b/crates/pact_models/src/v4/http_parts.rs similarity index 100% rename from rust/pact_models/src/v4/http_parts.rs rename to crates/pact_models/src/v4/http_parts.rs diff --git a/rust/pact_models/src/v4/interaction.rs b/crates/pact_models/src/v4/interaction.rs similarity index 100% rename from rust/pact_models/src/v4/interaction.rs rename to crates/pact_models/src/v4/interaction.rs diff --git a/rust/pact_models/src/v4/message_parts.rs b/crates/pact_models/src/v4/message_parts.rs similarity index 100% rename from rust/pact_models/src/v4/message_parts.rs rename to crates/pact_models/src/v4/message_parts.rs diff --git a/rust/pact_models/src/v4/mod.rs b/crates/pact_models/src/v4/mod.rs similarity index 100% rename from rust/pact_models/src/v4/mod.rs rename to crates/pact_models/src/v4/mod.rs diff --git a/rust/pact_models/src/v4/pact.rs b/crates/pact_models/src/v4/pact.rs similarity index 100% rename from rust/pact_models/src/v4/pact.rs rename to crates/pact_models/src/v4/pact.rs diff --git a/rust/pact_models/src/v4/sync_message.rs b/crates/pact_models/src/v4/sync_message.rs similarity index 100% rename from rust/pact_models/src/v4/sync_message.rs rename to crates/pact_models/src/v4/sync_message.rs diff --git a/rust/pact_models/src/v4/synch_http.rs b/crates/pact_models/src/v4/synch_http.rs similarity index 100% rename from rust/pact_models/src/v4/synch_http.rs rename to crates/pact_models/src/v4/synch_http.rs diff --git a/rust/pact_models/src/verify_json.rs b/crates/pact_models/src/verify_json.rs similarity index 100% rename from rust/pact_models/src/verify_json.rs rename to crates/pact_models/src/verify_json.rs diff --git a/rust/pact_models/src/xml_utils.rs b/crates/pact_models/src/xml_utils.rs similarity index 100% rename from rust/pact_models/src/xml_utils.rs rename to crates/pact_models/src/xml_utils.rs diff --git a/rust/pact_models/tests/data/message_with_binary_body_serialises.zip b/crates/pact_models/tests/data/message_with_binary_body_serialises.zip similarity index 100% rename from rust/pact_models/tests/data/message_with_binary_body_serialises.zip rename to crates/pact_models/tests/data/message_with_binary_body_serialises.zip diff --git a/rust/pact_models/tests/tests.rs b/crates/pact_models/tests/tests.rs similarity index 100% rename from rust/pact_models/tests/tests.rs rename to crates/pact_models/tests/tests.rs diff --git a/rust/pact_models/tzdata/africa b/crates/pact_models/tzdata/africa similarity index 100% rename from rust/pact_models/tzdata/africa rename to crates/pact_models/tzdata/africa diff --git a/rust/pact_models/tzdata/antarctica b/crates/pact_models/tzdata/antarctica similarity index 100% rename from rust/pact_models/tzdata/antarctica rename to crates/pact_models/tzdata/antarctica diff --git a/rust/pact_models/tzdata/asia b/crates/pact_models/tzdata/asia similarity index 100% rename from rust/pact_models/tzdata/asia rename to crates/pact_models/tzdata/asia diff --git a/rust/pact_models/tzdata/australasia b/crates/pact_models/tzdata/australasia similarity index 100% rename from rust/pact_models/tzdata/australasia rename to crates/pact_models/tzdata/australasia diff --git a/rust/pact_models/tzdata/backward b/crates/pact_models/tzdata/backward similarity index 100% rename from rust/pact_models/tzdata/backward rename to crates/pact_models/tzdata/backward diff --git a/rust/pact_models/tzdata/etcetera b/crates/pact_models/tzdata/etcetera similarity index 100% rename from rust/pact_models/tzdata/etcetera rename to crates/pact_models/tzdata/etcetera diff --git a/rust/pact_models/tzdata/europe b/crates/pact_models/tzdata/europe similarity index 100% rename from rust/pact_models/tzdata/europe rename to crates/pact_models/tzdata/europe diff --git a/rust/pact_models/tzdata/northamerica b/crates/pact_models/tzdata/northamerica similarity index 100% rename from rust/pact_models/tzdata/northamerica rename to crates/pact_models/tzdata/northamerica diff --git a/rust/pact_models/tzdata/pacificnew b/crates/pact_models/tzdata/pacificnew similarity index 100% rename from rust/pact_models/tzdata/pacificnew rename to crates/pact_models/tzdata/pacificnew diff --git a/rust/pact_models/tzdata/southamerica b/crates/pact_models/tzdata/southamerica similarity index 100% rename from rust/pact_models/tzdata/southamerica rename to crates/pact_models/tzdata/southamerica diff --git a/rust/pact_verifier/CHANGELOG.md b/crates/pact_verifier/CHANGELOG.md similarity index 100% rename from rust/pact_verifier/CHANGELOG.md rename to crates/pact_verifier/CHANGELOG.md diff --git a/rust/pact_verifier/Cargo.toml b/crates/pact_verifier/Cargo.toml similarity index 98% rename from rust/pact_verifier/Cargo.toml rename to crates/pact_verifier/Cargo.toml index 2b9bb8488..14c5ec74d 100644 --- a/rust/pact_verifier/Cargo.toml +++ b/crates/pact_verifier/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" description = "Pact-Rust support library that implements provider verification functions" documentation = "https://docs.rs/pact_verifier/" homepage = "https://www.pact.io" -repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_verifier" +repository = "https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_verifier" readme = "README.md" keywords = ["testing", "pact", "cdc"] license = "MIT" diff --git a/rust/pact_verifier/README.md b/crates/pact_verifier/README.md similarity index 100% rename from rust/pact_verifier/README.md rename to crates/pact_verifier/README.md diff --git a/crates/pact_verifier/release-linux.sh b/crates/pact_verifier/release-linux.sh new file mode 100755 index 000000000..61adeb2e8 --- /dev/null +++ b/crates/pact_verifier/release-linux.sh @@ -0,0 +1,12 @@ +#!/bin/bash -x + +if [ "" = "$1" ]; then + echo "Usage: " + echo " ./release-linux.sh version" + exit 1 +fi + +cargo clean +cargo build --release +gzip -c ../../target/release/libpact_verifier.so > ../../target/release/libpact_verifier-linux-x86_64-$1.so.gz +openssl dgst -sha256 -r ../../target/release/libpact_verifier-linux-x86_64-$1.so.gz > ../../target/release/libpact_verifier-linux-x86_64-$1.so.gz.sha256 diff --git a/rust/pact_verifier/release-osx.sh b/crates/pact_verifier/release-osx.sh similarity index 100% rename from rust/pact_verifier/release-osx.sh rename to crates/pact_verifier/release-osx.sh diff --git a/rust/pact_verifier/release-win.sh b/crates/pact_verifier/release-win.sh similarity index 100% rename from rust/pact_verifier/release-win.sh rename to crates/pact_verifier/release-win.sh diff --git a/rust/pact_verifier/release.groovy b/crates/pact_verifier/release.groovy similarity index 98% rename from rust/pact_verifier/release.groovy rename to crates/pact_verifier/release.groovy index 1a1ad3ade..e301465b9 100755 --- a/rust/pact_verifier/release.groovy +++ b/crates/pact_verifier/release.groovy @@ -103,7 +103,7 @@ def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() ask("Bump version to $nextVer?: [Y]") { executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" executeOnShell("git add Cargo.toml") - executeOnShell("git add ../Cargo.lock") + executeOnShell("git add ../../Cargo.lock") executeOnShell("git diff --cached") ask("Commit and push this change?: [Y]") { executeOnShell("git commit -m 'chore(pact_verifier): bump version to $nextVer [skip ci]'") diff --git a/rust/pact_verifier/src/callback_executors.rs b/crates/pact_verifier/src/callback_executors.rs similarity index 100% rename from rust/pact_verifier/src/callback_executors.rs rename to crates/pact_verifier/src/callback_executors.rs diff --git a/rust/pact_verifier/src/lib.rs b/crates/pact_verifier/src/lib.rs similarity index 100% rename from rust/pact_verifier/src/lib.rs rename to crates/pact_verifier/src/lib.rs diff --git a/rust/pact_verifier/src/messages.rs b/crates/pact_verifier/src/messages.rs similarity index 100% rename from rust/pact_verifier/src/messages.rs rename to crates/pact_verifier/src/messages.rs diff --git a/rust/pact_verifier/src/metrics.rs b/crates/pact_verifier/src/metrics.rs similarity index 100% rename from rust/pact_verifier/src/metrics.rs rename to crates/pact_verifier/src/metrics.rs diff --git a/rust/pact_verifier/src/pact_broker.rs b/crates/pact_verifier/src/pact_broker.rs similarity index 100% rename from rust/pact_verifier/src/pact_broker.rs rename to crates/pact_verifier/src/pact_broker.rs diff --git a/rust/pact_verifier/src/provider_client.rs b/crates/pact_verifier/src/provider_client.rs similarity index 98% rename from rust/pact_verifier/src/provider_client.rs rename to crates/pact_verifier/src/provider_client.rs index 9b0d56c67..fff0e45cf 100644 --- a/rust/pact_verifier/src/provider_client.rs +++ b/crates/pact_verifier/src/provider_client.rs @@ -353,7 +353,7 @@ mod tests { #[test] fn convert_request_to_native_request_test() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest::default(); let request_builder = create_native_request(&client, &base_url, &request, &hashmap!{}).unwrap().build().unwrap(); @@ -365,7 +365,7 @@ mod tests { #[test] fn convert_request_to_native_request_with_query_parameters() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest { query: Some(hashmap!{ @@ -382,7 +382,7 @@ mod tests { #[test] fn convert_request_to_native_request_with_headers() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest { headers: Some(hashmap! { @@ -406,7 +406,7 @@ mod tests { #[test] fn convert_request_to_native_request_with_body() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest { body: OptionalBody::from("body"), @@ -421,7 +421,7 @@ mod tests { #[test] fn convert_request_to_native_request_with_null_body() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest { body: OptionalBody::Null, @@ -436,7 +436,7 @@ mod tests { #[test] fn convert_request_to_native_request_with_json_null_body() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest { headers: Some(hashmap! { @@ -493,7 +493,7 @@ mod tests { #[test] fn convert_request_to_native_request_with_custom_headers() { - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let base_url = "http://example.test:8080".to_string(); let request = HttpRequest { headers: Some(hashmap! { diff --git a/rust/pact_verifier/src/request_response.rs b/crates/pact_verifier/src/request_response.rs similarity index 100% rename from rust/pact_verifier/src/request_response.rs rename to crates/pact_verifier/src/request_response.rs diff --git a/rust/pact_verifier/src/selectors.rs b/crates/pact_verifier/src/selectors.rs similarity index 100% rename from rust/pact_verifier/src/selectors.rs rename to crates/pact_verifier/src/selectors.rs diff --git a/rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_multiple_reference_groups.snap b/crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_multiple_reference_groups.snap similarity index 100% rename from rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_multiple_reference_groups.snap rename to crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_multiple_reference_groups.snap diff --git a/rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_no_references_produces_no_references_section.snap b/crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_no_references_produces_no_references_section.snap similarity index 100% rename from rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_no_references_produces_no_references_section.snap rename to crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_no_references_produces_no_references_section.snap diff --git a/rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_combined_with_text_and_testname.snap b/crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_combined_with_text_and_testname.snap similarity index 100% rename from rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_combined_with_text_and_testname.snap rename to crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_combined_with_text_and_testname.snap diff --git a/rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_displays_grouped_entries.snap b/crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_displays_grouped_entries.snap similarity index 100% rename from rust/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_displays_grouped_entries.snap rename to crates/pact_verifier/src/snapshots/pact_verifier__tests__process_comments_with_references_displays_grouped_entries.snap diff --git a/rust/pact_verifier/src/tests.rs b/crates/pact_verifier/src/tests.rs similarity index 99% rename from rust/pact_verifier/src/tests.rs rename to crates/pact_verifier/src/tests.rs index f0f61f9e4..f520190df 100644 --- a/rust/pact_verifier/src/tests.rs +++ b/crates/pact_verifier/src/tests.rs @@ -41,6 +41,13 @@ use crate::VERIFIER_VERSION; use super::{execute_state_change, filter_consumers, filter_interaction, FilterInfo}; +/// HTTP client for tests that call servers directly. +/// It installs the rustls crypto provider, which production code installs before building its own clients. +pub(crate) fn http_client() -> Client { + let _ = rustls::crypto::ring::default_provider().install_default(); + Client::new() +} + #[test] fn if_no_interaction_filter_is_defined_returns_true() { let interaction = RequestResponseInteraction::default(); diff --git a/rust/pact_verifier/src/utils.rs b/crates/pact_verifier/src/utils.rs similarity index 98% rename from rust/pact_verifier/src/utils.rs rename to crates/pact_verifier/src/utils.rs index 4738136b2..4df6c4e30 100644 --- a/rust/pact_verifier/src/utils.rs +++ b/crates/pact_verifier/src/utils.rs @@ -268,7 +268,7 @@ mod tests { }) .await; - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let request = client.get(&url); // retries=3: attempt 1 → 429, attempt 2 → 429, attempt 3 → 200 let result = with_retries(3, request).await; @@ -281,7 +281,7 @@ mod tests { async fn with_retries_does_not_retry_404_responses() { let (url, call_count) = spawn_server(|_| axum::http::StatusCode::NOT_FOUND.into_response()).await; - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let request = client.get(&url); let result = with_retries(3, request).await; // 404 is not retryable — should get a response after exactly 1 call @@ -295,7 +295,7 @@ mod tests { let (url, call_count) = spawn_server(|_| axum::http::StatusCode::TOO_MANY_REQUESTS.into_response()).await; - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let request = client.get(&url); // retries=0 must not panic and must send the request exactly once let result = with_retries(0, request).await; @@ -321,7 +321,7 @@ mod tests { }) .await; - let client = reqwest::Client::new(); + let client = crate::tests::http_client(); let request = client.get(&url); let result = with_retries(3, request).await; assert!(result.is_ok()); diff --git a/rust/pact_verifier/src/verification_result.rs b/crates/pact_verifier/src/verification_result.rs similarity index 100% rename from rust/pact_verifier/src/verification_result.rs rename to crates/pact_verifier/src/verification_result.rs diff --git a/rust/pact_verifier/src/verifier-results.schema.json b/crates/pact_verifier/src/verifier-results.schema.json similarity index 100% rename from rust/pact_verifier/src/verifier-results.schema.json rename to crates/pact_verifier/src/verifier-results.schema.json diff --git a/rust/pact_verifier/tests/issue396.json b/crates/pact_verifier/tests/issue396.json similarity index 100% rename from rust/pact_verifier/tests/issue396.json rename to crates/pact_verifier/tests/issue396.json diff --git a/rust/pact_verifier/tests/last-modified.json b/crates/pact_verifier/tests/last-modified.json similarity index 100% rename from rust/pact_verifier/tests/last-modified.json rename to crates/pact_verifier/tests/last-modified.json diff --git a/rust/pact_verifier/tests/match-values.json b/crates/pact_verifier/tests/match-values.json similarity index 100% rename from rust/pact_verifier/tests/match-values.json rename to crates/pact_verifier/tests/match-values.json diff --git a/rust/pact_verifier/tests/message-pact-with-metadata-matchingrule.json b/crates/pact_verifier/tests/message-pact-with-metadata-matchingrule.json similarity index 100% rename from rust/pact_verifier/tests/message-pact-with-metadata-matchingrule.json rename to crates/pact_verifier/tests/message-pact-with-metadata-matchingrule.json diff --git a/rust/pact_verifier/tests/message-pact.json b/crates/pact_verifier/tests/message-pact.json similarity index 100% rename from rust/pact_verifier/tests/message-pact.json rename to crates/pact_verifier/tests/message-pact.json diff --git a/rust/pact_verifier/tests/no-content-type.json b/crates/pact_verifier/tests/no-content-type.json similarity index 100% rename from rust/pact_verifier/tests/no-content-type.json rename to crates/pact_verifier/tests/no-content-type.json diff --git a/rust/pact_verifier/tests/pact-2-interactions.json b/crates/pact_verifier/tests/pact-2-interactions.json similarity index 100% rename from rust/pact_verifier/tests/pact-2-interactions.json rename to crates/pact_verifier/tests/pact-2-interactions.json diff --git a/rust/pact_verifier/tests/pact-one.json b/crates/pact_verifier/tests/pact-one.json similarity index 100% rename from rust/pact_verifier/tests/pact-one.json rename to crates/pact_verifier/tests/pact-one.json diff --git a/rust/pact_verifier/tests/pact-two.json b/crates/pact_verifier/tests/pact-two.json similarity index 100% rename from rust/pact_verifier/tests/pact-two.json rename to crates/pact_verifier/tests/pact-two.json diff --git a/rust/pact_verifier/tests/pact-with-provider-states.json b/crates/pact_verifier/tests/pact-with-provider-states.json similarity index 100% rename from rust/pact_verifier/tests/pact-with-provider-states.json rename to crates/pact_verifier/tests/pact-with-provider-states.json diff --git a/rust/pact_verifier/tests/pact_with_special_chars.json b/crates/pact_verifier/tests/pact_with_special_chars.json similarity index 100% rename from rust/pact_verifier/tests/pact_with_special_chars.json rename to crates/pact_verifier/tests/pact_with_special_chars.json diff --git a/rust/pact_verifier/tests/pacts/pact-1.json b/crates/pact_verifier/tests/pacts/pact-1.json similarity index 100% rename from rust/pact_verifier/tests/pacts/pact-1.json rename to crates/pact_verifier/tests/pacts/pact-1.json diff --git a/rust/pact_verifier/tests/pacts/pact-2.json b/crates/pact_verifier/tests/pacts/pact-2.json similarity index 100% rename from rust/pact_verifier/tests/pacts/pact-2.json rename to crates/pact_verifier/tests/pacts/pact-2.json diff --git a/rust/pact_verifier/tests/redirect.json b/crates/pact_verifier/tests/redirect.json similarity index 100% rename from rust/pact_verifier/tests/redirect.json rename to crates/pact_verifier/tests/redirect.json diff --git a/rust/pact_verifier/tests/tests.rs b/crates/pact_verifier/tests/tests.rs similarity index 100% rename from rust/pact_verifier/tests/tests.rs rename to crates/pact_verifier/tests/tests.rs diff --git a/rust/pact_verifier/tests/v4-pending-pact.json b/crates/pact_verifier/tests/v4-pending-pact.json similarity index 100% rename from rust/pact_verifier/tests/v4-pending-pact.json rename to crates/pact_verifier/tests/v4-pending-pact.json diff --git a/rust/pact_verifier_cli/.dockerignore b/crates/pact_verifier_cli/.dockerignore similarity index 100% rename from rust/pact_verifier_cli/.dockerignore rename to crates/pact_verifier_cli/.dockerignore diff --git a/rust/pact_verifier_cli/CHANGELOG.md b/crates/pact_verifier_cli/CHANGELOG.md similarity index 100% rename from rust/pact_verifier_cli/CHANGELOG.md rename to crates/pact_verifier_cli/CHANGELOG.md diff --git a/rust/pact_verifier_cli/Cargo.toml b/crates/pact_verifier_cli/Cargo.toml similarity index 98% rename from rust/pact_verifier_cli/Cargo.toml rename to crates/pact_verifier_cli/Cargo.toml index 524ad8d35..2f1edad00 100644 --- a/rust/pact_verifier_cli/Cargo.toml +++ b/crates/pact_verifier_cli/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Ronald Holshausen "] edition = "2024" description = "Standalone pact verifier for provider pact verification" homepage = "https://www.pact.io" -repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_verifier_cli" +repository = "https://github.com/pact-foundation/pact-reference/blob/master/crates/pact_verifier_cli" readme = "README.md" keywords = ["testing", "pact", "cdc"] license = "MIT" diff --git a/rust/pact_verifier_cli/Dockerfile b/crates/pact_verifier_cli/Dockerfile similarity index 100% rename from rust/pact_verifier_cli/Dockerfile rename to crates/pact_verifier_cli/Dockerfile diff --git a/rust/pact_verifier_cli/README.md b/crates/pact_verifier_cli/README.md similarity index 100% rename from rust/pact_verifier_cli/README.md rename to crates/pact_verifier_cli/README.md diff --git a/rust/pact_verifier_cli/release-docker.sh b/crates/pact_verifier_cli/release-docker.sh similarity index 100% rename from rust/pact_verifier_cli/release-docker.sh rename to crates/pact_verifier_cli/release-docker.sh diff --git a/rust/pact_verifier_cli/release-linux.sh b/crates/pact_verifier_cli/release-linux.sh similarity index 96% rename from rust/pact_verifier_cli/release-linux.sh rename to crates/pact_verifier_cli/release-linux.sh index 4972e50fb..c065c7d51 100755 --- a/rust/pact_verifier_cli/release-linux.sh +++ b/crates/pact_verifier_cli/release-linux.sh @@ -3,7 +3,7 @@ set -e set -x -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" APP_NAME=pact-verifier source "$RUST_DIR/scripts/gzip-and-sum.sh" diff --git a/rust/pact_verifier_cli/release-macos.sh b/crates/pact_verifier_cli/release-macos.sh similarity index 95% rename from rust/pact_verifier_cli/release-macos.sh rename to crates/pact_verifier_cli/release-macos.sh index 268ab0017..cea004578 100755 --- a/rust/pact_verifier_cli/release-macos.sh +++ b/crates/pact_verifier_cli/release-macos.sh @@ -3,7 +3,7 @@ set -e set -x -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" APP_NAME=pact-verifier source "$RUST_DIR/scripts/gzip-and-sum.sh" diff --git a/rust/pact_verifier_cli/release-win.sh b/crates/pact_verifier_cli/release-win.sh similarity index 94% rename from rust/pact_verifier_cli/release-win.sh rename to crates/pact_verifier_cli/release-win.sh index 8010e8ed2..4796c662c 100755 --- a/rust/pact_verifier_cli/release-win.sh +++ b/crates/pact_verifier_cli/release-win.sh @@ -3,7 +3,7 @@ set -e set -x -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" APP_NAME=pact-verifier source "$RUST_DIR/scripts/gzip-and-sum.sh" diff --git a/rust/pact_verifier_cli/release.groovy b/crates/pact_verifier_cli/release.groovy similarity index 98% rename from rust/pact_verifier_cli/release.groovy rename to crates/pact_verifier_cli/release.groovy index 87cc00bea..a32215179 100755 --- a/rust/pact_verifier_cli/release.groovy +++ b/crates/pact_verifier_cli/release.groovy @@ -104,7 +104,7 @@ ask("Bump version to $nextVer?: [Y]") { executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" executeOnShell("cargo update") executeOnShell("git add Cargo.toml") - executeOnShell("git add ../Cargo.lock") + executeOnShell("git add ../../Cargo.lock") executeOnShell("git diff --cached") ask("Commit and push this change?: [Y]") { executeOnShell("git commit -m 'bump version to $nextVer'") diff --git a/rust/pact_verifier_cli/src/args.rs b/crates/pact_verifier_cli/src/args.rs similarity index 100% rename from rust/pact_verifier_cli/src/args.rs rename to crates/pact_verifier_cli/src/args.rs diff --git a/rust/pact_verifier_cli/src/bin/pact-verifier.rs b/crates/pact_verifier_cli/src/bin/pact-verifier.rs similarity index 100% rename from rust/pact_verifier_cli/src/bin/pact-verifier.rs rename to crates/pact_verifier_cli/src/bin/pact-verifier.rs diff --git a/rust/pact_verifier_cli/src/lib.rs b/crates/pact_verifier_cli/src/lib.rs similarity index 100% rename from rust/pact_verifier_cli/src/lib.rs rename to crates/pact_verifier_cli/src/lib.rs diff --git a/rust/pact_verifier_cli/src/reports/mod.rs b/crates/pact_verifier_cli/src/reports/mod.rs similarity index 100% rename from rust/pact_verifier_cli/src/reports/mod.rs rename to crates/pact_verifier_cli/src/reports/mod.rs diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__all_mismatch_types.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__all_mismatch_types.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__all_mismatch_types.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__all_mismatch_types.snap diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__empty_result.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__empty_result.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__empty_result.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__empty_result.snap diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_body_mismatch.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_body_mismatch.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_body_mismatch.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_body_mismatch.snap diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_error_mismatch.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_error_mismatch.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_error_mismatch.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__failing_with_error_mismatch.snap diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__passing_result_with_interactions.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__passing_result_with_interactions.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__passing_result_with_interactions.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__passing_result_with_interactions.snap diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__pending_errors.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__pending_errors.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__pending_errors.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__pending_errors.snap diff --git a/rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__with_notices.snap b/crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__with_notices.snap similarity index 100% rename from rust/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__with_notices.snap rename to crates/pact_verifier_cli/src/reports/snapshots/pact_verifier_cli__reports__xml__tests__with_notices.snap diff --git a/rust/pact_verifier_cli/src/reports/verification-report.xsl b/crates/pact_verifier_cli/src/reports/verification-report.xsl similarity index 100% rename from rust/pact_verifier_cli/src/reports/verification-report.xsl rename to crates/pact_verifier_cli/src/reports/verification-report.xsl diff --git a/rust/pact_verifier_cli/src/reports/xml.rs b/crates/pact_verifier_cli/src/reports/xml.rs similarity index 100% rename from rust/pact_verifier_cli/src/reports/xml.rs rename to crates/pact_verifier_cli/src/reports/xml.rs diff --git a/rust/pact_verifier_cli/tests/cli-tests.rs b/crates/pact_verifier_cli/tests/cli-tests.rs similarity index 100% rename from rust/pact_verifier_cli/tests/cli-tests.rs rename to crates/pact_verifier_cli/tests/cli-tests.rs diff --git a/rust/pact_verifier_cli/tests/cmd/main.stderr b/crates/pact_verifier_cli/tests/cmd/main.stderr similarity index 100% rename from rust/pact_verifier_cli/tests/cmd/main.stderr rename to crates/pact_verifier_cli/tests/cmd/main.stderr diff --git a/rust/pact_verifier_cli/tests/cmd/main.stdout b/crates/pact_verifier_cli/tests/cmd/main.stdout similarity index 100% rename from rust/pact_verifier_cli/tests/cmd/main.stdout rename to crates/pact_verifier_cli/tests/cmd/main.stdout diff --git a/rust/pact_verifier_cli/tests/cmd/main.toml b/crates/pact_verifier_cli/tests/cmd/main.toml similarity index 100% rename from rust/pact_verifier_cli/tests/cmd/main.toml rename to crates/pact_verifier_cli/tests/cmd/main.toml diff --git a/mise.toml b/mise.toml new file mode 100644 index 000000000..3e3743c37 --- /dev/null +++ b/mise.toml @@ -0,0 +1,15 @@ +#:schema https://mise.jdx.dev/schema/mise.json + +# Tools used by CI; `rust-toolchain.toml` pins Rust itself. +[tools] +"aqua:cargo-bins/cargo-binstall" = "1.23.0" +"aqua:nextest-rs/nextest/cargo-nextest" = "0.9.148" +"cargo:cbindgen" = "0.29.4" +"github:taiki-e/cargo-hack" = "0.6.45" +just = "1.59.0" + +# Install cargo tools from prebuilt binaries only, falling back to +# cargo-quickinstall's builds; never compile them from source. +[settings.cargo] +binstall_only = true +binstall_quickinstall = true diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 000000000..246cb22c3 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.99.1" diff --git a/rust/pact_ffi/ci-build.sh b/rust/pact_ffi/ci-build.sh deleted file mode 100755 index 209e0b674..000000000 --- a/rust/pact_ffi/ci-build.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash - -set -e -set -x - -rustc --version - -cargo install --force cbindgen -rm -rf ./include - -rustup toolchain install nightly - -echo ------------------------------------- -echo - Build library with CMake -echo ------------------------------------- -mkdir -p build -cd build -cmake -DCMAKE_BUILD_TYPE=Debug .. -cmake --build . -v -cd .. - -echo ------------------------------------- -echo - Generate header with cbindgen -echo ------------------------------------- -rustup run nightly cbindgen \ - --config cbindgen.toml \ - --crate pact_ffi \ - --output include/pact.h -rustup run nightly cbindgen \ - --config cbindgen-c++.toml \ - --crate pact_ffi \ - --output include/pact-c++.h - -echo ------------------------------------- -echo - Make library available for examples -echo ------------------------------------- -cd build -cmake --install . --prefix ./install - -echo ------------------------------------- -echo - Running examples -echo ------------------------------------- -cd .. -for i in examples/*; do - pushd $i - mkdir -p build - cd build - cmake .. - cmake --build . - - echo "Running example $i" - if [[ "$OSTYPE" == "msys"* ]]; then - cp ../../../build/install/lib/*.dll Debug/ - ./Debug/example.exe - elif [[ "$OSTYPE" == "darwin"* ]]; then - cp ../../../build/install/lib/*.dylib . - ./example - else - ./example - fi - - popd -done diff --git a/rust/pact_ffi/release-ios.sh b/rust/pact_ffi/release-ios.sh deleted file mode 100755 index 38cdfdf10..000000000 --- a/rust/pact_ffi/release-ios.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -x -# Requires all architectures to be added to in order to produce universal library for iOS. -# ```rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios x86_64-apple-ios i386-apple-ios -# cargo install cargo-lipo``` - -cargo clean -cargo lipo --release -mkdir -p ../release_artifacts -gzip -c ../target/universal/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-ios-universal.a.gz -openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-ios-universal.a.gz > ../release_artifacts/libpact_ffi-ios-universal.a.gz.sha256 diff --git a/rust/pact_verifier/release-linux.sh b/rust/pact_verifier/release-linux.sh deleted file mode 100755 index da3699898..000000000 --- a/rust/pact_verifier/release-linux.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -x - -if [ "" = "$1" ]; then - echo "Usage: " - echo " ./release-linux.sh version" - exit 1 -fi - -cargo clean -cargo build --release -gzip -c ../target/release/libpact_verifier.so > ../target/release/libpact_verifier-linux-x86_64-$1.so.gz -openssl dgst -sha256 -r ../target/release/libpact_verifier-linux-x86_64-$1.so.gz > ../target/release/libpact_verifier-linux-x86_64-$1.so.gz.sha256 diff --git a/rust/scripts/ci-musl-build.sh b/scripts/ci-musl-build.sh similarity index 100% rename from rust/scripts/ci-musl-build.sh rename to scripts/ci-musl-build.sh diff --git a/rust/scripts/gzip-and-sum.sh b/scripts/gzip-and-sum.sh similarity index 100% rename from rust/scripts/gzip-and-sum.sh rename to scripts/gzip-and-sum.sh