You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ziyang Hu 8f2e918f91 bump version and update API 2 years ago
..
src bump version and update API 2 years ago
.gitignore example in C; always write `errored` in C API; 2 years ago
Cargo.toml bump version and update API 2 years ago
README.md building for iOS 2 years ago
build.rs update copyright notice 2 years ago
comiple-ios.sh building for iOS 2 years ago
cozo_c.h bump version and update API 2 years ago
example.c update copyright notice 2 years ago

README.md

Cozo C lib

This directory contains the source of the Cozo C API.

For building, refer here.

The API is contained in this single header file.

An example for using the API is here.

To build and run the example:

gcc -L../target/release/ -lcozo_c example.c -o example && ./example

Building for iOS

See this guide for detailed instructions on compilation for iOS.

All scripts are run from this directory.

For iOS devices:

ARCHS=arm64 ./comiple-ios.sh cozo_c release

For simulator on Apple ARM:

IS_SIMULATOR=1 ARCHS=arm64 ./comiple-ios.sh cozo_c release

For simulator on x86-64:

IS_SIMULATOR=1 ARCHS=x86_64 ./comiple-ios.sh cozo_c release

The libraries are then found in ../target subdirectories. The static libraries can then be linked into your iOS applications.