repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_limit.rs | crate/progress_model/src/progress_limit.rs | use serde::{Deserialize, Serialize};
/// Unit of measurement and total number of units.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
pub enum ProgressLimit {
/// There is no meaningful way to measure progress.
#[default]
Unknown,
/// Progress is complete when `n` steps ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/lib.rs | crate/progress_model/src/lib.rs | //! Command progress data model for the peace automation framework.
//!
//! # Design Notes
//!
//! Only used when the `"output_progress"` feature is enabled in Peace.
pub use crate::{
cmd_block_item_interaction_type::CmdBlockItemInteractionType,
cmd_progress_update::CmdProgressUpdate, item_location_state::Item... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/cmd_progress_update.rs | crate/progress_model/src/cmd_progress_update.rs | use serde::{Deserialize, Serialize};
use peace_item_model::ItemId;
use crate::{CmdBlockItemInteractionType, ItemLocationState, ProgressUpdateAndId};
/// Progress update that affects all `ProgressTracker`s.
///
/// This is sent at the `CmdExecution` level.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/cmd_block_item_interaction_type.rs | crate/progress_model/src/cmd_block_item_interaction_type.rs | use serde::{Deserialize, Serialize};
/// Type of interactions that a `CmdBlock`s has with `ItemLocation`s.
///
/// # Design
///
/// Together with `ProgressStatus` and `ItemLocationState`, this is used to
/// compute how an `ItemLocation` should be rendered to a user.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Deseria... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_status.rs | crate/progress_model/src/progress_status.rs | use serde::{Deserialize, Serialize};
use crate::ProgressComplete;
/// Status of an item's execution progress.
///
/// # Implementation Notes
///
/// ## Variants
///
/// The following variant is possible conceptually, but not applicable to the
/// Peace framework:
///
/// `Stopped`: Task is not running, but can be sta... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_msg_update.rs | crate/progress_model/src/progress_msg_update.rs | use serde::{Deserialize, Serialize};
/// Whether to change the progress message.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
pub enum ProgressMsgUpdate {
/// Clears the progress message.
Clear,
/// Does not change the progress message.
NoChange,
/// Sets the progress message.
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_update.rs | crate/progress_model/src/progress_update.rs | use serde::{Deserialize, Serialize};
use crate::{ProgressDelta, ProgressLimit};
use super::ProgressComplete;
/// Progress update for a single progress tracker.
///
/// # Potential Future Variants
///
/// * `PendingInput`
/// * `Stall`
///
/// # Implementation Note
///
/// `serde-yaml` 0.9 does not support serializin... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_tracker.rs | crate/progress_model/src/progress_tracker.rs | use std::time::Duration;
use chrono::{DateTime, Utc};
use indicatif::ProgressBar;
use crate::{ProgressLimit, ProgressStatus};
/// Tracks progress for an item's `ApplyFns::exec` method.
#[derive(Debug)]
pub struct ProgressTracker {
/// Status of the item's execution progress.
progress_status: ProgressStatus,
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/item_location_state.rs | crate/progress_model/src/item_location_state.rs | use serde::{Deserialize, Serialize};
/// A low-resolution representation of the state of an [`ItemLocation`].
///
/// Combined with [`ProgressStatus`], [`ItemLocationStateInProgress`] can be
/// computed, to determine how an [`ItemLocation`] should be rendered.
///
/// [`ItemLocation`]: crate::ItemLocation
/// [`ItemL... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_sender.rs | crate/progress_model/src/progress_sender.rs | use peace_item_model::ItemId;
use tokio::sync::mpsc::Sender;
use crate::{
CmdProgressUpdate, ItemLocationState, ProgressDelta, ProgressMsgUpdate, ProgressUpdate,
ProgressUpdateAndId,
};
/// Submits progress for an item's `ApplyFns::exec` method.
#[derive(Clone, Copy, Debug)]
pub struct ProgressSender<'exec> {... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_update_and_id.rs | crate/progress_model/src/progress_update_and_id.rs | use peace_item_model::ItemId;
use serde::{Deserialize, Serialize};
use crate::{ProgressMsgUpdate, ProgressUpdate};
/// An item ID and its progress update.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
pub struct ProgressUpdateAndId {
/// ID of the item whose progress is updated.
pub item_id: ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_delta.rs | crate/progress_model/src/progress_delta.rs | use serde::{Deserialize, Serialize};
/// The amount that the item progressed by.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
pub enum ProgressDelta {
/// Ticks the progress bar without incrementing its value.
///
/// Generally useful for progress bars with an unknown total.
Tick,
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/progress_model/src/progress_complete.rs | crate/progress_model/src/progress_complete.rs | use serde::{Deserialize, Serialize};
/// Progress completion outcome.
///
/// # Implementation Note
///
/// Should we split `Fail` to be `Fail` and `Error`?
///
/// The distinction will allow determining if:
///
/// * The end user is using invalid values (need for education).
/// * The environment is flakey (need for ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/static_check_macros/src/lib.rs | crate/static_check_macros/src/lib.rs | use proc_macro2::Span;
use quote::quote;
use syn::{parse_macro_input, parse_quote, Ident, Path};
use self::lit_str_maybe::LitStrMaybe;
mod lit_str_maybe;
/// Returns a `const AppName` validated at compile time.
///
/// This defaults to the crate name.
///
/// # Examples
///
/// Instantiate a valid `AppName` at compi... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/static_check_macros/src/lit_str_maybe.rs | crate/static_check_macros/src/lit_str_maybe.rs | use syn::{
parse::{Parse, ParseStream},
LitStr,
};
pub(crate) struct LitStrMaybe(pub Option<LitStr>);
impl std::ops::Deref for LitStrMaybe {
type Target = Option<LitStr>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl Parse for LitStrMaybe {
fn parse(input: ParseStream) -> syn::... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_web/src/workspace.rs | crate/rt_model_web/src/workspace.rs | //! Types that store information about the directories that a command runs in.
//!
//! In the Peace framework, a command is run with the following contextual
//! information:
//!
//! * The [`Workspace`] of a project that the command is built for.
//! * A [`Profile`] (or namespace) for that project.
//! * A workflow tha... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_web/src/lib.rs | crate/rt_model_web/src/lib.rs | // This crate is only developed for WASM targets.
#![cfg(target_arch = "wasm32")]
//! Web support for the peace automation framework.
//!
//! Consumers should depend on the `peace_rt_model` crate, which re-exports
//! same-named types, depending on whether a native or WASM target is used.
//!
//! **This crate is inten... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_web/src/storage.rs | crate/rt_model_web/src/storage.rs | use std::{
fmt::Debug,
hash::Hash,
path::{Path, PathBuf},
};
use base64::Engine;
use peace_resource_rt::type_reg::{
common::UnknownEntriesSome,
untagged::{DataTypeWrapper, TypeMapOpt, TypeReg},
};
use peace_rt_model_core::{Error, WebError};
use serde::{de::DeserializeOwned, Serialize};
use wasm_bin... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_web/src/workspace_spec.rs | crate/rt_model_web/src/workspace_spec.rs | /// Describes how to store peace automation data.
///
/// See <https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API>.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum WorkspaceSpec {
/// Use browser local storage to store peace data.
///
/// Persists even when the browser is closed and reop... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_web/src/workspace_initializer.rs | crate/rt_model_web/src/workspace_initializer.rs | use std::{fmt::Debug, hash::Hash, path::Path};
use peace_resource_rt::{
internal::{FlowParamsFile, ProfileParamsFile, WorkspaceParamsFile},
type_reg::untagged::{TypeMapOpt, TypeReg},
};
use peace_rt_model_core::{
params::{FlowParams, ProfileParams, WorkspaceParams},
Error,
};
use serde::{de::Deserializ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_web/src/workspace_dirs_builder.rs | crate/rt_model_web/src/workspace_dirs_builder.rs | use std::path::PathBuf;
use peace_core::AppName;
use peace_resource_rt::{
internal::WorkspaceDirs,
paths::{PeaceAppDir, PeaceDir},
};
use peace_rt_model_core::Error;
use crate::WorkspaceSpec;
/// Computes paths of well-known directories for a workspace.
#[derive(Debug)]
pub struct WorkspaceDirsBuilder;
impl... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cli_model/src/lib.rs | crate/cli_model/src/lib.rs | //! Command line interface data types for the peace automation framework.
pub use self::{output_format::OutputFormat, output_format_parse_error::OutputFormatParseError};
mod output_format;
mod output_format_parse_error;
| rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cli_model/src/output_format_parse_error.rs | crate/cli_model/src/output_format_parse_error.rs | use std::fmt;
/// Failed to parse output format from string.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct OutputFormatParseError(pub String);
impl fmt::Display for OutputFormatParseError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
r#"Failed to parse... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cli_model/src/output_format.rs | crate/cli_model/src/output_format.rs | use std::str::FromStr;
use crate::OutputFormatParseError;
/// How to format command output -- human readable or machine parsable.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum OutputFormat {
/// Human readable text.
Text,
/// The YAML Ain't Markup Language™ ([YAML]) format.
///
/// [YAML]:... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/lib.rs | crate/cmd_rt/src/lib.rs | //! Runtime types for commands for the Peace framework.
// Re-exports
pub use async_trait::async_trait;
pub use tynm;
pub use crate::{
cmd_block::{CmdBlock, CmdBlockError, CmdBlockRt, CmdBlockRtBox, CmdBlockWrapper},
cmd_execution::{CmdExecution, CmdExecutionBuilder},
item_stream_outcome_mapper::ItemStrea... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_execution.rs | crate/cmd_rt/src/cmd_execution.rs | use std::{collections::VecDeque, fmt::Debug};
use futures::{future, stream, Future, StreamExt, TryStreamExt};
use interruptible::InterruptSignal;
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::{CmdBlockDesc, CmdOutcome};
use peace_resource_rt::{resources::ts::SetUp, Resources};
u... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_block.rs | crate/cmd_rt/src/cmd_block.rs | use std::fmt::Debug;
use async_trait::async_trait;
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_resource_rt::{resources::ts::SetUp, Resource, ResourceFetchError, Resources};
cfg_if::cfg_if! {
if #[cfg(feature = "output_progress")] {
use peace_progress... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/progress.rs | crate/cmd_rt/src/progress.rs | use std::ops::ControlFlow;
use futures::stream::{self, StreamExt};
use peace_item_model::ItemId;
use peace_progress_model::{
CmdBlockItemInteractionType, CmdProgressUpdate, ItemLocationState, ProgressDelta,
ProgressMsgUpdate, ProgressStatus, ProgressTracker, ProgressUpdate, ProgressUpdateAndId,
};
use peace_rt... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/item_stream_outcome_mapper.rs | crate/cmd_rt/src/item_stream_outcome_mapper.rs | use fn_graph::StreamOutcome;
use peace_cmd_model::ItemStreamOutcome;
use peace_flow_rt::Flow;
/// Maps a `StreamOutcome<T>` to an `ItemStreamOutcome<T>`.
///
/// # Design Note
///
/// This resides in the `cmd_rt` package as the `Flow` type is needed for
/// mapping, and adding `rt_model` as a dependency of `cmd_model`... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_execution/cmd_execution_builder.rs | crate/cmd_rt/src/cmd_execution/cmd_execution_builder.rs | use std::{collections::VecDeque, fmt::Debug};
use peace_cmd_ctx::CmdCtxTypes;
use peace_resource_rt::{resources::ts::SetUp, Resource, Resources};
use crate::{CmdBlock, CmdBlockRtBox, CmdBlockWrapper, CmdExecution};
/// Collects the [`CmdBlock`]s to run in a `*Cmd` to build a [`CmdExecution`].
///
/// [`CmdBlock`]: c... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_execution/cmd_execution_error_builder.rs | crate/cmd_rt/src/cmd_execution/cmd_execution_error_builder.rs | use std::fmt::Debug;
use peace_cmd_ctx::CmdCtxTypes;
use peace_cmd_model::{CmdBlockDesc, CmdExecutionError, InputFetchError};
use peace_resource_rt::ResourceFetchError;
use crate::CmdBlockRtBox;
cfg_if::cfg_if! {
if #[cfg(feature = "error_reporting")] {
use std::fmt::{self, Write};
use tynm::Typ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_block/cmd_block_wrapper.rs | crate/cmd_rt/src/cmd_block/cmd_block_wrapper.rs | use std::{fmt::Debug, marker::PhantomData};
use async_trait::async_trait;
use fn_graph::StreamOutcomeState;
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::{CmdBlockDesc, CmdBlockOutcome};
use peace_resource_rt::Resource;
use tynm::TypeParamsFmtOpts;
use crate::{CmdBlock, CmdBlockError, CmdB... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_block/cmd_block_rt.rs | crate/cmd_rt/src/cmd_block/cmd_block_rt.rs | use std::fmt::Debug;
use async_trait::async_trait;
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockDesc;
use crate::CmdBlockError;
cfg_if::cfg_if! {
if #[cfg(feature = "output_progress")] {
use peace_progress_model::{CmdBlockItemInteractionType, CmdProgressUpdate};
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_block/cmd_block_rt_box.rs | crate/cmd_rt/src/cmd_block/cmd_block_rt_box.rs | use std::pin::Pin;
use crate::CmdBlockRt;
/// Alias for `Box<dyn CmdBlockRt<..>>`.
///
/// # Type Parameters
///
/// * `E`: Automation software error type.
/// * `PKeys`: Types of params keys.
/// * `Outcome`: [`CmdBlock`] outcome type, e.g. `(StatesCurrent, StatesGoal)`.
///
/// [`CmdBlock`]: crate::CmdBlock
pub typ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_rt/src/cmd_block/cmd_block_error.rs | crate/cmd_rt/src/cmd_block/cmd_block_error.rs | use std::fmt::Debug;
use fn_graph::StreamOutcome;
use indexmap::IndexMap;
use peace_item_model::ItemId;
use peace_resource_rt::ResourceFetchError;
/// Error while executing a `CmdBlock`.
///
/// # Type Parameters
///
/// * `T`: Execution outcome, mapped from `CmdBlock::OutcomeAcc`.
/// * `E`: Application error type.
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/state_rt/src/lib.rs | crate/state_rt/src/lib.rs | //! State runtime logic for the peace automation framework.
pub use crate::states_serializer::StatesSerializer;
mod states_serializer;
| rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/state_rt/src/states_serializer.rs | crate/state_rt/src/states_serializer.rs | use std::{marker::PhantomData, path::Path};
use peace_flow_model::FlowId;
use peace_flow_rt::ItemGraph;
use peace_item_model::ItemId;
use peace_resource_rt::{
paths::{StatesCurrentFile, StatesGoalFile},
states::{
ts::{CurrentStored, GoalStored},
States, StatesCurrentStored, StatesGoalStored,
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi/src/lib.rs | crate/webi/src/lib.rs | //! Web interface for the peace automation framework.
pub use peace_webi_components as components;
pub use peace_webi_model as model;
#[cfg(feature = "ssr")]
pub use peace_webi_output as output;
| rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi_components/src/app.rs | crate/webi_components/src/app.rs | use std::time::Duration;
use leptos::{
component,
prelude::{signal, ClassAttribute, ElementChild, Get},
view, IntoView,
};
use leptos_meta::{provide_meta_context, Link, Stylesheet};
use leptos_router::{
components::{Route, Router, Routes, RoutingProgress},
StaticSegment,
};
use crate::ChildrenFn;
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi_components/src/lib.rs | crate/webi_components/src/lib.rs | #![allow(non_snake_case)] // Components are all PascalCase.
//! Web interface components for the peace automation framework.
pub use leptos;
pub use crate::{
app::App, children_fn::ChildrenFn, flow_graph::FlowGraph, flow_graph_current::FlowGraphCurrent,
shell::Shell,
};
mod app;
mod children_fn;
mod flow_gr... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi_components/src/flow_graph.rs | crate/webi_components/src/flow_graph.rs | use dot_ix::{
model::{common::GraphvizDotTheme, info_graph::InfoGraph},
rt::IntoGraphvizDotSrc,
web_components::DotSvg,
};
use leptos::{
component,
prelude::{ClassAttribute, ElementChild, ServerFnError, Set, Transition},
server, view, IntoView,
};
/// Renders the flow graph.
///
/// # Future
//... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi_components/src/flow_graph_current.rs | crate/webi_components/src/flow_graph_current.rs | use dot_ix::{
model::{common::GraphvizDotTheme, info_graph::InfoGraph},
rt::IntoGraphvizDotSrc,
web_components::DotSvg,
};
use leptos::{
component,
prelude::{ClassAttribute, ElementChild, GetUntracked, ServerFnError, Set, Transition},
server, view, IntoView,
};
/// Renders the flow graph.
///
/... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi_components/src/shell.rs | crate/webi_components/src/shell.rs | use leptos::{
hydration::{AutoReload, HydrationScripts},
prelude::{ElementChild, GlobalAttributes, IntoView, LeptosOptions},
view,
};
use leptos_meta::{provide_meta_context, MetaTags, Stylesheet, Title};
use crate::{App, ChildrenFn};
/// Main shell for server side rendered app.
///
/// # Parameters
///
//... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/webi_components/src/children_fn.rs | crate/webi_components/src/children_fn.rs | use std::{fmt, sync::Arc};
use leptos::{
children::ToChildren,
prelude::{AnyView, IntoAny, Render},
IntoView,
};
/// Allows a consumer to pass in the view fragment for a
/// [`leptos_router::Route`].
///
/// # Design
///
/// In `leptos 0.6`, `leptos::ChildrenFn` is an alias for `Rc<_>`, so it cannot
/// b... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/flow_rt/src/lib.rs | crate/flow_rt/src/lib.rs | //! Flow runtime types for the peace automation framework.
pub use crate::{flow::Flow, item_graph::ItemGraph, item_graph_builder::ItemGraphBuilder};
mod flow;
mod item_graph;
mod item_graph_builder;
| rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/flow_rt/src/flow.rs | crate/flow_rt/src/flow.rs | use peace_data::fn_graph::GraphInfo;
use peace_flow_model::{FlowId, FlowSpecInfo, ItemSpecInfo};
use crate::ItemGraph;
cfg_if::cfg_if! {
if #[cfg(all(feature = "item_interactions", feature = "item_state_example"))] {
use std::collections::{BTreeMap, BTreeSet};
use indexmap::IndexMap;
use ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/flow_rt/src/item_graph.rs | crate/flow_rt/src/item_graph.rs | use std::{
fmt::Debug,
ops::{Deref, DerefMut},
};
use peace_data::fn_graph::FnGraph;
use peace_resource_rt::states::{States, StatesSerde};
use peace_rt_model::ItemBoxed;
/// Graph of all [`Item`]s, `FnGraph<ItemBoxed<E>>` newtype.
///
/// [`Item`]: peace_cfg::Item
#[derive(Debug)]
pub struct ItemGraph<E>(FnGr... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/flow_rt/src/item_graph_builder.rs | crate/flow_rt/src/item_graph_builder.rs | use std::ops::{Deref, DerefMut};
use peace_data::fn_graph::FnGraphBuilder;
use peace_rt_model::ItemBoxed;
use crate::ItemGraph;
/// Builder for an [`ItemGraph`], `FnGraphBuilder<ItemBoxed<E>>`
/// newtype.
#[derive(Debug)]
pub struct ItemGraphBuilder<E>(FnGraphBuilder<ItemBoxed<E>>);
impl<E> ItemGraphBuilder<E> {
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/diff/src/lib.rs | crate/diff/src/lib.rs | //! Types to represent changed values.
pub use crate::{changeable::Changeable, equality::Equality, maybe_eq::MaybeEq, tracked::Tracked};
mod changeable;
mod equality;
mod maybe_eq;
mod tracked;
| rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/diff/src/tracked.rs | crate/diff/src/tracked.rs | use std::hash::{Hash, Hasher};
use serde::{Deserialize, Serialize};
use crate::{Equality, MaybeEq};
/// Tracks the known state of a value.
#[derive(Clone, Debug, Deserialize, Serialize, Eq)]
pub enum Tracked<T> {
/// Value does not exist.
None,
/// Value exists, but its content is not known.
Unknown,... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/diff/src/changeable.rs | crate/diff/src/changeable.rs | use serde::{Deserialize, Serialize};
use crate::{Equality, MaybeEq, Tracked};
/// Represents a changeable value.
///
/// The `from` or `to` values are [`Tracked`] values, so the following cases
/// mean the value is unchanged:
///
/// * Both values are [`Tracked::None`]
/// * Both values are [`Tracked::Known`]`(t)`, ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/diff/src/maybe_eq.rs | crate/diff/src/maybe_eq.rs | use std::{
collections::{BTreeMap, BTreeSet, HashMap, HashSet, LinkedList, VecDeque},
ops::ControlFlow,
};
use crate::Equality;
/// Types that may be equal.
///
/// This trait and [`Equality`] represent when two values are known to exist,
/// but their content is not known.
pub trait MaybeEq<Rhs = Self>
where... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/diff/src/equality.rs | crate/diff/src/equality.rs | use std::{cmp::Ordering, fmt};
/// Represents whether a value is equal to another.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub enum Equality {
/// Values are not equal.
NotEqual,
/// Values are equal.
Equal,
/// Cannot determine equality of values.
///
/// This is when either or ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_native/src/workspace.rs | crate/rt_model_native/src/workspace.rs | //! Types that store information about the directories that a command runs in.
//!
//! In the Peace framework, a command is run with the following contextual
//! information:
//!
//! * The [`Workspace`] of a project that the command is built for.
//! * A [`Profile`] (or namespace) for that project.
//! * A workflow tha... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_native/src/lib.rs | crate/rt_model_native/src/lib.rs | #![cfg_attr(coverage_nightly, feature(coverage_attribute))]
//! Runtime data types for the peace automation framework (native).
//!
//! Consumers should depend on the `peace_rt_model` crate, which re-exports
//! same-named types, depending on whether a native or WASM target is used.
// Re-exports
pub use tokio_util::... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_native/src/storage.rs | crate/rt_model_native/src/storage.rs | use std::{fmt::Debug, hash::Hash, io::Write, path::Path, sync::Mutex};
use peace_resource_rt::type_reg::{
common::UnknownEntriesSome,
untagged::{DataTypeWrapper, TypeMapOpt, TypeReg},
};
use peace_rt_model_core::{Error, NativeError};
use serde::{de::DeserializeOwned, Serialize};
use tokio::{
fs::File,
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_native/src/workspace_spec.rs | crate/rt_model_native/src/workspace_spec.rs | use std::{ffi::OsString, path::PathBuf};
/// Describes how to discover the workspace directory.
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum WorkspaceSpec {
/// Use the exe working directory as the workspace directory.
///
/// The working directory is the directory that the user ran the program in.
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_native/src/workspace_initializer.rs | crate/rt_model_native/src/workspace_initializer.rs | use std::{fmt::Debug, hash::Hash, path::Path};
use futures::{stream, StreamExt, TryStreamExt};
use peace_resource_rt::{
internal::{FlowParamsFile, ProfileParamsFile, WorkspaceParamsFile},
type_reg::untagged::{TypeMapOpt, TypeReg},
};
use peace_rt_model_core::{
params::{FlowParams, ProfileParams, Workspace... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model_native/src/workspace_dirs_builder.rs | crate/rt_model_native/src/workspace_dirs_builder.rs | use std::{
ffi::OsStr,
path::{Path, PathBuf},
};
use peace_core::AppName;
use peace_resource_rt::{
internal::WorkspaceDirs,
paths::{PeaceAppDir, PeaceDir},
};
use peace_rt_model_core::{Error, NativeError};
use crate::WorkspaceSpec;
/// Computes paths of well-known directories for a workspace.
#[deriv... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/lib.rs | crate/rt/src/lib.rs | //! Runtime logic for the peace automation library.
/// Maximum number of items to execute simultaneously.
///
/// 64 is arbitrarily chosen, as there is not enough data to inform us what a
/// suitable number is.
pub const BUFFERED_FUTURES_MAX: usize = 64;
pub mod cmd_blocks;
pub mod cmds;
| rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks.rs | crate/rt/src/cmd_blocks.rs | //! Blocks of logic that run one [`Item`] function
//!
//! [`Item`]: peace_cfg::Item
pub use self::{
apply_exec_cmd_block::ApplyExecCmdBlock,
apply_state_sync_check_cmd_block::ApplyStateSyncCheckCmdBlock,
diff_cmd_block::{DiffCmdBlock, DiffCmdBlockStatesTsExt},
states_clean_insertion_cmd_block::StatesC... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds.rs | crate/rt/src/cmds.rs | //! Commands to provide user-facing output.
//!
//! Commands directly underneath this module write to the `OutputWrite`
//! provided in the [`CmdContext`]. Commands at this level are intended to
//! provide the information requested to the user; errors should inform the user
//! of any steps that have to be run before ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/states_current_read_cmd.rs | crate/rt/src/cmds/states_current_read_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_cmd_rt::{CmdBlockWrapper, CmdExecution};
use peace_resource_rt::states::StatesCurrentStored;
use crate::cmd_blocks::StatesCurrentReadCmdBlock;
/// Reads [`StatesCurrentStored`]s from s... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/states_goal_read_cmd.rs | crate/rt/src/cmds/states_goal_read_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_cmd_rt::{CmdBlockWrapper, CmdExecution};
use peace_resource_rt::states::StatesGoalStored;
use crate::cmd_blocks::StatesGoalReadCmdBlock;
/// Reads [`StatesGoalStored`]s from storage.
#... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/apply_stored_state_sync.rs | crate/rt/src/cmds/apply_stored_state_sync.rs | /// Whether to block an apply operation if stored states are not in sync with
/// discovered state.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ApplyStoredStateSync {
/// Neither stored current states nor stored goal state need to be in sync
/// with the discovered current states and goal state.
N... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/clean_cmd.rs | crate/rt/src/cmds/clean_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_cmd_rt::{CmdBlockWrapper, CmdExecution};
use peace_flow_rt::ItemGraph;
use peace_resource_rt::{
paths::{FlowDir, StatesCurrentFile},
resources::ts::SetUp,
s... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/states_current_stored_display_cmd.rs | crate/rt/src/cmds/states_current_stored_display_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_resource_rt::states::StatesCurrentStored;
use peace_rt_model_core::output::OutputWrite;
use crate::cmds::StatesCurrentReadCmd;
/// Displays [`StatesCurrent`]s from storage.
#[derive(De... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/states_goal_display_cmd.rs | crate/rt/src/cmds/states_goal_display_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_resource_rt::states::StatesGoalStored;
use peace_rt_model_core::output::OutputWrite;
use crate::cmds::StatesGoalReadCmd;
/// Displays [`StatesGoal`]s from storage.
#[derive(Debug)]
pu... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/ensure_cmd.rs | crate/rt/src/cmds/ensure_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_cmd_rt::{CmdBlockWrapper, CmdExecution};
use peace_flow_rt::ItemGraph;
use peace_resource_rt::{
paths::{FlowDir, StatesCurrentFile, StatesGoalFile},
resources::... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/states_discover_cmd.rs | crate/rt/src/cmds/states_discover_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsf, CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_cmd_rt::{CmdBlockWrapper, CmdExecution};
use peace_flow_rt::ItemGraph;
use peace_resource_rt::{
paths::{FlowDir, StatesCurrentFile, StatesGoalFile},
resources::... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/diff_cmd.rs | crate/rt/src/cmds/diff_cmd.rs | use std::{fmt::Debug, marker::PhantomData};
use futures::{StreamExt, TryStreamExt};
use peace_cmd_ctx::{CmdCtxMpsf, CmdCtxMpsfFields, CmdCtxSpsf, CmdCtxTypes};
use peace_cmd_model::CmdOutcome;
use peace_cmd_rt::{CmdBlockWrapper, CmdExecution, CmdExecutionBuilder};
use peace_flow_rt::Flow;
use peace_item_model::ItemId;... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/diff_cmd/diff_info_spec.rs | crate/rt/src/cmds/diff_cmd/diff_info_spec.rs | use peace_profile_model::Profile;
use crate::cmds::diff_cmd::DiffStateSpec;
/// Indicates where to source information to diff.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct DiffInfoSpec<'diff> {
/// Profile to read parameters and state from.
pub profile: &'diff Profile,
/// Whether to read store... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmds/diff_cmd/diff_state_spec.rs | crate/rt/src/cmds/diff_cmd/diff_state_spec.rs | /// Whether to read stored state or discover state.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum DiffStateSpec {
/// Discovers the current state upon execution.
Current,
/// Reads previously stored current state.
CurrentStored,
/// Discovers the goal state upon execution.
Goal,
/// ... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/states_discover_cmd_block.rs | crate/rt/src/cmd_blocks/states_discover_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use futures::join;
use peace_cfg::FnCtx;
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_item_model::ItemId;
use peace_params::MappingFnReg;
use peace_resource_rt::{
internal::... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/apply_exec_cmd_block.rs | crate/rt/src/cmd_blocks/apply_exec_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use fn_graph::{StreamOpts, StreamOutcome};
use futures::join;
use peace_cfg::{ApplyCheck, FnCtx};
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_item_model::ItemId;
use peace_para... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/apply_state_sync_check_cmd_block.rs | crate/rt/src/cmd_blocks/apply_state_sync_check_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_resource_rt::{
resources::ts::SetUp,
states::{States, StatesCurrent, StatesCurrentStored, StatesGoal, StatesGoalStored},
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/diff_cmd_block.rs | crate/rt/src/cmd_blocks/diff_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use fn_graph::{StreamOpts, StreamOutcome};
use futures::FutureExt;
use interruptible::InterruptibilityState;
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_flow_rt::Flow;
use peac... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/states_goal_read_cmd_block.rs | crate/rt/src/cmd_blocks/states_goal_read_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_flow_model::FlowId;
use peace_item_model::ItemId;
use peace_resource_rt::{
paths::{FlowDir, StatesGoalFile},
resources::ts::... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/states_current_read_cmd_block.rs | crate/rt/src/cmd_blocks/states_current_read_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_flow_model::FlowId;
use peace_item_model::ItemId;
use peace_resource_rt::{
paths::{FlowDir, StatesCurrentFile},
resources::t... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt/src/cmd_blocks/states_clean_insertion_cmd_block.rs | crate/rt/src/cmd_blocks/states_clean_insertion_cmd_block.rs | use std::{fmt::Debug, marker::PhantomData};
use futures::FutureExt;
use peace_cmd_ctx::{CmdCtxSpsfFields, CmdCtxTypes};
use peace_cmd_model::CmdBlockOutcome;
use peace_cmd_rt::{async_trait, CmdBlock};
use peace_resource_rt::{
internal::StatesMut,
resources::ts::SetUp,
states::{ts::Clean, StatesClean},
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes.rs | crate/rt_model/src/outcomes.rs | //! Type that represent outcomes of execution.
//!
//! Types in this module must all be serializable, as this allows execution
//! outcomes to be redisplayed without re-executing commands.
pub use self::{
item_apply::ItemApply, item_apply_boxed::ItemApplyBoxed, item_apply_partial::ItemApplyPartial,
item_apply_... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/in_memory_text_output.rs | crate/rt_model/src/in_memory_text_output.rs | use peace_fmt::Presentable;
use peace_rt_model_core::{async_trait, output::OutputWrite};
use crate::Error;
cfg_if::cfg_if! {
if #[cfg(feature = "output_progress")] {
use peace_item_interaction_model::ItemLocationState;
use peace_item_model::ItemId;
use peace_progress_model::{
C... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/lib.rs | crate/rt_model/src/lib.rs | #![cfg_attr(coverage_nightly, feature(coverage_attribute))]
//! Runtime data types for the peace automation framework.
//!
//! This crate re-exports types from `peace_rt_model_native` or
//! `peace_rt_model_web` depending on the compilation target architecture.
// Re-exports
pub use peace_data::fn_graph::{self, FnRef... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/item_rt.rs | crate/rt_model/src/item_rt.rs | use std::{any::Any, fmt::Debug};
use dyn_clone::DynClone;
use peace_cfg::{async_trait, FnCtx};
use peace_data::fn_graph::{DataAccess, DataAccessDyn};
use peace_item_model::ItemId;
use peace_params::{MappingFnReg, ParamsSpecs};
use peace_resource_rt::{
resources::ts::{Empty, SetUp},
states::StatesCurrent,
t... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/params_specs_serializer.rs | crate/rt_model/src/params_specs_serializer.rs | use std::marker::PhantomData;
use peace_flow_model::FlowId;
use peace_params::ParamsSpecs;
use peace_profile_model::Profile;
use peace_resource_rt::{paths::ParamsSpecsFile, type_reg::untagged::TypeMapOpt};
use peace_rt_model_core::ParamsSpecsDeserializeError;
use crate::{Error, ParamsSpecsTypeReg, Storage};
/// Read... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/item_boxed.rs | crate/rt_model/src/item_boxed.rs | //! Contains type-erased `Item` types and traits.
//!
//! Types and traits in this module don't reference any associated types from
//! the `Item`, allowing them to be passed around as common types at compile
//! time.
//!
//! For the logic that is aware of the type parameters, see the
//! [`item_wrapper`] module and [... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/states_type_reg.rs | crate/rt_model/src/states_type_reg.rs | use std::ops::{Deref, DerefMut};
use peace_item_model::ItemId;
use peace_resource_rt::type_reg::untagged::{BoxDtDisplay, TypeReg};
/// Type registry for each item's `State`.
///
/// This is used to deserialize [`StatesCurrentFile`] and [`StatesGoalFile`].
///
/// Note: [`ItemParamsTypeReg`] uses [`BoxDt`], whereas th... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/item_wrapper.rs | crate/rt_model/src/item_wrapper.rs | use std::{
any::Any,
fmt::{self, Debug},
marker::PhantomData,
ops::{Deref, DerefMut},
};
use peace_cfg::{async_trait, ApplyCheck, FnCtx, Item};
use peace_data::{
fn_graph::{DataAccess, DataAccessDyn, TypeIds},
marker::{ApplyDry, Clean, Current, Goal},
Data,
};
use peace_item_model::ItemId;
... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | true |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/params_specs_type_reg.rs | crate/rt_model/src/params_specs_type_reg.rs | use std::ops::{Deref, DerefMut};
use peace_item_model::ItemId;
use peace_params::AnySpecRtBoxed;
use peace_resource_rt::type_reg::untagged::TypeReg;
/// Type registry for each item's [`Params`]'s Spec.
///
/// This is used to deserialize [`ParamsSpecsFile`].
///
/// Note: [`StatesTypeReg`] uses [`BoxDtDisplay`], wher... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes/item_apply_partial_rt.rs | crate/rt_model/src/outcomes/item_apply_partial_rt.rs | use peace_cfg::ApplyCheck;
use peace_resource_rt::type_reg::untagged::{BoxDtDisplay, DataType};
/// Trait to allow inspecting a type-erased `ItemApplyPartial`.
pub trait ItemApplyPartialRt: DataType {
/// Returns `state_current_stored` as type-erased data.
fn state_current_stored(&self) -> Option<BoxDtDisplay>... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes/item_apply_boxed.rs | crate/rt_model/src/outcomes/item_apply_boxed.rs | use crate::outcomes::{ItemApply, ItemApplyRt};
/// A boxed `ItemApply`.
#[derive(Clone, serde::Serialize)]
pub struct ItemApplyBoxed(pub(crate) Box<dyn ItemApplyRt>);
impl<State, StateDiff> From<ItemApply<State, StateDiff>> for ItemApplyBoxed
where
ItemApply<State, StateDiff>: ItemApplyRt,
{
/// Returns an `I... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes/item_apply_rt.rs | crate/rt_model/src/outcomes/item_apply_rt.rs | use peace_cfg::ApplyCheck;
use peace_resource_rt::type_reg::untagged::{BoxDtDisplay, DataType};
/// Trait to allow inspecting a type-erased `ItemApply`.
pub trait ItemApplyRt: DataType {
/// Returns `state_current_stored` as type-erased data.
fn state_current_stored(&self) -> Option<BoxDtDisplay>;
/// Ret... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes/item_apply.rs | crate/rt_model/src/outcomes/item_apply.rs | use std::fmt::{Debug, Display};
use peace_cfg::ApplyCheck;
use peace_resource_rt::type_reg::untagged::{BoxDtDisplay, DataType};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use crate::outcomes::{ItemApplyPartial, ItemApplyRt};
/// Information about an item during an `ApplyCmd` execution.
///
/// This i... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes/item_apply_partial_boxed.rs | crate/rt_model/src/outcomes/item_apply_partial_boxed.rs | use crate::outcomes::{ItemApplyPartial, ItemApplyPartialRt};
/// A boxed `ItemApplyPartial`.
#[derive(Clone, serde::Serialize)]
pub struct ItemApplyPartialBoxed(pub(crate) Box<dyn ItemApplyPartialRt>);
impl<State, StateDiff> From<ItemApplyPartial<State, StateDiff>> for ItemApplyPartialBoxed
where
ItemApplyPartial... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/rt_model/src/outcomes/item_apply_partial.rs | crate/rt_model/src/outcomes/item_apply_partial.rs | use std::fmt::{Debug, Display};
use peace_cfg::ApplyCheck;
use peace_resource_rt::type_reg::untagged::{BoxDtDisplay, DataType};
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use crate::outcomes::ItemApplyPartialRt;
/// Information about an item during an `ApplyCmd` execution.
///
/// # Design Note
///
/... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_ctx/src/cmd_ctx_mpsf_params.rs | crate/cmd_ctx/src/cmd_ctx_mpsf_params.rs | use std::{collections::BTreeMap, fmt::Debug, future::IntoFuture};
use futures::{future::LocalBoxFuture, FutureExt};
use interruptible::Interruptibility;
use own::{OwnedOrMutRef, OwnedOrRef};
use peace_flow_rt::Flow;
use peace_item_model::ItemId;
use peace_params::{ParamsSpecs, ParamsValue};
use peace_profile_model::Pr... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_ctx/src/cmd_ctx_npnf_params.rs | crate/cmd_ctx/src/cmd_ctx_npnf_params.rs | use std::future::IntoFuture;
use futures::{future::LocalBoxFuture, FutureExt};
use interruptible::Interruptibility;
use own::{OwnedOrMutRef, OwnedOrRef};
use peace_params::ParamsValue;
use peace_resource_rt::internal::WorkspaceParamsFile;
use peace_rt_model::{params::WorkspaceParamsOpt, Workspace, WorkspaceInitializer... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_ctx/src/cmd_ctx_spnf.rs | crate/cmd_ctx/src/cmd_ctx_spnf.rs | use interruptible::InterruptibilityState;
use own::{OwnedOrMutRef, OwnedOrRef};
use peace_params::MappingFnReg;
use peace_profile_model::Profile;
use peace_resource_rt::paths::{
PeaceAppDir, PeaceDir, ProfileDir, ProfileHistoryDir, WorkspaceDir,
};
use peace_rt_model::Workspace;
use peace_rt_model_core::params::{Pr... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_ctx/src/lib.rs | crate/cmd_ctx/src/lib.rs | #![cfg_attr(coverage_nightly, feature(coverage_attribute))]
//! Information such as which profile or flow a command is run for for the Peace
//! framework.
// Re-exports
pub use interruptible;
pub use type_reg;
pub use crate::{
cmd_ctx_mpnf::{CmdCtxMpnf, CmdCtxMpnfFields},
cmd_ctx_mpnf_params::{CmdCtxMpnfPar... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
azriel91/peace | https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/crate/cmd_ctx/src/cmd_ctx_types.rs | crate/cmd_ctx/src/cmd_ctx_types.rs | use std::fmt::Debug;
use peace_params::{MappingFns, ParamsKey};
use peace_rt_model::output::OutputWrite;
/// Trait so that a single type parameter can be used in `CmdCtx` and `Scopes`.
///
/// The associated types linked to the concrete type can all be queried through
/// this trait.
pub trait CmdCtxTypes: Debug + Un... | rust | Apache-2.0 | 5e2c43f2c0b18672749d0902d2285c703e24de97 | 2026-01-04T20:22:52.922300Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.