coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

allow toolchain overriding in idl build command #2941

Closed skrrb closed 2 months ago

skrrb commented 2 months ago

in order to build the idl, nightly toolchain is currently hardcoded in the code https://github.com/coral-xyz/anchor/blob/9761ea60088a73a660c2f02d1151782174d0913e/idl/src/build.rs#L73

However, sometimes latest nightly may be incompatible with a given program. This pr allows to override the toolchain used by the idl build command via RUSTUP_TOOLCHAIN env, e.g.

RUSTUP_TOOLCHAIN=”nightly-2023-04-01" anchor idl build
vercel[bot] commented 2 months ago

@skrrb is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.