添加一些东西

This commit is contained in:
shenjack 2024-05-03 18:22:53 +08:00
parent 5e292d0058
commit a56d1ff7c3
Signed by: shenjack
GPG Key ID: 7B1134A979775551
6 changed files with 7 additions and 6 deletions

2
Cargo.lock generated
View File

@ -1831,7 +1831,7 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
[[package]]
name = "tswn"
version = "0.1.10"
version = "0.1.11"
dependencies = [
"base16384",
"chrono",

View File

@ -1,7 +1,7 @@
[package]
name = "tswn"
description = "tool shenjack work shop namerena"
version = "0.1.10"
version = "0.1.11"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -74,4 +74,4 @@
2024-04-28T13:00:35.036379Z INFO tswn::cacluate: | 1|Id: 886846691|522217.54/s 451.196E/d 10.01⬇️|0 |预计:0:0:21|
2024-04-28T13:00:45.065655Z INFO tswn::cacluate: | 1|Id: 939068391|520704.57/s 449.889E/d 10.03⬇️|0 |预计:0:0:11|
2024-04-28T13:00:55.104846Z INFO tswn::cacluate: | 1|Id: 991138791|518683.00/s 448.142E/d 10.04⬇️|0 |预计:0:0:1|
```
```

View File

@ -16,10 +16,9 @@ use tracing::{info, warn};
/// ? , 问号
/// U2000 - U202F , unicode特殊空格 等
/// 不可以空格开头
#[inline(always)]
pub fn gen_name(id: u64) -> String {
let id_bytes = id.to_be_bytes();
Base16384Utf8::encode(id_bytes.as_slice())
// 手动把 u64 转换成 8 个 u8
Base16384Utf8::encode(&id.to_be_bytes())
}
pub struct CacluateConfig {

View File

@ -1,5 +1,6 @@
pub mod runners {
use crate::name::Player;
pub struct PlayerGroup {
players: Vec<Player>,

1
rust-toolchain Normal file
View File

@ -0,0 +1 @@
nightly