Crates.io | freesasa-rs |
lib.rs | freesasa-rs |
version | 0.1.3 |
source | src |
created_at | 2024-04-10 19:47:52.767776 |
updated_at | 2024-04-10 19:47:52.767776 |
description | Rust (safe) bindings for the freesasa library |
homepage | |
repository | https://github.com/OWissett/freesasa-rs |
max_upload_size | |
id | 1203929 |
size | 5,000,362 |
High-level Rust FFI bindings for freesasa
C-API. Currently the library provides all basic functionality of freesasa
C-API.
If you require lower level bindings, you can use freesasa_sys
crate directly - this is not recommended unless you are sure what you are doing, as you require the use of unsafe
Rust code and manual memory management of C
objects.
It is a work in progress and is not yet feature complete, as such, some functions may not be available and the API may change (although I will try to keep it as stable as possible).
Requires freesasa_sys
which is built from source. As such following build tools are required:
All of the following are availible as apt
packages:
build-essential
make
autoconf
libc++-dev
libc++abi-dev
Availible as brew
packages:
automake
At the point of testing, I have lots of other tools installed on my mac, so it is hard for me to know if there are any other dependencies.
Let me know if you have any errors when building this on a Mac (or update this list).
Add the following to your Cargo.toml
:
[dependencies]
rustsasa = "0.1.1"