solana-labs / example-helloworld

Hello world on Solana
MIT License
893 stars 864 forks source link

Add a rust-toolchain.toml #618

Open kevinheavey opened 1 year ago

kevinheavey commented 1 year ago

This example always breaks for people because they try to run the tests with an unsupported Rust version. If there was a rust-toolchain.toml file in src/program-rust this wouldn't be a problem

kevinheavey commented 1 year ago

Oh and I suppose the test:program-rust command in the package.json should also specify the Rust version (not sure if it can be made to read the rust-toolchain.toml)