自己调自己的包可还行

This commit is contained in:
shenjack 2024-06-25 20:57:45 +08:00
parent 2604213e71
commit ca3e091826
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 26 additions and 0 deletions

View File

@ -28,3 +28,7 @@ windows-sys = { version = "*", features = [
[features]
default = ["simd"]
simd = []
[[bin]]
name = "xp2"
path = "./src/xp_eval.rs"

22
miner/src/xp_eval.rs Normal file
View File

@ -0,0 +1,22 @@
#![feature(portable_simd)]
#![feature(slice_swap_unchecked)]
#![allow(internal_features)]
#![feature(core_intrinsics)]
mod evaluate;
mod name;
use std::env;
use evaluate::NamerEvaluater;
fn main() {
// 获取 cli 参数
let arg = env::args().nth(1).expect("need a name to evaluate");
let mut name = name::Namer::new(&arg).expect("your name have some thing wrong");
name.update_skill();
let xu = evaluate::xuping::XuPing2_0_1015::evaluate(&name);
let xd = evaluate::xuping::XuPing2_0_1015_QD::evaluate(&name);
println!("{xu}\n{xd}")
}