third_party/rust: initialize, add mdbook
As we want to use [mdbook](https://github.com/rust-lang/mdBook) to build
documentation, we now have to pull it into the monorepo, alongside
support for Rust in general.
Testing plan: bazel run //third_party/rust:cargo_bin_mdbook. The CI
should also pick this up now.
Change-Id: I6cf5d02d926bb0de61a5c882828accd35f3a1076
Reviewed-on: https://review.monogon.dev/c/monogon/+/201
Reviewed-by: Leopold Schabel <leo@nexantic.com>
diff --git a/third_party/rust/cargo/remote/BUILD.sha-1-0.9.6.bazel b/third_party/rust/cargo/remote/BUILD.sha-1-0.9.6.bazel
new file mode 100644
index 0000000..e46daf7
--- /dev/null
+++ b/third_party/rust/cargo/remote/BUILD.sha-1-0.9.6.bazel
@@ -0,0 +1,84 @@
+"""
+@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:rust.bzl",
+ "rust_binary",
+ "rust_library",
+ "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 OR Apache-2.0"
+])
+
+# Generated Targets
+
+# Unsupported target "lib" with type "bench" omitted
+
+# Unsupported target "sha1sum" with type "example" omitted
+
+alias(
+ name = "sha_1",
+ actual = ":sha1",
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+)
+
+rust_library(
+ name = "sha1",
+ srcs = glob(["**/*.rs"]),
+ aliases = {
+ },
+ crate_features = [
+ "default",
+ "std",
+ ],
+ crate_root = "src/lib.rs",
+ crate_type = "lib",
+ data = [],
+ edition = "2018",
+ rustc_flags = [
+ "--cap-lints=allow",
+ ],
+ tags = [
+ "cargo-raze",
+ "manual",
+ ],
+ version = "0.9.6",
+ # buildifier: leave-alone
+ deps = [
+ "@raze__block_buffer__0_9_0//:block_buffer",
+ "@raze__cfg_if__1_0_0//:cfg_if",
+ "@raze__digest__0_9_0//:digest",
+ "@raze__opaque_debug__0_3_0//:opaque_debug",
+ ] + selects.with_or({
+ # cfg(any(target_arch = "x86", target_arch = "x86_64"))
+ (
+ "@rules_rust//rust/platform:x86_64-unknown-linux-gnu",
+ ): [
+ "@raze__cpufeatures__0_1_5//:cpufeatures",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+# Unsupported target "lib" with type "test" omitted