[package] name = "tklog" version = "0.2.9" edition = "2021" authors = ["donnie4w "] description = "Lightweight and efficient rust structured log library with support for log level, file shred, compressed archive" homepage = "https://github.com/donnie4w/tklog" documentation = "https://docs.rs/tklog" readme = "README.md" keywords = ["log", "logger","logging"] categories = ["development-tools::debugging"] license = "Apache-2.0" repository = "https://github.com/donnie4w/tklog" include = [ "src/**/*.rs", "Cargo.toml", "README.md", "LICENSE", ] [dependencies] tokio = { version = "1.42.0", features = ["full"] } chrono = "0.4.39" once_cell = "1.20.2" flate2 = "1.0.35" crossbeam-channel = "0.5.13" regex = "1.11.1" log = "0.4.22" #criterion = "0.5.1" #[dev-dependencies] #criterion = "0.5.1" #[[bench]] #name = "log_bench" #harness = false #[profile.release] #debug = true # 保留调试符号 #lto = false # 禁用 Link Time Optimization(启用LTO可能会丢失更多调试信息) #codegen-units = 1 # 降低 codegen 单元数量,保持更好的优化 #opt-level = 0 #[[bin]] #name = "tklog" #path = "benches/log_bench.rs" #[profile.bench] #opt-level = 3 #debug = true