MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / graphlite_version

Function graphlite_version

graphlite-ffi/src/lib.rs:397–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395/// * Must NOT be freed (it's a static string)
396#[no_mangle]
397pub extern "C" fn graphlite_version() -> *const c_char {
398 // Using a static string so it doesn't need to be freed
399 const VERSION: &[u8] = b"0.1.0\0";
400 VERSION.as_ptr() as *const c_char
401}
402
403// Helper function to set error code if output pointer is not null
404fn set_error(error_out: *mut GraphLiteErrorCode, code: GraphLiteErrorCode) {

Callers 1

test_versionFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_versionFunction · 0.68