1
0

feat: add cbindgen support

This commit is contained in:
2026-05-15 17:02:29 +08:00
parent 684a24fcf8
commit 8d7f96d499
4 changed files with 188 additions and 3 deletions

View File

@@ -3,3 +3,5 @@
For how to utilize this library, please see our example located in `example/ppic`. It is a Qt project built with CMake and demonstrate basically all usage of exposed functions in this dynamic library.
All crucial spots are written in this example as the code comment so I don't write them in there again.
Due to the limitation of Rust compiler, you may need to enable `RUSTC_BOOTSTRAP=1` environment when creating binding (it is not necessary for just building this dynamic library). See [this GitHub issue](https://github.com/mozilla/cbindgen/issues/1015) for more info.