quantrs2-symengine

Crates.ioquantrs2-symengine
lib.rsquantrs2-symengine
version0.1.0-beta.1
created_at2025-06-17 11:50:50.065942+00
updated_at2025-09-21 13:29:44.202428+00
descriptionSymbolic Computation in Rust via SymEngine
homepage
repositoryhttps://github.com/cool-japan/symengine-rs
max_upload_size
id1715588
size56,683
KitaSan (cool-japan)

documentation

README

symengine-rs

Rust bindings to SymEngine.

This is a fork of the original symengine-rs with fixes for macOS and updated symengine-sys bindings.

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 = { git = "https://github.com/cool-japan/symengine-rs.git", branch = "fixed-macos" }

License

MIT

Commit count: 8

cargo fmt