quantrs2-symengine-sys

Crates.ioquantrs2-symengine-sys
lib.rsquantrs2-symengine-sys
version0.1.0-beta.1
created_at2025-06-17 11:50:32.321175+00
updated_at2025-09-21 13:29:20.578617+00
descriptionLow level bindings to the symengine library (fixed for macOS)
homepage
repositoryhttps://github.com/cool-japan/symengine-sys
max_upload_size
id1715587
size30,140
KitaSan (cool-japan)

documentation

README

symengine-sys

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.

Requirements

You need to have symengine installed on your system.

macOS

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"

Usage

Add this to your Cargo.toml:

[dependencies]
symengine-sys = { git = "https://github.com/cool-japan/symengine-sys.git" }

License

MIT

Commit count: 1

cargo fmt