Crates.io | GSL |
lib.rs | GSL |
version | 7.0.0 |
source | src |
created_at | 2014-11-20 21:05:12.697119 |
updated_at | 2023-11-06 21:41:10.127751 |
description | A rust binding for the GSL (the GNU scientific library) |
homepage | |
repository | https://github.com/GuillaumeGomez/rust-GSL |
max_upload_size | |
id | 150 |
size | 1,308,662 |
A Rust binding for the GSL library (the GNU Scientific Library).
The minimum support Rust version is 1.54.
This binding requires the GSL library library (version >= 2) to be installed:
# on debian based systems:
sudo apt-get install libgsl0-dev
brew install gsl
Homebrew installs libraries under /opt/homebrew/include
on Apple silicon
to maintain backward compatibility with Rosetta 2.
After gsl
has been installed in the usual way, use
the environment variable:
RUSTFLAGS='-L /opt/homebrew/include'
before cargo run
, cargo build
, etc., to tell the compiler where gsl
is located.
Instructions are available there: https://www.gnu.org/software/gsl/extras/native_win_builds.html.
This crate works with Cargo and is on crates.io. Just add the following to your Cargo.toml
file:
[dependencies]
GSL = "7.0"
You can see examples in the examples
folder.
To build rgsl
, just run cargo build
. However, if you want to use a specific version, you'll
need to use the cargo
features. For example:
cargo build --features v2_1
If a project depends on this version, don't forget to add in your Cargo.toml
:
[dependencies.GSL]
version = "2"
features = ["v2_1"]
You can access the rgsl documentation locally, just build it:
> cargo doc --open
You can also access the latest build of the documentation via the internet here.
rust-GSL is a wrapper for GSL, therefore inherits the GPL license.