Expand description
Project context for the package-manager operations in crate::ops.
Two small value types tie an operation to the filesystem:
| Type | Owns | Decided by |
|---|---|---|
PkgDir | the base directory that holds cache/ and vendored/ | the caller (CLI flag / env / SDK constructor) |
Project | manifest path, lockfile path, and a PkgDir | the 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::opsneeds 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.