From a3e9954ee60a7929f3f572cc71d3bcd5fdca50aa Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Mon, 19 May 2025 11:41:33 -0400 Subject: [PATCH] Document fully qualified worlds in generate! This nudge would have saved me some time in trying to figure out how to share .wit interfaces between components in a monorepo. Signed-off-by: Xe Iaso --- crates/guest-rust/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/guest-rust/src/lib.rs b/crates/guest-rust/src/lib.rs index 99d6cbb9f..6ca8c89e0 100644 --- a/crates/guest-rust/src/lib.rs +++ b/crates/guest-rust/src/lib.rs @@ -643,6 +643,14 @@ /// // The name of the world that bindings are being generated for. If this /// // is not specified then it's required that the package selected /// // below has a single `world` in it. +/// // +/// // Optionally, you can specify the fully qualified path to the world +/// // to read from the `wit/deps` folder: +/// // +/// // "example:test/my-world" +/// // +/// // This would read from your `my-world.wit` file in +/// // `wit/deps/example:test/my-world`. /// world: "my-world", /// /// // Path to parse WIT and its dependencies from. Defaults to the `wit`