Skip to content

Commit

Permalink
fixup: docs.rs builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Jun 27, 2024
1 parent 2a70844 commit ae04722
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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\""]

0 comments on commit ae04722

Please sign in to comment.