diff --git a/cozo-lib-c/cozo_c.h b/cozo-lib-c/cozo_c.h index 4581c820..985adf13 100644 --- a/cozo-lib-c/cozo_c.h +++ b/cozo-lib-c/cozo_c.h @@ -107,8 +107,8 @@ char *cozo_restore(int32_t db_id, * * Returns a UTF-8-encoded C-string indicating the result that **must** be freed with `cozo_free_str`. */ -char *import_from_backup(int32_t db_id, - const char *json_payload); +char *cozo_import_from_backup(int32_t db_id, + const char *json_payload); /** * Free any C-string returned from the Cozo C API. diff --git a/cozo-lib-c/src/lib.rs b/cozo-lib-c/src/lib.rs index f2eabaef..138a6a34 100644 --- a/cozo-lib-c/src/lib.rs +++ b/cozo-lib-c/src/lib.rs @@ -279,7 +279,7 @@ pub unsafe extern "C" fn cozo_restore(db_id: i32, in_path: *const c_char) -> *mu /// `json_payload`: a UTF-8 encoded JSON payload: `{"path": ..., "relations": [...]}` /// /// Returns a UTF-8-encoded C-string indicating the result that **must** be freed with `cozo_free_str`. -pub unsafe extern "C" fn import_from_backup( +pub unsafe extern "C" fn cozo_import_from_backup( db_id: i32, json_payload: *const c_char, ) -> *mut c_char { diff --git a/scripts/build-release-mac.sh b/scripts/build-release-mac.sh index 9ebdf1f6..6e2176df 100755 --- a/scripts/build-release-mac.sh +++ b/scripts/build-release-mac.sh @@ -41,4 +41,6 @@ cd cozo-lib-wasm CARGO_PROFILE_RELEASE_LTO=fat ./build.sh cd .. +cp cozo-lib-c/cozo_c.h release/ + zip release/cozo_wasm-$VERSION-wasm32-unknown-unknown.zip $(find cozo-lib-wasm/pkg) \ No newline at end of file