If I run any program with the solana-program dependency set at or above 1.10 I get the following error:
error: target is not supported, for more information see: https://docs.rs/getrandom/#unsupported-targets --> /Users/James/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.16/src/lib.rs:267:9 |267 | / compile_error!("\268 | | target is not supported, for more information see: \269 | | https://docs.rs/getrandom/#unsupported-targets\270 | | "); | |___________^error[E0433]: failed to resolve: use of undeclared crate or module `imp` --> /Users/James/.cargo/registry/src/github.com-1ecc6299db9ec823/getrandom-0.1.16/src/lib.rs:291:5 |291 | imp::getrandom_inner(dest) | ^^^ use of undeclared crate or module `imp`
Even when solana-program
is the only dependency I have and I just do a simple "Hello, world!" program I still get the error, so I'm certain it's not a dependency I'm explicitly pulling in. If I set the version to 1.9.5 or 1.8.something I don't have an issue. Would love to know if anyone else has seen this happen. It's happened to me on multiple Rust versions, so I'm assuming it's not that but at this point idk.
Rust version: 1.62.0
Solana CLI version: 1.8.15
Rustup version: 1.25.1