Cargo.toml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [package]
  2. name = "wh"
  3. version = "0.1.0"
  4. edition = "2024"
  5. publish = false
  6. [dependencies]
  7. # default-features = false because the default "simd" feature requires nightly (portable_simd).
  8. # Remaining features mirror the crate defaults: sqlite session store, tokio transport/runtime, ureq client.
  9. whatsapp-rust = { version = "0.7", default-features = false, features = ["sqlite-storage", "tokio-transport", "tokio-runtime", "ureq-client", "tokio-native", "signal"] }
  10. tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }
  11. ratatui = "0.30"
  12. reqwest = { version = "0.13", default-features = false, features = ["json", "rustls"] }
  13. # rusqlite 0.39 -> libsqlite3-sys 0.37, same as diesel 2.3 pulled by whatsapp-rust-sqlite-storage (links = "sqlite3").
  14. rusqlite = { version = "0.39", features = ["bundled"] }
  15. serde = { version = "1", features = ["derive"] }
  16. serde_json = "1"
  17. toml = "1.1.8"
  18. anyhow = "1"
  19. qrcode = { version = "0.14", default-features = false }
  20. dirs = "7"
  21. base64 = "0.23"
  22. chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
  23. # Minimal synchronous HTTP server for the optional web control panel (web_port).
  24. tiny_http = "0.12"
  25. [profile.release]
  26. # Remove symbols and debug info from the binary.
  27. strip = true
  28. # Cross-crate link-time optimization: drops unused code and shrinks the binary.
  29. lto = true
  30. # Single codegen unit: better optimization and smaller size, slower release builds.
  31. codegen-units = 1
  32. [lints.rust]
  33. # MSVC link.exe prints an informational "Creazione della libreria ... wh.lib/wh.exp" line because the binary exports symbols; it is not actionable.
  34. linker_messages = "allow"