Cargo.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. [workspace]
  2. members = [
  3. "serde_wormhole",
  4. "supported-chains",
  5. "vaas-serde",
  6. ]
  7. resolver = "2"
  8. [workspace.package]
  9. version = "0.1.0"
  10. edition = "2021"
  11. authors = ["Wormhole Contributors"]
  12. license = "Apache-2.0"
  13. homepage = "https://github.com/wormhole-foundation/wormhole"
  14. repository = "https://github.com/wormhole-foundation/wormhole"
  15. [workspace.metadata.docs.rs]
  16. all-features = true
  17. rustdoc-args = ["--cfg", "docsrs"]
  18. [workspace.dependencies.wormhole-supported-chains]
  19. version = "0.1.0"
  20. path = "supported-chains"
  21. [workspace.dependencies.serde_wormhole]
  22. version = "0.1.0"
  23. path = "serde_wormhole"
  24. [workspace.dependencies]
  25. anyhow = "1"
  26. thiserror = "1"
  27. bstr = { version = "1", features = ["serde"] }
  28. schemars = "0.8.8"
  29. serde = { version = "1", default-features = false }
  30. serde_bytes = "0.11.5"
  31. serde_json = "1"
  32. serde_repr = "0.1.7"
  33. sha3 = "0.10.4"
  34. base64 = "0.13"
  35. itoa = "1.0.1"
  36. [workspace.lints.clippy]
  37. # === Code Quality: Prevent incomplete/placeholder code ===
  38. todo = "deny"
  39. # === True Bugs: Compiler can prove these are wrong ===
  40. eq_op = "warn" # x == x, x != x, etc.
  41. modulo_one = "warn" # x % 1 (always returns 0)
  42. out_of_bounds_indexing = "warn" # Compiler-checked out of bounds access
  43. # === Security Audit Support ===
  44. undocumented_unsafe_blocks = "warn" # Document why unsafe is needed
  45. # === Potential Runtime Errors ===
  46. unchecked_duration_subtraction = "warn" # Can panic on underflow
  47. panicking_overflow_checks = "warn" # Overflow checks that panic in release
  48. if_let_mutex = "warn" # Can cause deadlocks
  49. # === Performance: Catch accidental inefficiencies ===
  50. or_fun_call = "warn" # Use .unwrap_or_else instead of .unwrap_or
  51. set_contains_or_insert = "warn" # Use .entry() API instead
  52. stable_sort_primitive = "warn" # Unstable sort is faster for primitives
  53. # === Logic Bugs ===
  54. suspicious_operation_groupings = "warn" # Likely copy-paste errors
  55. # === Data Structure Misuse ===
  56. iter_over_hash_type = "warn" # Non-deterministic iteration order
  57. non_send_fields_in_send_ty = "warn" # Breaks thread safety
  58. # === SDK-specific: Help developers avoid common mistakes ===
  59. wildcard_dependencies = "warn" # Prevent supply chain issues in published crates