Skip to content

YOU54F/hello_ffi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello Pact FFI

Inspired by The Rust FFI Omnibus, this project aims to showcase the Pact FFI is as many languages as possible using the Foreign Function Interface

Note: This code in this project is not intended for use in your actual Pact projects, but may serve as inspiration for future projects.

Languages covered

Aims

  1. Load the shared libraries cross platform
  2. Print out the Pact FFI Library Version
  3. Create a HTTP Pact test
  4. Create a gRPC Pact test using a Pact Plugin
  5. Create a Pact Plugin

Bonus points

  1. Library downloader in each native language

Contributing

Contributions are welcome.

Things that could be useful

  1. Create a website to display the code snippets (Docusaurus + Remote code tabs)
  2. Create a cucumber test suite that can be used to execute each test in every language. Example feature file in ./features
  3. More languages
  4. Create more examples of test suite lifecycles and proper arranging of FFI calls. See https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/ARCHITECTURE.md

About

ffi examples in diff langs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published