Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
🧮 Mathic
A programming language with builtin symbolic algebra capabilities, powered by LLVM/MLIR
Installation
🔧 Dependencies
- Rust 1.94.0 or higher
- LLVM/MLIR 21.x.x
LLVM/MLIR Installation
There are many ways of installing LLVM. Choose the one that fits your needs.
MacOS and Linux (Homebrew)
After installation, set the environment variables:
Building from Source
⚠️ Note: Building LLVM from source requires at least 6GB of RAM and ~20GB of disk space. Ensure these requirements are met, as the build process is likely to fail otherwise.
- Clone LLVM Project
&&
- Configure Build
if you have mold installed, you can add this flag which will make linking much faster:
-DLLVM_USE_LINKER=mold
For more info about building from source, check: https://llvm.org/docs/GettingStarted.html
- Build and Install
You'll need to export the required environment variables as well:
If you used to command above, the prefix will be
/opt/llvm-21
Installing Mathic
You can install mathic using cargo
cargo install mathic
Note: Ensure the required environment variables are set, otherwise the build will fail.
Usage
You can run a program using this command:
📖 Current Status
⚠️ This project is in early development. Features are being added incrementally. Due to this, you are welcome to test it and create issues.
For more details, see the docs.
Built with ❤️ and 🦀 Rust