| Crates.io | quantrs2-symengine-sys |
| lib.rs | quantrs2-symengine-sys |
| version | 0.1.0-beta.1 |
| created_at | 2025-06-17 11:50:32.321175+00 |
| updated_at | 2025-09-21 13:29:20.578617+00 |
| description | Low level bindings to the symengine library (fixed for macOS) |
| homepage | |
| repository | https://github.com/cool-japan/symengine-sys |
| max_upload_size | |
| id | 1715587 |
| size | 30,140 |
Rust FFI bindings to the symengine C API.
This is a fork of the original symengine-sys with fixes for macOS and modern bindgen versions.
You need to have symengine installed on your system.
brew install symengine gmp mpfr
When building, set the following environment variables:
export SYMENGINE_DIR=$(brew --prefix symengine)
export GMP_DIR=$(brew --prefix gmp)
export MPFR_DIR=$(brew --prefix mpfr)
export BINDGEN_EXTRA_CLANG_ARGS="-I$(brew --prefix symengine)/include -I$(brew --prefix gmp)/include -I$(brew --prefix mpfr)/include"
Add this to your Cargo.toml:
[dependencies]
symengine-sys = { git = "https://github.com/cool-japan/symengine-sys.git" }
MIT