Crates.io | libquantum |
lib.rs | libquantum |
version | 0.1.2 |
source | src |
created_at | 2017-04-12 22:10:54.404911 |
updated_at | 2017-04-17 03:33:05.681132 |
description | Rust bindings for the libquantum C library. |
homepage | |
repository | https://github.com/mknyszek/rust-libquantum |
max_upload_size | |
id | 10440 |
size | 51,762 |
Bindings for libquantum in Rust
rust-libquantum is a library that provides safe bindings to the libquantum C library, a quantum simulator.
Like libquantum, rust-libquantum is licensed under GPL-3.0 as it links dynamically against libquantum.
This library targets the newest stable version of Rust.
Note: the below instructions should work, but have only been tested for Linux since I don't actually have access to development machines for any other systems supported by both Rust and libquantum.
Install libquantum through your favorite package management tool, or through libquantum's website.
For example, on Ubuntu one can install libquantum through the command
sudo apt-get install libquantum-dev
Presumably libquantum works on Mac OS X, and you can install it via homebrew
brew install libquantum
If you're using Cargo to manage your project, you can install through crates.io.
[dependencies]
libquantum = "0.1"
You can also pull from GitHub to use the latest version.
[dependencies.libquantum]
git = "https://github.com/mknyszek/rust-libquantum"
Finally, you can also just clone this repository and compile with cargo build
If for some reason the build script cannot find quantum.h
on your system, you
can set the LIBQUANTUM_INCLUDE
environment variable to be the path to
quantum.h
.
Just submit a pull request, any help in getting these bindings general and complete is welcome. Some rules, though: