#gsl #library

sys GSL-sys

A rust binding for the GSL (the GNU scientific library)

4 stable releases

Uses old Rust 2015

3.0.0 Sep 17, 2021
2.0.2 Mar 25, 2021
2.0.1 Nov 9, 2020

#1288 in Math

Download history 569/week @ 2023-11-29 135/week @ 2023-12-06 107/week @ 2023-12-13 262/week @ 2023-12-20 344/week @ 2023-12-27 247/week @ 2024-01-03 212/week @ 2024-01-10 243/week @ 2024-01-17 156/week @ 2024-01-24 413/week @ 2024-01-31 557/week @ 2024-02-07 506/week @ 2024-02-14 1311/week @ 2024-02-21 791/week @ 2024-02-28 371/week @ 2024-03-06 230/week @ 2024-03-13

2,209 downloads per month
Used in 9 crates (via gsl)

GPL-3.0+

1MB
35K SLoC

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.

Dependencies