Cargo.toml 878 B

123456789101112131415161718192021222324252627282930313233343536
  1. [package]
  2. name = "swb-sys-monitor"
  3. version = "0.1.0"
  4. authors = ["PJ568 <[email protected]>"]
  5. edition = "2024"
  6. description = "为嵌入式设备高并发监控场景设计的极简网页资源占用显示系统"
  7. license = "MIT"
  8. [dependencies]
  9. tokio = { version = "1.0", features = ["full"] }
  10. hyper = { version = "0.14", features = ["full"] }
  11. clap = { version = "4.5", features = ["derive"] }
  12. log = "0.4"
  13. env_logger = "0.11"
  14. anyhow = "1.0"
  15. [dev-dependencies]
  16. criterion = { version = "0.5", features = ["html_reports"] }
  17. tokio-test = "0.4"
  18. [[bench]]
  19. name = "main"
  20. harness = false
  21. # 在调试模式下只启用少量的优化措施
  22. [profile.dev]
  23. opt-level = 1
  24. # 对依赖的库启用更高级别的优化
  25. [profile.dev.package."*"]
  26. opt-level = 3
  27. # 链接时间优化:以极慢的编译时间为代价,挤出更多的性能
  28. [profile.release]
  29. lto = "thin"
  30. codegen-units = 1