| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- [workspace]
- members = [
- "serde_wormhole",
- "supported-chains",
- "vaas-serde",
- ]
- resolver = "2"
- [workspace.package]
- version = "0.1.0"
- edition = "2021"
- authors = ["Wormhole Contributors"]
- license = "Apache-2.0"
- homepage = "https://github.com/wormhole-foundation/wormhole"
- repository = "https://github.com/wormhole-foundation/wormhole"
- [workspace.metadata.docs.rs]
- all-features = true
- rustdoc-args = ["--cfg", "docsrs"]
- [workspace.dependencies.wormhole-supported-chains]
- version = "0.1.0"
- path = "supported-chains"
- [workspace.dependencies.serde_wormhole]
- version = "0.1.0"
- path = "serde_wormhole"
- [workspace.dependencies]
- anyhow = "1"
- thiserror = "1"
- bstr = { version = "1", features = ["serde"] }
- schemars = "0.8.8"
- serde = { version = "1", default-features = false }
- serde_bytes = "0.11.5"
- serde_json = "1"
- serde_repr = "0.1.7"
- sha3 = "0.10.4"
- base64 = "0.13"
- itoa = "1.0.1"
- [workspace.lints.clippy]
- # === Code Quality: Prevent incomplete/placeholder code ===
- todo = "deny"
- # === True Bugs: Compiler can prove these are wrong ===
- eq_op = "warn" # x == x, x != x, etc.
- modulo_one = "warn" # x % 1 (always returns 0)
- out_of_bounds_indexing = "warn" # Compiler-checked out of bounds access
- # === Security Audit Support ===
- undocumented_unsafe_blocks = "warn" # Document why unsafe is needed
- # === Potential Runtime Errors ===
- unchecked_duration_subtraction = "warn" # Can panic on underflow
- panicking_overflow_checks = "warn" # Overflow checks that panic in release
- if_let_mutex = "warn" # Can cause deadlocks
- # === Performance: Catch accidental inefficiencies ===
- or_fun_call = "warn" # Use .unwrap_or_else instead of .unwrap_or
- set_contains_or_insert = "warn" # Use .entry() API instead
- stable_sort_primitive = "warn" # Unstable sort is faster for primitives
- # === Logic Bugs ===
- suspicious_operation_groupings = "warn" # Likely copy-paste errors
- # === Data Structure Misuse ===
- iter_over_hash_type = "warn" # Non-deterministic iteration order
- non_send_fields_in_send_ty = "warn" # Breaks thread safety
- # === SDK-specific: Help developers avoid common mistakes ===
- wildcard_dependencies = "warn" # Prevent supply chain issues in published crates
|