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 BuildIRGraph ¶ added in v0.4.2
func BuildIRGraph(g *graph.DependencyGraph) ir.IRGraph
BuildIRGraph builds a function-level IR graph for a Rust dependency graph.
func Detect ¶
func Detect(dir string) capability.CapabilitySet
Detect walks .rs files in dir and returns the combined capability set.
func DetectFunctions ¶ added in v0.4.2
DetectFunctions parses Rust source files and returns per-function capability sets and call edges.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements the analyzer.Analyzer interface for Rust projects.
type RustFunction ¶ added in v0.4.2
RustFunction represents a Rust function found in source.
type RustPackage ¶
RustPackage represents a Rust dependency extracted from a lockfile.
func Load ¶
func Load(dir string) (pkgs []RustPackage, retErr error)
Load detects and parses the Rust dependency lockfile in dir. Detection order: Cargo.lock → Cargo.toml Load never panics; it returns a structured error on failure.