pw_rust: Add dummy rust_bin to static analysis toolchain

This commit adds a dummy rust_bin tool (that just stamps an output file)
to the static analysis toolchain. Without this, projects that use a host
static analysis toolchain along with Rust targets will fail in `gn gen`.

In the future, it could make sense to make this actually do something,
like invoke Clippy, but that's out of scope for this change.

Change-Id: I737214ada3cc6d30696682d030b44b62eaf9007b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/127035
Commit-Queue: Eli Lipsitz <elipsitz@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Pigweed-Auto-Submit: Eli Lipsitz <elipsitz@google.com>
diff --git a/pw_toolchain/static_analysis_toolchain.gni b/pw_toolchain/static_analysis_toolchain.gni
index e11f456..dbaa644 100644
--- a/pw_toolchain/static_analysis_toolchain.gni
+++ b/pw_toolchain/static_analysis_toolchain.gni
@@ -220,6 +220,14 @@
       forward_variables_from(_copy, "*")
     }
 
+    tool("rust_bin") {
+      _output = "{{output_dir}}/{{target_output_name}}{{output_extension}}"
+      command = pw_universal_stamp.command
+      description = "rustc {{output}}"
+      outputs = [ _output ]
+      default_output_dir = "{{target_out_dir}}/bin"
+    }
+
     # Build arguments to be overridden when compiling cross-toolchain:
     #
     #   pw_toolchain_defaults: A scope setting defaults to apply to GN targets