Skip to main content

Module extension

Module extension 

Source
Expand description

Extension traits, process adapters, and extension command helpers. Extension interfaces for package registry integrations.

Extensions implement crate::extension::Extension to report supported registries, discover dependency metadata, and return package artifact metadata. Extensions can be compiled into a client with crate::extension::FromLib or invoked through a process with crate::extension::ProcessExtension.

Process-backed extension binaries should call crate::extension::run_command from their main function to expose the standard Thirdpass extension subcommands.

Structs§

Dependency
A dependency as specified within a dependencies definition file.
FileDefinedDependencies
A dependencies specification file found from inspecting the local filesystem.
PackageDependencies
Package dependencies found by querying a registry.
ProcessExtension
Extension adapter that communicates with an extension executable.
RegistryPackageMetadata
Metadata returned by an extension for a package in a registry.
ReviewTargetPolicy
Policy for selecting automatic review target files.
VersionError
Error value used when an extension cannot resolve a dependency version.

Traits§

DependenciesCollection
Common view over dependency collections returned by extensions.
Extension
Registry and dependency behavior implemented by every Thirdpass extension.
FromLib
Extension implementation that is compiled directly into the current process.
FromProcess
Extension implementation that is loaded by invoking a process.

Functions§

run_command
Run the standard process-extension command line interface for an extension.

Type Aliases§

VersionParseResult
Parsed dependency version or a version parsing error.