fn main() { // Use to set RUSTC_CHANNEL so we can compute target dir from rustc_plugin let toolchain_toml = include_str!("rust-toolchain.toml"); let toolchain_table = toolchain_toml.parse::().unwrap(); let toolchain = toolchain_table["toolchain"].as_table().unwrap(); let channel = toolchain["channel"].as_str().unwrap(); println!("cargo:rustc-env=RUSTC_CHANNEL={channel}"); }