selpoG / qboot-rs

rewrite qboot in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 をリンクする場合にはそれらのライセンスに従う必要があります.

About

rewrite qboot in rust

License:MIT License


Languages

Language:Rust 99.8%Language:C 0.2%