pub fn analyze_crate(
path: &Path,
package: Option<&str>,
config: AnalysisConfig,
) -> Result<(Crate, AnalysisHost, Edition)>Expand description
Analyzes a Rust crate at the given path and returns the analysis components
§Arguments
path- Path to the crate root (containing Cargo.toml)package- Optional package name for workspace cratesconfig- Analysis configuration to control performance and depth
§Returns
A tuple of (crate, database, edition) that can be used for further analysis