Skip to content

Commit

Permalink
Merge pull request #475 from pact-foundation/chore/remove_stale_examples
Browse files Browse the repository at this point in the history
Chore/remove stale examples
  • Loading branch information
rholshausen authored Nov 27, 2024
2 parents b55407e + 3aed6bd commit 522afdf
Show file tree
Hide file tree
Showing 72 changed files with 34 additions and 4,078 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,6 @@ jobs:
${{ steps.cargo-flags.outputs.flags }}
working-directory: rust/pact_ffi

- name: Smoke Test FFI library
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' ||
github.event_name == 'workflow_dispatch' ||
startsWith(github.ref, 'refs/tags/libpact_ffi')
shell: bash
run: |
./smoke-test.sh ${{ matrix.targets }}
working-directory: ruby

- name: Upload the artifacts
if: |
startsWith(github.ref, 'refs/tags/libpact_ffi') ||
Expand Down
17 changes: 0 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,8 @@ autom4te.cache/
.vscode/
tokamak.toml

ruby/*/.bundle/
ruby/*/.yardoc
ruby/*/_yardoc/
ruby/*/coverage/
ruby/*/doc/
ruby/*/pkg/
ruby/*/spec/reports/
ruby/*/tmp/

# rspec failure tracking
ruby/*/.rspec_status

build/

php/vendor/
php/composer.lock

pkg/
python/venv/
python/pacts

compatibility-suite/Cargo.lock
41 changes: 34 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
[![Pact-Rust FFI Build](https://github.com/pact-foundation/pact-reference/actions/workflows/build-ffi.yml/badge.svg)](https://github.com/pact-foundation/pact-reference/actions/workflows/build-ffi.yml)

# Pact Reference Implementation
> Reference implementations for Pact Specification written in Rust

This project contains a reference implementation of the [Pact specifications](https://github.com/pact-foundation/pact-specification)
written in Rust, as well as example projects in JavaScript and C (and a few others) that use the mock server library.
> Reference implementations for the Pact Specification written in Rust
This project contains a reference implementation of the [Pact specification](https://github.com/pact-foundation/pact-specification)
written in Rust, often referred to as the Pact Core.

## Usage

Expand All @@ -18,13 +19,39 @@ readme](rust/README.md). Requires minimum Rust 1.71.0.

### Other languages

#### FFI

This project contains dynamic libraries that expose the core functionality through FFI (Foreign Function Interface).

For examples:
* [Javascript](javascript)
* [C](c/consumer-verification)
* [Ruby](ruby/example_consumer_spec)
* [PHP](php)

* [C - Consumer](c/consumer-verification)
* [C - Provider](c/provider-verification)
* [Various Languages](https://github.com/YOU54F/hello_ffi)

For implementations:

[Ecosystem graph](https://docs.pact.io/diagrams/ecosystem#rust-ffi-consumers-goldberg-machine)

* [Javascript via pact-js-core](https://github.com/pact-foundation/pact-js-core)
* [Ruby via pact-ruby-ffi](https://github.com/YOU54F/pact-ruby-ffi)
* [PHP via pact-php](https://github.com/pact-foundation/pact-php)
* [GoLang via pact-go](https://github.com/pact-foundation/pact-go)
* [.NET via pact-net](https://github.com/pact-foundation/pact-net)
* [Swift via pact-swift](https://github.com/surpher/PactSwift)
* [Dart via pact-dart](https://github.com/matthewshirley/pact_dart)
* [C++ via pact-cplusplus](https://github.com/pact-foundation/pact-cplusplus)
* [Python via pact-python](https://github.com/pact-foundation/pact-python)

#### CLI

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-stub-server-cli](https://github.com/pact-foundation/pact-stub-server)

They are distributed in binary & Docker formats.

## Building

Expand Down
File renamed without changes.
File renamed without changes.
18 changes: 0 additions & 18 deletions javascript/README.md

This file was deleted.

90 changes: 0 additions & 90 deletions javascript/lib/simple_pact.js

This file was deleted.

167 changes: 0 additions & 167 deletions javascript/lib/simple_pact_error.js

This file was deleted.

17 changes: 0 additions & 17 deletions javascript/package.json

This file was deleted.

Loading

0 comments on commit 522afdf

Please sign in to comment.