rust-GSL [](https://travis-ci.org/GuillaumeGomez/rust-GSL) [](https://gitter.im/GuillaumeGomez/rust-GSL?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
========
A __Rust__ binding for the [GSL library] (the GNU Scientific Library).
## Installation
This binding requires the [GSL library] library to be installed:
```Shell
# on debian based systems:
sudo apt-get install libgsl0-dev
```
This crate works with Cargo and is on [crates.io]. Just add the
following to your `Cargo.toml` file:
```toml
[dependencies]
GSL = "0.4"
```
Add the following line to your source code:
```rust
extern crate rgsl;
```
## Building
Just run `cargo build`. However, if you have issues with GSL version 2.x, try building it with:
```bash
cargo build --features v2
```
If a project depends on this version, don't forget to add in your `Cargo.toml`:
```toml
[features]
v2 = ["GSL/v2"]
```
## Documentation
You can access the __rgsl__ documentation locally, just build it:
```Shell
> cargo doc --open
```
Then open this file with an internet browser: `file:///{rgsl_location}/target/doc/rgsl/index.html`
You can also access the latest build of the documentation via the internet [here](https://docs.rs/crate/GSL/).
## License
__rust-GSL__ is a wrapper for __GSL__, therefore inherits the [GPL license](http://www.gnu.org/copyleft/gpl.html).
[crates.io]: https://crates.io/crates/GSL
[GSL library]: http://www.gnu.org/software/gsl/