Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Package manager

The full design and behavior are in import-v3.md. Summary:

  • External dependencies are declared in lt.toml ([dependencies]), not on import lines. Imports use <key>/<path>.
  • v1 sources: git (https/ssh) and local paths. No registry.
  • Versions: semver ranges, exact tags, or 40-hex commits. Transitive resolution with one version per source.
  • lt.lock is the resolution graph: source, commit, root, sha256 per file, and requirement edges. Build/check are read-only; only lt add/lt update write the lock.
  • Cache: $XDG_CACHE_HOME/lt or ~/.cache/lt; LT_CACHE_DIR overrides it. lt vendor copies locked sources to vendor/ for offline builds.
  • Commands: lt add, lt remove, lt update <key>|--all, lt vendor.