Skip to content

selpoG/qboot-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published