Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.35 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.35 KB

qboot-rs

What's this?

Rewrite qboot in Rust.

Requirements

Setup

<ROOT> is the root directory of this repository.

  1. Copy gmp.h and mpfr.h to <ROOT>/src/mp/c/.
  2. Copy libgmp.a and libmpfr.a to ..
  3. Install bindgen: cargo install bindgen.
  4. Generate rust bindings by:
    1. bindgen src/mp/c/mp_in.h > src/mp/mp.rs
  5. 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".

About license

The source code in this repository is under LICENSE, but if you link gmp or mpfr, you need to follow their licenses.

このリポジトリに含まれるソースコードには LICENSE が適用されますが, gmpmpfr をリンクする場合にはそれらのライセンスに従う必要があります.