uv-sbom 2.0.1

SBOM generation tool for uv projects - Generate CycloneDX SBOMs from uv.lock files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Dependency view structs for read model
//!
//! These structs provide a query-optimized view of dependency relationships.

use std::collections::HashMap;

/// View representation of dependency information
///
/// Provides a flattened view of direct and transitive dependencies
/// for efficient querying.
#[derive(Debug, Clone, Default)]
pub struct DependencyView {
    /// BOM references of direct dependencies
    pub direct: Vec<String>,
    /// Transitive dependencies mapped by their parent bom-ref
    pub transitive: HashMap<String, Vec<String>>,
}