Skip to content

Commit 4a97544

Browse files
committed
Add public_libs_diff to the ExecutorInspector
1 parent a01d3d9 commit 4a97544

File tree

6 files changed

+337
-21
lines changed

6 files changed

+337
-21
lines changed

executor/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,24 @@ impl<'a> Executor<'a> {
198198
pub struct ExecutorInspector<'e> {
199199
/// Actions list from compute phase.
200200
pub actions: Option<Cell>,
201+
/// A set of changes of the public libraries dict.
202+
///
203+
/// NOTE: The order is the same as the actions order so
204+
/// it can contain duplicates and must be folded before use.
205+
pub public_libs_diff: Vec<PublicLibraryChange>,
201206
/// Compute phase exit code.
202207
pub exit_code: Option<i32>,
203208
/// Debug output target.
204209
pub debug: Option<&'e mut dyn std::fmt::Write>,
205210
}
206211

212+
/// Public library diff operation.
213+
#[derive(Debug, Clone, PartialEq, Eq)]
214+
pub enum PublicLibraryChange {
215+
Add(Cell),
216+
Remove(HashBytes),
217+
}
218+
207219
/// Shared state for executor phases.
208220
pub struct ExecutorState<'a> {
209221
pub params: &'a ExecutorParams,

0 commit comments

Comments
 (0)