zig init: adjust template lang to allow zig fmt passthrough

This commit is contained in:
Andrew Kelley
2025-02-25 20:25:17 -08:00
parent ea516f0e81
commit 67904e925d
4 changed files with 29 additions and 26 deletions

View File

@@ -6,7 +6,7 @@
//
// It is redundant to include "zig" in this name because it is already
// within the Zig package namespace.
.name = .$n,
.name = .LITNAME,
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
@@ -24,11 +24,11 @@
// original project's identity. Thus it is recommended to leave the comment
// on the following line intact, so that it shows up in code reviews that
// modify the field.
.nonce = $i, // Changing this has security and trust implications.
.nonce = .NONCE, // Changing this has security and trust implications.
// Tracks the earliest Zig version that the package considers to be a
// supported use case.
.minimum_zig_version = "$v",
.minimum_zig_version = ".ZIGVER",
// This field is optional.
// This is currently advisory only; Zig does not yet do anything