Wrap //aos:uuid for Rust

Including conversions to the native Rust uuid crate's types.

Change-Id: Id8f87c60df4f5c9daa8ce4f72c65b376b0ec812a
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/aos/BUILD b/aos/BUILD
index 5fcb7cf..8e223b7 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -695,6 +695,30 @@
     ],
 )
 
+cc_library(
+    name = "uuid_for_rust",
+    hdrs = ["uuid_for_rust.h"],
+    deps = [
+        ":uuid",
+    ],
+)
+
+autocxx_library(
+    name = "uuid_rs",
+    srcs = ["uuid.rs"],
+    crate_name = "aos_uuid",
+    libs = [
+        ":uuid",
+        ":uuid_for_rust",
+    ],
+    override_cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux",
+    rs_deps = [
+        "//third_party/cargo:uuid",
+    ],
+    target_compatible_with = ["//tools/platforms/rust:has_support"],
+    visibility = ["//visibility:public"],
+)
+
 cc_binary(
     name = "aos_graph_channels",
     srcs = [