From 0f7d9827d808567e1b0a7228bfaa80786599e7ed Mon Sep 17 00:00:00 2001 From: Alex Charlton Date: Sun, 26 Mar 2023 22:59:28 -0700 Subject: [PATCH] Add a hint to failed builds --- nih_plug_xtask/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nih_plug_xtask/src/lib.rs b/nih_plug_xtask/src/lib.rs index 78376f05..7a9a6d82 100644 --- a/nih_plug_xtask/src/lib.rs +++ b/nih_plug_xtask/src/lib.rs @@ -298,7 +298,7 @@ pub fn bundle(package: &str, args: &[String], universal: bool) -> Result<()> { let bin_path = target_base.join(binary_basename(package, compilation_target)); let lib_path = target_base.join(library_basename(package, compilation_target)); if !bin_path.exists() && !lib_path.exists() { - anyhow::bail!("Could not find built library at '{}'", lib_path.display()); + anyhow::bail!("Could not find built library at '{}'.\nHint: Maybe you forgot to add:\n\n[lib]\ncrate-type = [\"cdylib\"]\n\nto your Cargo.toml?\n", lib_path.display()); } eprintln!();