third_party/rust: update rules_rust and deps

This is required for rules_rust to work with CC toolchains.

Change-Id: I15f20c7bde09697fda248f7107be8bcd00e24d57
Reviewed-on: https://review.monogon.dev/c/monogon/+/1073
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/third_party/rust/cargo/remote/BUILD.winapi-0.3.9.bazel b/third_party/rust/cargo/remote/BUILD.winapi-0.3.9.bazel
index 90a6e43..c42862a 100644
--- a/third_party/rust/cargo/remote/BUILD.winapi-0.3.9.bazel
+++ b/third_party/rust/cargo/remote/BUILD.winapi-0.3.9.bazel
@@ -10,9 +10,10 @@
 
 # buildifier: disable=load
 load(
-    "@rules_rust//rust:rust.bzl",
+    "@rules_rust//rust:defs.bzl",
     "rust_binary",
     "rust_library",
+    "rust_proc_macro",
     "rust_test",
 )
 
@@ -41,31 +42,6 @@
     srcs = glob(["**/*.rs"]),
     build_script_env = {
     },
-    crate_features = [
-        "consoleapi",
-        "errhandlingapi",
-        "fileapi",
-        "handleapi",
-        "ioapiset",
-        "minwinbase",
-        "minwindef",
-        "ntdef",
-        "processenv",
-        "profileapi",
-        "shellapi",
-        "std",
-        "synchapi",
-        "sysinfoapi",
-        "timezoneapi",
-        "winbase",
-        "wincon",
-        "winerror",
-        "winnt",
-        "winsock2",
-        "ws2def",
-        "ws2ipdef",
-        "ws2tcpip",
-    ],
     crate_root = "build.rs",
     data = glob(["**"]),
     edition = "2015",
@@ -85,33 +61,7 @@
 rust_library(
     name = "winapi",
     srcs = glob(["**/*.rs"]),
-    crate_features = [
-        "consoleapi",
-        "errhandlingapi",
-        "fileapi",
-        "handleapi",
-        "ioapiset",
-        "minwinbase",
-        "minwindef",
-        "ntdef",
-        "processenv",
-        "profileapi",
-        "shellapi",
-        "std",
-        "synchapi",
-        "sysinfoapi",
-        "timezoneapi",
-        "winbase",
-        "wincon",
-        "winerror",
-        "winnt",
-        "winsock2",
-        "ws2def",
-        "ws2ipdef",
-        "ws2tcpip",
-    ],
     crate_root = "src/lib.rs",
-    crate_type = "lib",
     data = [],
     edition = "2015",
     rustc_flags = [
@@ -119,6 +69,7 @@
     ],
     tags = [
         "cargo-raze",
+        "crate-name=winapi",
         "manual",
     ],
     version = "0.3.9",