From 9db31b34dcb02ba87d4861572656ff22dc6e29c7 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 27 Mar 2023 13:24:43 +0200 Subject: [PATCH] Fix formatting for #68 --- nih_plug_xtask/src/lib.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nih_plug_xtask/src/lib.rs b/nih_plug_xtask/src/lib.rs index 7a9a6d82..65c79344 100644 --- a/nih_plug_xtask/src/lib.rs +++ b/nih_plug_xtask/src/lib.rs @@ -298,7 +298,17 @@ 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 '{}'.\nHint: Maybe you forgot to add:\n\n[lib]\ncrate-type = [\"cdylib\"]\n\nto your Cargo.toml?\n", lib_path.display()); + anyhow::bail!( + r#"Could not find a built library at '{}'. + +Hint: Maybe you forgot to add: + +[lib] +crate-type = ["cdylib"] + +to your Cargo.toml file?"#, + lib_path.display() + ); } eprintln!();