|
@@ -138,10 +138,9 @@ fn build(
|
|
no_docs: bool,
|
|
no_docs: bool,
|
|
cargo_args: &[String],
|
|
cargo_args: &[String],
|
|
) -> Result<Idl> {
|
|
) -> Result<Idl> {
|
|
- // `nightly` toolchain is currently required for building the IDL.
|
|
|
|
let toolchain = std::env::var("RUSTUP_TOOLCHAIN")
|
|
let toolchain = std::env::var("RUSTUP_TOOLCHAIN")
|
|
.map(|toolchain| format!("+{toolchain}"))
|
|
.map(|toolchain| format!("+{toolchain}"))
|
|
- .unwrap_or_else(|_| "+nightly".to_string());
|
|
|
|
|
|
+ .unwrap_or_else(|_| "+stable".to_string());
|
|
|
|
|
|
install_toolchain_if_needed(&toolchain)?;
|
|
install_toolchain_if_needed(&toolchain)?;
|
|
let output = Command::new("cargo")
|
|
let output = Command::new("cargo")
|
|
@@ -167,7 +166,7 @@ fn build(
|
|
if skip_lint { "TRUE" } else { "FALSE" },
|
|
if skip_lint { "TRUE" } else { "FALSE" },
|
|
)
|
|
)
|
|
.env("ANCHOR_IDL_BUILD_PROGRAM_PATH", program_path)
|
|
.env("ANCHOR_IDL_BUILD_PROGRAM_PATH", program_path)
|
|
- .env("RUSTFLAGS", "--cfg procmacro2_semver_exempt -A warnings")
|
|
|
|
|
|
+ .env("RUSTFLAGS", "-A warnings")
|
|
.current_dir(program_path)
|
|
.current_dir(program_path)
|
|
.stderr(Stdio::inherit())
|
|
.stderr(Stdio::inherit())
|
|
.output()?;
|
|
.output()?;
|