Skip to main content

Crate nwnrs_nwpkg

Crate nwnrs_nwpkg 

Source
Expand description

§nwnrs-nwpkg

nwnrs-nwpkg defines the typed nwproject.toml and nwproject.lock behavior used by the workspace packaging tools.

It owns:

  • the supported nwproject kind taxonomy
  • serde-backed TOML manifest read/write behavior
  • JSON lockfile read/write behavior
  • repack optimization helpers such as source snapshots and original-file reuse

The crate depends on nwnrs-types for NWN-specific archive/resource vocabulary such as ResRef, ERF versions, KEY/BIF versions, checksum helpers, and compression algorithms.

Structs§

ErfPackMetadata
KeyPackMetadata
ProjectManifest
Typed nwproject.toml contents.
ResourcePackMetadata

Enums§

ProjectKind
Supported nwproject output kinds.
ProjectLayout
High-level packaging layout implied by one project kind.

Constants§

PROJECT_LOCK_FILENAME
Canonical nwproject.lock filename.
PROJECT_MANIFEST_FILENAME
Canonical nwproject.toml filename.

Functions§

copy_original_key_set
is_project_control_file
read_erf_pack_metadata
read_key_pack_metadata
read_project_manifest
read_resource_pack_metadata
resolve_existing_key_bif_path
should_copy_original_erf
should_copy_original_key
should_copy_original_resource
write_erf_pack_metadata
write_key_pack_metadata
write_new_erf_pack_metadata
write_new_key_pack_metadata
write_new_resource_pack_metadata
write_project_manifest
write_resource_pack_metadata