Cargo.toml 1.8 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. # rustls-no-provider + ring: avoids aws-lc-sys, a large C build that dominates cross-compile time.
  13. reqwest = { version = "0.13", default-features = false, features = ["json", "rustls-no-provider"] }
  14. # Crypto provider installed at startup for reqwest (ring is already built for whatsapp-rust).
  15. rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
  16. # rusqlite 0.39 -> libsqlite3-sys 0.37, same as diesel 2.3 pulled by whatsapp-rust-sqlite-storage (links = "sqlite3").
  17. rusqlite = { version = "0.39", features = ["bundled"] }
  18. serde = { version = "1", features = ["derive"] }
  19. serde_json = "1"
  20. toml = "1.1.8"
  21. anyhow = "1"
  22. # svg: QR code of the web panel pairing screen (no extra dependencies).
  23. qrcode = { version = "0.14", default-features = false, features = ["svg"] }
  24. dirs = "7"
  25. base64 = "0.23"
  26. chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
  27. # Minimal synchronous HTTP server for the optional web control panel (web_port).
  28. tiny_http = "0.12"
  29. [profile.release]
  30. # Remove symbols and debug info from the binary.
  31. strip = true
  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"