syft_semantic/lib.rs
1use syft_types::{SemanticEdge, SymbolDescriptor};
2
3mod diff;
4mod extract;
5mod support;
6
7#[cfg(test)]
8mod tests;
9
10pub use diff::{diff_snapshots, index_snapshot};
11pub use extract::{extract_rust_symbols, index_rust_directory};
12
13#[derive(Debug, Clone)]
14pub struct SemanticIndexResult {
15 pub symbols: Vec<SymbolDescriptor>,
16 pub public_api_symbols: Vec<SymbolDescriptor>,
17 pub edges: Vec<SemanticEdge>,
18}