From ae047223ce14c90b05a0660e370c2e7cde980409 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 25 Jun 2024 08:58:56 -0700 Subject: [PATCH] fixup: docs.rs builds --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index dc551698e..e1b26a4a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,3 +64,9 @@ tempfile = "3.3.0" strip = true # Automatically strip symbols from the binary. opt-level = "z" # Optimize for size. lto = true + +[package.metadata.docs.rs] +# NOTE(cole-h): We embed the Nix closure by reading from this environment variable, but this is not +# available in docs.rs's build. It doesn't influence docs, so it's fine to set it to a bogus (but +# existing-file) value. +cargo-args = ["--config", "env.NIX_INSTALLER_TARBALL_PATH=\"../Cargo.toml\""]