Skip to content

Reference implementations for the pact specifications

License

Notifications You must be signed in to change notification settings

YOU54F/pact-reference

 
 

Repository files navigation

Logo of the project

Pact-Rust Build Pact-Rust FFI Build

Pact Reference Implementation

Reference implementations for Pact Specification written in Rust

This project contains a reference implementation of the Pact specifications written in Rust, as well as example projects in JavaScript and C (and a few others) that use the mock server library.

Usage

Rust

For Rust projects, you can use the Rust crates from this library in your project directly. Refer to the Rust project readme. Requires minimum Rust 1.71.0.

Other languages

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

For examples:

Building

To build the libraries in this project, you need a working Rust environment. Requires minimum Rust 1.59.0. Refer to the Rust Guide.

The build tool used is cargo.

cd rust
cargo build

This will compile all the libraries and put the generated files in rust/target/debug.

Contributing

See CONTRIBUTING (PRs are always welcome!).

Documentation

Rust library documentation is published to the Rust documentation site. Refer to the Rust project README.

Additional documentation can be found at the main Pact website.

Contact

Join us in slack: slack

or

Licensing

The code in this project is licensed under a MIT license. See LICENSE.

About

Reference implementations for the pact specifications

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 91.4%
  • Shell 1.9%
  • Gherkin 1.8%
  • Makefile 1.7%
  • CMake 0.7%
  • Python 0.6%
  • Other 1.9%