From 8d0c48ae0fabbbca8f912c995e9995feaabfc7c4 Mon Sep 17 00:00:00 2001 From: John Turner Date: Thu, 11 Dec 2025 02:42:09 +0000 Subject: [PATCH] add docs to profile module --- src/repo/profile/mod.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/repo/profile/mod.rs b/src/repo/profile/mod.rs index 4736444..31861b9 100644 --- a/src/repo/profile/mod.rs +++ b/src/repo/profile/mod.rs @@ -1,3 +1,16 @@ +//! Evaluate profiles: +//! ```rust +//! use gentoo_utils::repo::Repo; +//! +//! let repo = Repo::new("/var/db/repos/gentoo"); +//! let profile = repo.evaluate_profile("default/linux/23.0") +//! .expect("failed to evaluate profile"); +//! +//! for (key, value) in profile.make_defaults() { +//! println!("{key} = {value}"); +//! } +//! ``` + use std::{ collections::HashMap, fs::{self, File},