workspace: add Rust EFI infrastructure
This bumps rules_rust, cleans up the toolchains with the new version.
It also adds the Prost codegen to "normal" crate set as well as a new
crate set specific to EFI. This is separate because of Rust no-std's
dependence on create feature tags.
Change-Id: Ie76e66ee83696948391420ca3b011a3a71258690
Reviewed-on: https://review.monogon.dev/c/monogon/+/2202
Tested-by: Jenkins CI
Reviewed-by: Serge Bazanski <serge@monogon.tech>
diff --git a/third_party/rust/cargo/remote/BUILD.warp-0.3.6.bazel b/third_party/rust/cargo/remote/BUILD.warp-0.3.6.bazel
new file mode 100644
index 0000000..b47fffb
--- /dev/null
+++ b/third_party/rust/cargo/remote/BUILD.warp-0.3.6.bazel
@@ -0,0 +1,164 @@
+"""
+@generated
+cargo-raze crate build file.
+
+DO NOT EDIT! Replaced on runs of cargo-raze
+"""
+
+# buildifier: disable=load
+load("@bazel_skylib//lib:selects.bzl", "selects")
+
+# buildifier: disable=load
+load(
+ "@rules_rust//rust:defs.bzl",
+ "rust_binary",
+ "rust_library",
+ "rust_proc_macro",
+ "rust_test",
+)
+
+package(default_visibility = [
+ # Public for visibility by "@raze__crate__version//" targets.
+ #
+ # Prefer access through "//third_party/rust/cargo", which limits external
+ # visibility to explicit Cargo.toml dependencies.
+ "//visibility:public",
+])
+
+licenses([
+ "notice", # MIT from expression "MIT"
+])
+
+# Generated Targets
+
+# Unsupported target "autoreload" with type "example" omitted
+
+# Unsupported target "body" with type "example" omitted
+
+# Unsupported target "compression" with type "example" omitted
+
+# Unsupported target "custom_methods" with type "example" omitted
+
+# Unsupported target "dir" with type "example" omitted
+
+# Unsupported target "dyn_reply" with type "example" omitted
+
+# Unsupported target "file" with type "example" omitted
+
+# Unsupported target "futures" with type "example" omitted
+
+# Unsupported target "handlebars_template" with type "example" omitted
+
+# Unsupported target "headers" with type "example" omitted
+
+# Unsupported target "hello" with type "example" omitted
+
+# Unsupported target "multipart" with type "example" omitted
+
+# Unsupported target "query_string" with type "example" omitted
+
+# Unsupported target "rejections" with type "example" omitted
+
+# Unsupported target "returning" with type "example" omitted
+
+# Unsupported target "routing" with type "example" omitted
+
+# Unsupported target "sse" with type "example" omitted
+
+# Unsupported target "sse_chat" with type "example" omitted
+
+# Unsupported target "stream" with type "example" omitted
+
+# Unsupported target "tls" with type "example" omitted
+
+# Unsupported target "todos" with type "example" omitted
+
+# Unsupported target "tracing" with type "example" omitted
+
+# Unsupported target "unix_socket" with type "example" omitted
+
+# Unsupported target "websockets" with type "example" omitted
+
+# Unsupported target "websockets_chat" with type "example" omitted
+
+# Unsupported target "wrapping" with type "example" omitted
+
+rust_library(
+ name = "warp",
+ srcs = glob(["**/*.rs"]),
+ crate_features = [
+ "tokio-tungstenite",
+ "websocket",
+ ],
+ crate_root = "src/lib.rs",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "crate-name=warp",
+ "manual",
+ ],
+ version = "0.3.6",
+ # buildifier: leave-alone
+ deps = [
+ "@raze__bytes__1_5_0//:bytes",
+ "@raze__futures_channel__0_3_28//:futures_channel",
+ "@raze__futures_util__0_3_28//:futures_util",
+ "@raze__headers__0_3_9//:headers",
+ "@raze__http__0_2_9//:http",
+ "@raze__hyper__0_14_27//:hyper",
+ "@raze__log__0_4_20//:log",
+ "@raze__mime__0_3_17//:mime",
+ "@raze__mime_guess__2_0_4//:mime_guess",
+ "@raze__percent_encoding__2_3_0//:percent_encoding",
+ "@raze__pin_project__1_1_3//:pin_project",
+ "@raze__rustls_pemfile__1_0_3//:rustls_pemfile",
+ "@raze__scoped_tls__1_0_1//:scoped_tls",
+ "@raze__serde__1_0_188//:serde",
+ "@raze__serde_json__1_0_107//:serde_json",
+ "@raze__serde_urlencoded__0_7_1//:serde_urlencoded",
+ "@raze__tokio__1_32_0//:tokio",
+ "@raze__tokio_stream__0_1_14//:tokio_stream",
+ "@raze__tokio_tungstenite__0_20_1//:tokio_tungstenite",
+ "@raze__tokio_util__0_7_9//:tokio_util",
+ "@raze__tower_service__0_3_2//:tower_service",
+ "@raze__tracing__0_1_37//:tracing",
+ ],
+)
+
+# Unsupported target "addr" with type "test" omitted
+
+# Unsupported target "body" with type "test" omitted
+
+# Unsupported target "cookie" with type "test" omitted
+
+# Unsupported target "cors" with type "test" omitted
+
+# Unsupported target "ext" with type "test" omitted
+
+# Unsupported target "filter" with type "test" omitted
+
+# Unsupported target "fs" with type "test" omitted
+
+# Unsupported target "header" with type "test" omitted
+
+# Unsupported target "host" with type "test" omitted
+
+# Unsupported target "method" with type "test" omitted
+
+# Unsupported target "multipart" with type "test" omitted
+
+# Unsupported target "path" with type "test" omitted
+
+# Unsupported target "query" with type "test" omitted
+
+# Unsupported target "redirect" with type "test" omitted
+
+# Unsupported target "reply_with" with type "test" omitted
+
+# Unsupported target "tracing" with type "test" omitted
+
+# Unsupported target "ws" with type "test" omitted