Merge pull request #81 from marmistrz/ggml-bind

Expose the ggml functions in the bindings.
This commit is contained in:
0/0 2023-08-20 21:35:12 +00:00 committed by GitHub
commit ee69361df0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -59,6 +59,7 @@ fn main() {
let bindings = bindgen::Builder::default() let bindings = bindgen::Builder::default()
.header("wrapper.h") .header("wrapper.h")
.clang_arg("-I./whisper.cpp") .clang_arg("-I./whisper.cpp")
.clang_arg("-I./ggml.c")
.parse_callbacks(Box::new(bindgen::CargoCallbacks)) .parse_callbacks(Box::new(bindgen::CargoCallbacks))
.generate(); .generate();

View file

@ -1 +1,2 @@
#include <whisper.h> #include <whisper.h>
#include <ggml.h>