kodama-capi

Crates.iokodama-capi
lib.rskodama-capi
version0.2.0
sourcesrc
created_at2017-08-15 14:42:58.332202
updated_at2023-01-04 17:04:32.766937
descriptionA C API for the kodama agglomerative hierarchical clustering library.
homepagehttps://github.com/diffeo/kodama
repositoryhttps://github.com/diffeo/kodama
max_upload_size
id27615
size20,824
Andrew Gallant (BurntSushi)

documentation

https://github.com/diffeo/kodama

README

kodama-capi

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.

Usage

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.

Aborts

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.

Commit count: 49

cargo fmt