|
| 1 | +[workspace] |
| 2 | +resolver = "2" |
| 3 | + |
| 4 | +members = [ |
| 5 | + "apps/argus", |
| 6 | + "apps/fortuna", |
| 7 | + "apps/pyth-lazer-agent", |
| 8 | + "apps/quorum", |
| 9 | + "lazer/publisher_sdk/rust", |
| 10 | + "lazer/sdk/rust/client", |
| 11 | + "lazer/sdk/rust/protocol", |
| 12 | + "pythnet/pythnet_sdk", |
| 13 | + "target_chains/starknet/tools/test_vaas", |
| 14 | +] |
| 15 | + |
| 16 | +exclude = [ |
| 17 | + # Depends on pinned Solana version |
| 18 | + "apps/hermes/server", |
| 19 | + # Solana contract |
| 20 | + "governance/remote_executor", |
| 21 | + "governance/remote_executor/cli", |
| 22 | + "governance/remote_executor/programs/remote-executor", |
| 23 | + # Solana contract |
| 24 | + "lazer/contracts/solana", |
| 25 | + "lazer/contracts/solana/programs/pyth-lazer-solana-contract", |
| 26 | + # Solana contract |
| 27 | + "pythnet/message_buffer", |
| 28 | + "pythnet/message_buffer/programs/message_buffer", |
| 29 | + "pythnet/message_buffer/programs/mock-cpi-caller", |
| 30 | + # Solana contract |
| 31 | + "pythnet/stake_caps_parameters", |
| 32 | + "pythnet/stake_caps_parameters/cli", |
| 33 | + "pythnet/stake_caps_parameters/programs/stake_caps_parameters", |
| 34 | + # CosmWasm contract |
| 35 | + "target_chains/cosmwasm", |
| 36 | + "target_chains/cosmwasm/contracts/pyth", |
| 37 | + "target_chains/cosmwasm/examples/cw-contract", |
| 38 | + "target_chains/cosmwasm/sdk/rust", |
| 39 | + # Stylus contract |
| 40 | + "target_chains/ethereum/sdk/stylus", |
| 41 | + "target_chains/ethereum/sdk/stylus/benches", |
| 42 | + "target_chains/ethereum/sdk/stylus/contracts", |
| 43 | + "target_chains/ethereum/sdk/stylus/examples/extend-pyth-example", |
| 44 | + "target_chains/ethereum/sdk/stylus/examples/function-example", |
| 45 | + "target_chains/ethereum/sdk/stylus/examples/pyth-example", |
| 46 | + # Fuel contract |
| 47 | + "target_chains/fuel/contracts", |
| 48 | + # Near contract |
| 49 | + "target_chains/near/example", |
| 50 | + "target_chains/near/receiver", |
| 51 | + "target_chains/near/wormhole-stub", |
| 52 | + # Solana contracts |
| 53 | + "target_chains/solana", |
| 54 | + "target_chains/solana/cli", |
| 55 | + "target_chains/solana/common_test_utils", |
| 56 | + "target_chains/solana/program_simulator", |
| 57 | + "target_chains/solana/programs/pyth-price-store", |
| 58 | + "target_chains/solana/programs/pyth-price-store/target/package/pyth-price-publisher-0.1.0", |
| 59 | + "target_chains/solana/programs/pyth-push-oracle", |
| 60 | + "target_chains/solana/programs/pyth-solana-receiver", |
| 61 | + "target_chains/solana/pyth_solana_receiver_sdk", |
| 62 | + # Stylus contract |
| 63 | + "target_chains/stylus", |
| 64 | + "target_chains/stylus/contracts/pyth-receiver", |
| 65 | + "target_chains/stylus/contracts/wormhole", |
| 66 | +] |
| 67 | + |
| 68 | +[workspace.lints.rust] |
| 69 | +unsafe_code = "deny" |
| 70 | + |
| 71 | +[workspace.lints.clippy] |
| 72 | +# See https://github.com/pyth-network/pyth-crosschain/blob/main/doc/rust-code-guidelines.md |
| 73 | + |
| 74 | +wildcard_dependencies = "deny" |
| 75 | + |
| 76 | +collapsible_if = "allow" |
| 77 | +collapsible_else_if = "allow" |
| 78 | + |
| 79 | +allow_attributes_without_reason = "warn" |
| 80 | + |
| 81 | +# Panics |
| 82 | +expect_used = "warn" |
| 83 | +fallible_impl_from = "warn" |
| 84 | +indexing_slicing = "warn" |
| 85 | +panic = "warn" |
| 86 | +panic_in_result_fn = "warn" |
| 87 | +string_slice = "warn" |
| 88 | +todo = "warn" |
| 89 | +unchecked_duration_subtraction = "warn" |
| 90 | +unreachable = "warn" |
| 91 | +unwrap_in_result = "warn" |
| 92 | +unwrap_used = "warn" |
| 93 | + |
| 94 | +# Correctness |
| 95 | +cast_lossless = "warn" |
| 96 | +cast_possible_truncation = "warn" |
| 97 | +cast_possible_wrap = "warn" |
| 98 | +cast_sign_loss = "warn" |
| 99 | +collection_is_never_read = "warn" |
| 100 | +match_wild_err_arm = "warn" |
| 101 | +path_buf_push_overwrite = "warn" |
| 102 | +read_zero_byte_vec = "warn" |
| 103 | +same_name_method = "warn" |
| 104 | +suspicious_operation_groupings = "warn" |
| 105 | +suspicious_xor_used_as_pow = "warn" |
| 106 | +unused_self = "warn" |
| 107 | +used_underscore_binding = "warn" |
| 108 | +while_float = "warn" |
0 commit comments