Crates.io | kodama-capi |
lib.rs | kodama-capi |
version | 0.2.0 |
source | src |
created_at | 2017-08-15 14:42:58.332202 |
updated_at | 2023-01-04 17:04:32.766937 |
description | A C API for the kodama agglomerative hierarchical clustering library. |
homepage | https://github.com/diffeo/kodama |
repository | https://github.com/diffeo/kodama |
max_upload_size | |
id | 27615 |
size | 20,824 |
This crate exposes a C API for the kodama hierarchical clustering crate.
The header file (includes/kodama.h
) serves as the primary API document for
the C API, but is not complete. The complete documentation can be found with
the Rust library.
This library is released under the MIT license.
This library can be built like any other Rust library. By default, it should produce both a shared object and a static library specific to your platform. The resulting libraries expose a C ABI, and can be linked normally.
This library will abort your process if an unwinding panic is caught in the Rust code. Generally, a panic occurs when there is a bug in the program (that would be kodama in this case) or if allocation failed.
Note that this is orthogonal from other unchecked runtime errors. For example,
giving a NULL pointer to kodama_dendrogram_steps
will result in attempting to
dereference a NULL pointer, which will probably result in a segmentation fault.