Skip to content

Generating a Rust native library useable from Python through Foreign Function Interface language bindings

Notifications You must be signed in to change notification settings

thunderbiscuit/uniffi-python-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

  1. build
  2. copy native library in path
  3. generate the bindings
# build library
cargo build

# copy library in path and rename
cp ./target/debug/libmath.dylib ./src/libuniffi_math.dylib

# generate bindings
uniffi-bindgen generate src/math.udl --language python

# use library
cd ./src/
python3 additions.py

UniFFI

Full UniFFI docs and user guide here

About

Generating a Rust native library useable from Python through Foreign Function Interface language bindings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published