wormhole-foundation/example-native-token-transfers

Warning: Cargo.toml: unused manifest key: lints

Opened this issue · 1 comments

e.g.

warning: /Users/john/coding/example-native-token-transfers/solana/modules/ntt-messages/Cargo.toml: unused manifest key: lints
warning: /Users/john/coding/example-native-token-transfers/solana/Cargo.toml: unused manifest key: workspace.lints
warning: /Users/john/coding/example-native-token-transfers/solana/programs/wormhole-governance/Cargo.toml: unused manifest key: lints
warning: /Users/john/coding/example-native-token-transfers/solana/programs/example-native-token-transfers/Cargo.toml: unused manifest key: lints
warning: /Users/john/coding/example-native-token-transfers/solana/programs/ntt-quoter/Cargo.toml: unused manifest key: lints

This appeared after #311. It's harmless but noisy and a bit annoying.
Clippy will not run properly in the workspace packages if the [lints] line is removed.

Is there a more correct way to do this?

This appears to be an issue in cargo-sbf in particular. Perhaps an old Solana or rustc version?

cargo build or cargo clippy do not produce the warning, but make _anchor-build does.