This commit is contained in:
Nilton Constantino
2026-02-02 16:00:08 +00:00
parent ad1650592d
commit 6330c6cbae
5 changed files with 255 additions and 4 deletions
@@ -1,16 +1,17 @@
use std::collections::{HashMap, HashSet};
use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
use crate::manifest::{Manifest, load_manifest};
use crate::deps::fetch::{fetch_dependency, FetchError};
use crate::sources::{ProjectSources, discover, SourceError};
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct ProjectId {
pub name: String,
pub version: String,
}
#[derive(Debug)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ResolvedNode {
pub id: ProjectId,
pub path: PathBuf,
@@ -18,7 +19,7 @@ pub struct ResolvedNode {
pub sources: ProjectSources,
}
#[derive(Debug)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ResolvedEdge {
pub alias: String,
pub to: ProjectId,