Skip to main content

Crate pite_project

Crate pite_project 

Source
Expand description

pite-project: pite.toml manifest, res:// paths, templates.

Structs§

ExportConfig
Export settings. Everything defaults. platforms was removed in 0.1.1 (export never read it); manifests that still carry it parse untouched and warn via validate_manifest.
PiteManifest
ProjectMeta
VendorEntry
One pinned package in [vendor]. sha256 covers the stored artifact: the wheel file when zipped, a canonical tree hash when unpacked.

Constants§

MANIFEST_FILE
TEMPLATE_PITE_TOML
TEMPLATE_SCRIPT

Functions§

create_project
deprecated_replacement
Replacement for a deprecated manifest key, if any. Empty today: the registry exists so a future rename warns instead of silently changing meaning.
find_project_root
load_manifest
resolve_res
save_manifest
Write the manifest back to dir/pite.toml. Serializes through toml::Value (sorted tables) so saves are byte-stable even with unknown extra keys aboard; known fields land alphabetically on disk.
template_scene
Fresh main.pitescene for create_project. The format version comes from the pite-scene const so scaffolds track format bumps.
to_res_path
validate_manifest
Pure manifest validation: unknown/deprecated keys warn (sorted, stable), impossible values error. Filesystem checks (icon exists) live in pite check.