From 54dd4c87bea51dca48dc3464df3d489c2a717b09 Mon Sep 17 00:00:00 2001 From: bit-aloo Date: Sun, 23 Feb 2025 08:37:10 +0530 Subject: [PATCH] bootstrap: add module docs for core:metadata --- src/bootstrap/src/core/metadata.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bootstrap/src/core/metadata.rs b/src/bootstrap/src/core/metadata.rs index 983674d2c6835..01cbf6629408d 100644 --- a/src/bootstrap/src/core/metadata.rs +++ b/src/bootstrap/src/core/metadata.rs @@ -1,3 +1,10 @@ +//! This module interacts with Cargo metadata to collect and store information about +//! the packages in the Rust workspace. +//! +//! It runs `cargo metadata` to gather details about each package, including its name, +//! source, dependencies, targets, and available features. The collected metadata is then +//! used to update the `Build` structure, ensuring proper dependency resolution and +//! compilation flow. use std::collections::BTreeMap; use std::path::PathBuf;