Skip to main content

Module project

Module project 

Source
Expand description

Project context for the package-manager operations in crate::ops.

Two small value types tie an operation to the filesystem:

TypeOwnsDecided by
PkgDirthe base directory that holds cache/ and vendored/the caller (CLI flag / env / SDK constructor)
Projectmanifest path, lockfile path, and a PkgDirthe caller

The library never inspects the current working directory or environment to pick these paths. The CLI resolves its --mlua-pkgs-dir / MLUA_PKG_DIR / target/ precedence and hands the result in as a single PkgDir; an embedding application does the same with whatever policy it prefers.

Structs§

PkgDir
Base directory for cache + vendored output.
Project
Everything an operation in crate::ops needs to locate files.

Constants§

DEFAULT_PKG_DIR_NAME
Default base-directory name used when nothing else is configured.
LOCKFILE_FILE_NAME
Lockfile filename inside a project root.
MANIFEST_FILE_NAME
Manifest filename inside a project root.