Skip to main content

Module external_packages

Module external_packages 

Source
Expand description

External package resolution - shared types only.

Language-specific resolution has been moved to individual language modules:

  • Python: python.rs
  • Go: go.rs
  • Rust: rust.rs
  • JavaScript/TypeScript/Deno: ecmascript.rs
  • Java: java.rs
  • C/C++: moved to normalize-local-deps

This module contains:

  • ResolvedPackage: Common result type for package resolution
  • Global cache: ~/.cache/normalize/ for indexed packages
  • PackageIndex: SQLite-backed package/symbol index

Structs§

PackageIndex
Global package index backed by libSQL.
PackageRecord
A package record in the index.
ResolvedPackage
Result of resolving an external package
SymbolRecord
A symbol record in the index.
Version
Parsed version as (major, minor).

Enums§

PackageIndexError
Error type for PackageIndex open operations.

Functions§

get_global_cache_dir
Get the global normalize cache directory (~/.cache/normalize/).
get_global_packages_db
Get the path to the unified global package index database.