rust

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCargoLock

func ParseCargoLock(pathToLockfile string) ([]lockfile.PackageDetails, error)

Types

type CargoLockExtractor

type CargoLockExtractor struct {
	lockfile.WithMatcher
}

func (CargoLockExtractor) Extract

func (CargoLockExtractor) IsOfficiallySupported

func (e CargoLockExtractor) IsOfficiallySupported() bool

func (CargoLockExtractor) PackageManager

func (e CargoLockExtractor) PackageManager() models.PackageManager

func (CargoLockExtractor) ShouldExtract

func (e CargoLockExtractor) ShouldExtract(path string) bool

type CargoLockFile

type CargoLockFile struct {
	Version  int                `toml:"version"`
	Packages []CargoLockPackage `toml:"package"`
}

type CargoLockPackage

type CargoLockPackage struct {
	Name    string `toml:"name"`
	Version string `toml:"version"`
}

type CargoToml added in v1.5.0

type CargoToml struct {
	Dependencies map[string]interface{} `toml:"dependencies"`
	DevDeps      map[string]interface{} `toml:"dev-dependencies"`
	BuildDeps    map[string]interface{} `toml:"build-dependencies"`
}

CargoToml represents the structure of a Cargo.toml file

type CargoTomlMatcher added in v1.5.0

type CargoTomlMatcher struct{}

func (CargoTomlMatcher) GetSourceFile added in v1.5.0

func (m CargoTomlMatcher) GetSourceFile(lockfile lockfile.DepFile) (lockfile.DepFile, error)

func (CargoTomlMatcher) Match added in v1.5.0

func (m CargoTomlMatcher) Match(sourceFile lockfile.DepFile, packages []lockfile.PackageDetails, context lockfile.ScanContext) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL