自己调自己的包可还行
This commit is contained in:
parent
2604213e71
commit
ca3e091826
@ -28,3 +28,7 @@ windows-sys = { version = "*", features = [
|
|||||||
[features]
|
[features]
|
||||||
default = ["simd"]
|
default = ["simd"]
|
||||||
simd = []
|
simd = []
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "xp2"
|
||||||
|
path = "./src/xp_eval.rs"
|
||||||
|
22
miner/src/xp_eval.rs
Normal file
22
miner/src/xp_eval.rs
Normal 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}")
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user