啊啊啊啊啊啊

This commit is contained in:
shenjack-mac 2023-08-02 19:41:28 +08:00
parent 9418dfac1b
commit ba6050801f
5 changed files with 44 additions and 0 deletions

7
Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "nbt-rust"
version = "0.1.0"

8
Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "nbt-rust"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

5
src/main.rs Normal file
View File

@ -0,0 +1,5 @@
mod data;
fn main() {
println!("Hello, world!");
}

1
src/read.rs Normal file
View File

@ -0,0 +1 @@
use crate::data::NbtValue;

23
src/rustfmt.toml Normal file
View File

@ -0,0 +1,23 @@
# cargo fmt config
# 最大行长
max_width = 150
# 链式调用的最大长度
chain_width = 100
# 数组的最大长度
array_width = 100
# 函数参数的最大长度
attr_fn_like_width = 100
# 函数调用参数的最大长度
fn_call_width = 80
# 简单函数格式化为单行
fn_single_line = true
# 自动对齐最大长度
enum_discrim_align_threshold = 5
# 字段初始化使用简写
use_field_init_shorthand = true
# 是否使用彩色输出
color = "Always"
edition = "2021"