Skip to main content

Crate sage_package

Crate sage_package 

Source
Expand description

Package manager for Sage.

This crate handles:

  • Parsing [dependencies] from grove.toml
  • Managing grove.lock for reproducible builds
  • Package cache at ~/.grove/packages/<name>/<version>/
  • Git-based dependency resolution

Structs§

GitDependency
A git-based dependency specification.
LockFile
The lock file format for grove.lock.
LockedPackage
A locked package entry.
PackageCache
Manages the local package cache.
PathDependency
A local path dependency specification.
ResolvedPackages
Result of dependency resolution.

Enums§

DependencySpec
A dependency specification from grove.toml.
PackageError
Errors that can occur during package operations.

Functions§

check_is_library
Check if a package has a run statement (making it an executable, not a library).
check_lock_freshness
Check if dependencies are up-to-date with lock file.
install_from_lock
Install dependencies from an existing lock file.
parse_dependencies
Parse dependencies from a TOML table.
resolve_dependencies
Resolve all dependencies from a project’s grove.toml.
resolve_path
Resolve a path dependency to an absolute path.