Crates.io | mathcat_c |
lib.rs | mathcat_c |
version | 0.7.0 |
created_at | 2022-06-15 22:06:03.566116+00 |
updated_at | 2025-09-04 06:12:18.076856+00 |
description | C/C++ interface for MathCAT (for MathCAT info, see crates.io or nsoiffer.github.io/MathCAT) |
homepage | |
repository | |
max_upload_size | |
id | 606767 |
size | 85,345 |
This project adds a C/C++ interface to MathCAT. Visit the MathCAT project page for more info or if you want to play around with MathCAT's capabilities, try out the demo.
Warning: the interface is subject to change. This is my first attempt to add a C interface to Rust code. There are two issues I'm not happy with the current interface:
To use this project:
cargo build --release
)c-example
with mathcat.h
and the MathCAT Rules
dir in it.test.cpp
in that directory or create your own using that as an example. See instructions for compiling at the start of that file.Alternatively, to avoid having to have a Rust build environment: download the a prebuilt dll from releases. The Release-version-target.zip file includes the dll, c-header file, a test/example program, and the Rules directory needed by MathCAT. It is probably best to use the latest release at that link. If you need a target/dll not listed there, file an issue.