Skip to content

zig_package

Represents one locked Zig package as a normal Zig module provider. These targets are normally generated by zig_dependencies, but remain visible through target and dependency queries.

Attributes

AttributeTypeRequiredMeaning
mainstringyesPublic root Zig module
import_namestringnoEdge-local name used by dependants
import_namesmap of stringsnoImport-name overrides for transitive packages
package_namestringyesName declared by the package, or its dependency alias
package_versionstringnoSemantic version declared by the package
package_fingerprintstringnoStable fingerprint declared by modern Zig package manifests
source_rootstringyesMaterialized package source directory
source_urlstringnoSource location recorded by the parent manifest
source_hashstringnoZig content multihash recorded by the declaring manifest. Once preserves it but does not reimplement Zig's source verification
source_pathstringnoLocal package path recorded by the parent manifest
lazybooleannoWhether the package is marked for lazy fetching

Providers

  • zig_module

The provider carries the same direct and transitive module contexts as zig_library, plus locked package identity and source metadata. It performs no network operation and is compiled at the use site by a consuming Zig artifact target.

Released under an open-source license.