Help us shape the future of Go! Take the 2026 Go Developer Survey

rust

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package rust implements the Rust source analyzer (crate + use + module tracking).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RustAnalyzer

func RustAnalyzer(opts ...Option) *rustAnalyzer

RustAnalyzer returns a Rust source analyzer (satisfies analyzer.Analyzer and analyzer.BoundaryProvider). Concrete pointer return so tests can call Boundaries without a type assertion; cmd uses the interface upcast.

Types

type BoundaryStrategy

type BoundaryStrategy string

BoundaryStrategy selects the granularity at which Rust packages are grouped.

const (
	StrategyPackage BoundaryStrategy = "package"
	StrategyModule  BoundaryStrategy = "module"
)

Boundary strategies select the granularity at which packages are grouped.

type Option

type Option func(*rustAnalyzer)

Option configures a rustAnalyzer.

func WithBoundaryStrategy

func WithBoundaryStrategy(s BoundaryStrategy) Option

WithBoundaryStrategy sets the package-boundary strategy for the analyzer.

Jump to

Keyboard shortcuts

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