From 843b5c0f22991206ffee1b33108be0762a4f024e Mon Sep 17 00:00:00 2001 From: Nathan Bedell Date: Sun, 13 Jul 2025 10:54:47 -0400 Subject: [PATCH] Add a more specific suggestion when failing to select a default world. --- src/bindings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bindings.rs b/src/bindings.rs index dab7c287..15b91626 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -362,7 +362,8 @@ impl<'a> BindingsGenerator<'a> { ) } None => format!( - "failed to select the default world to use for local target `{path}`", + "failed to select the default world to use for local target `{path}`. \ + Please ensure that a world is specified in Cargo.toml under [package.metadata.component.target].", path = path.display() ), })?;