syft-semantic 0.2.1

Rust-first semantic indexing and diffing for syft
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use syft_types::{SemanticEdge, SymbolDescriptor};

mod diff;
mod extract;
mod support;

#[cfg(test)]
mod tests;

pub use diff::{diff_snapshots, index_snapshot};
pub use extract::{extract_rust_symbols, index_rust_directory};

#[derive(Debug, Clone)]
pub struct SemanticIndexResult {
    pub symbols: Vec<SymbolDescriptor>,
    pub public_api_symbols: Vec<SymbolDescriptor>,
    pub edges: Vec<SemanticEdge>,
}