Skip to content

Conversation

@drobnyjt
Copy link
Collaborator

Thank you for your contribution to rustBCA!

Before submitting this PR, please make sure you have:

  • Opened an issue
  • Referenced the relevant issue number(s) below
  • Provided a description of the changes below
  • Ensured all tests pass and added any necessary tests for new code

Fixes #123

Description

This provides bindings with C and Python! Python bindings provided by PyO3 and C bindings done manually, with some help from cbindgen to generate the header files. With RustBCA.h and liblibRustBCA.so in hand, one can call simple_bca_c() from C!

By running:

from libRustBCA.pybca import simple_bca_py

One can also call the Python version of that function from Python.

All of this requires Python.h (because the same shared library is used for the C and Python versions).

@drobnyjt drobnyjt merged commit 666297e into dev Mar 19, 2021
@drobnyjt drobnyjt deleted the bindings branch March 22, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants