Rewrite qboot in Rust.
- bindgen
- gmp (or mpir on Windows)
- mpfr (we recommend this repository on Windows)
<ROOT> is the root directory of this repository.
- Copy
gmp.handmpfr.hto<ROOT>/src/mp/c/. - Copy
libgmp.aandlibmpfr.ato.. - Install
bindgen:cargo install bindgen. - Generate rust bindings by:
bindgen src/mp/c/mp_in.h > src/mp/mp.rs
RUSTFLAGS="-lgmp -lmpfr" cargo run
On Windows, use mpir instead of gmp, and xxx.lib instead of libxxx.a.
If you use Powershell, you can set environment variables by $env:RUSTFLAGS = "-lmpir -lmpfr".
The source code in this repository is under LICENSE,
but if you link gmp or mpfr, you need to follow their licenses.
このリポジトリに含まれるソースコードには LICENSE が適用されますが,
gmp や mpfr をリンクする場合にはそれらのライセンスに従う必要があります.