1
0
Fork 0

Fix formatting for #68

This commit is contained in:
Robbert van der Helm 2023-03-27 13:24:43 +02:00
parent 0f7d9827d8
commit 9db31b34dc

View file

@ -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!();