GSL-sys

Crates.ioGSL-sys
lib.rsGSL-sys
version3.0.0
sourcesrc
created_at2020-11-09 12:59:51.038784
updated_at2021-09-17 13:59:55.466269
descriptionA rust binding for the GSL (the GNU scientific library)
homepage
repositoryhttps://github.com/GuillaumeGomez/rust-GSL
max_upload_size
id310298
size944,869
Guillaume Gomez (GuillaumeGomez)

documentation

https://docs.rs/crate/GSL-sys/

README

gsl-sys

This is the FFI counter-part of the Rust GSL crate. It is better to use the GSL crate directly rather than this one (unless something is missing the Rust binding!).

Update FFI

Most of the FFI is generated using bindgen. Therefore, it'll be used to update. You'll also need the gsl repository locally because we need its headers.

Basically, an update would look like this:

cd bin && cargo run

However, if you want to change the output a bit, it's strongly recommended that you instead clone and setup the GSL repository on your computer directly:

wget ftp://ftp.gnu.org/gnu/gsl/gsl-2.7.tar.gz
tar xzf gsl-2.7.tar.gz
cd gsl-2.7
./autogen.sh
./configure
make
# The headers should now all be in the gsl-2.7 subfolder!

Then run the FFI generation like this:

cd bin && cargo run -- [PATH TO GSL]

It'll prevent all the clone and rebuild every time.

Commit count: 548

cargo fmt