Crates.io | libparasail-sys |
lib.rs | libparasail-sys |
version | 0.1.8 |
source | src |
created_at | 2024-02-15 23:07:42.213868 |
updated_at | 2024-11-19 04:41:33.980004 |
description | Unsafe Rust bindings for the parasail C library |
homepage | |
repository | https://github.com/nsbuitrago/libparasail-sys |
max_upload_size | |
id | 1141681 |
size | 32,445,096 |
This crate provides unsafe Rust bindings for parasail. You might be interested in parasail-rs, which provides safe Rust bindings and a wrapper to parasail.
Note that parasail-sys similarly provides unsafe Rust bindings, but has been archived since 2020. The intention of libparasail-sys is to provide an up to date set of bindings for parasail and slightly different API.
Assuming you have cargo setup, you can build libparasail-sys to check that the bindings compile with cargo build
. Note that we try and use system parasail by default and then try to build using CMake if no system package is found (see build.rs or the CMake build instructions in the original library repo). To force using system parasail, set the PARASAIL_NO_VENDOR=1
environment variable.
Bindgen provides tests to check the generated FFI structs. For verification, run cargo test
. Assuming no modification has been made to the bindings.rs
, this should pass successfully. This crate has been tested with cargo 1.77.0-nightly.
Contributions are more than welcome. Please submit an issue or pull request.
libparasail-sys is licensed under the BSD-3-clause license, however, parasail is licensed under a very similar Batelle BSD-style license and was developed by Jeff Daily along with other contributors.