Documentation
¶
Overview ¶
Package rust implements a gorisk analyzer for Rust projects. It supports Cargo.lock and Cargo.toml.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detect ¶
func Detect(dir string) capability.CapabilitySet
Detect walks .rs files in dir and returns the combined capability set.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements the analyzer.Analyzer interface for Rust projects.
type RustPackage ¶
RustPackage represents a Rust dependency extracted from a lockfile.
func Load ¶
func Load(dir string) ([]RustPackage, error)
Load detects and parses the Rust dependency lockfile in dir. Detection order: Cargo.lock → Cargo.toml
Click to show internal directories.
Click to hide internal directories.