4 releases

0.2.3 Feb 16, 2021
0.2.2 Feb 4, 2021
0.2.1 Feb 4, 2021
0.2.0 Dec 23, 2019
0.1.0 Oct 26, 2019

#476 in Games

MIT license

190KB
5K SLoC

C 4K SLoC // 0.1% comments Rust 523 SLoC // 0.1% comments Python 332 SLoC // 0.2% comments PowerShell 70 SLoC // 0.1% comments Batch 38 SLoC Shell 35 SLoC // 0.1% comments C# 17 SLoC // 0.2% comments SWIG 11 SLoC Bazel 7 SLoC // 0.2% comments Forge Config 2 SLoC

oppai-rs

Rust bindings to oppai-ng with a safe wrapper.

Passes the oppai-ng test (cargo test).


lib.rs:

Provides a safe wrapper for oppai-ng.

Example

extern crate oppai_rs;
use oppai_rs::*;
use std::path::Path;
let map = {
  Oppai::new(Path::new("path/to/map"))
            .mods(Mods::HD | Mods::DT)?
            .combo(Combo::PERFECT)?
            .accuracy(100.0)
}.expect("OK!");
let pp = map.pp();
let stars = map.stars();

Dependencies

~79–430KB
~10K SLoC