Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GuillaumeGomez/rust-GSL
A GSL (the GNU Scientific Library) binding for Rust
https://github.com/GuillaumeGomez/rust-GSL
bindings gsl gsl-library rust
Last synced: about 1 month ago
JSON representation
A GSL (the GNU Scientific Library) binding for Rust
- Host: GitHub
- URL: https://github.com/GuillaumeGomez/rust-GSL
- Owner: GuillaumeGomez
- Created: 2014-07-28T20:13:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T21:05:24.000Z (8 months ago)
- Last Synced: 2024-10-08T21:04:35.706Z (2 months ago)
- Topics: bindings, gsl, gsl-library, rust
- Language: Rust
- Homepage:
- Size: 2.07 MB
- Stars: 190
- Watchers: 10
- Forks: 46
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-rust - GuillaumeGomez/rust-GSL
- awesome-rust-cn - GuillaumeGomez/rust-GSL
- awesome-rust - GuillaumeGomez/rust-GSL - GSL bindings (Libraries / Computation)
- fucking-awesome-rust - GuillaumeGomez/rust-GSL - GSL bindings (Libraries / Computation)
- fucking-awesome-rust - GuillaumeGomez/rust-GSL - GSL bindings (Libraries / Computation)
README
# rust-GSL
A __Rust__ binding for the [GSL library][GSL library] (the GNU Scientific Library).
The minimum support Rust version is __1.54__.
## Installation
This binding requires the [GSL library] library (version >= 2) to be installed:
### Linux
```bash
# on debian based systems:
sudo apt-get install libgsl0-dev
```### macOS
```bash
brew install gsl
```#### Apple silicon
Homebrew installs libraries under `/opt/homebrew/include` on Apple silicon
to [maintain backward compatibility with Rosetta 2](https://docs.brew.sh/FAQ#why-is-the-default-installation-prefix-opthomebrew-on-apple-silicon).After `gsl` has been installed in the usual way, use
the [environment variable](https://doc.rust-lang.org/cargo/reference/environment-variables.html):```bash
RUSTFLAGS='-L /opt/homebrew/include'
```before `cargo run`, `cargo build`, etc., to tell the compiler where `gsl` is located.
### Windows
Instructions are available there: .
## Usage
This crate works with Cargo and is on [crates.io]. Just add the following to your `Cargo.toml` file:
```toml
[dependencies]
GSL = "7.0"
```You can see examples in the `examples` folder.
## Building
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:```bash
cargo build --features v2_1
```If a project depends on this version, don't forget to add in your `Cargo.toml`:
```toml
[dependencies.GSL]
version = "2"
features = ["v2_1"]
```## Documentation
You can access the __rgsl__ documentation locally, just build it:
```shell
> cargo doc --open
```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/