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.
Click to show internal directories.
Click to hide internal directories.