Get the bodies, footers working in the c-api

This commit is contained in:
Dane Johnson
2022-01-11 15:13:54 -06:00
parent 9fcb145b55
commit c1eb29275a
7 changed files with 239 additions and 33 deletions

9
rust-ffi-demo/Makefile Normal file
View File

@@ -0,0 +1,9 @@
LDFLAGS := -L../src/rust-base/target/debug -lstorybook -Wl,--gc-sections -lpthread -ldl
.PHONY: all clean
all: demo
demo: demo.h demo.c
$(CC) -g $^ $(LDFLAGS) -o $@
demo.h:
cbindgen -c ../src/rust-base/cbindgen.toml --crate storybook --lang c -o demo.h ../src/rust-base
clean:
rm -f demo demo.h