Benign rust 2,507 installs Download

oj_graph 0.2.3

“Module graph and HMR boundary propagation”

Package under two months oldRelease published within seven days
SHA-256f2b6ebe6e25a4c30beaa93897ed5a38f07812fc588ca970536c034957657a024

Evidence

Absolute container application root path model.rs · lines 12–28
12:28… ng away from the truth.
13
14use std::collections::{BTreeMap, BTreeSet};
15use std::path::PathBuf;
16
17use oj_graph::{HmrDecision, ModuleGraph};
18use proptest::prelude::*;
19
20const MODULES: u8 = 8;
21
22fn path(slot: u8) -> PathBuf {
23 PathBuf::from(format!("/src/m{slot}.tsx"))
24}
25
26#[derive(Clone, Debug)]
27enum Op {
28 /// `set_imports`: the dev server re-links a module after compiling it.
#[test] attribute model.rs · lines 156–161
156:7… st! {
157 #![proptest_config(ProptestConfig::with_cases(400))]
158
159 #[test]
160 fn graph_matches_the_model(ops in proptest::collection::vec(op_strategy(), 1..40)) {
161 let mut graph = ModuleGraph::n …
Script file under a container app root adverse.rs · lines 101–107
101:5… let mut g = ModuleGraph::new();
102 let shared = PathBuf::from("/src/shared.ts");
103 for i in 0..20_000 {
104 g.add_import(&p(i), &shared);
105 g.set_self_accepting(&p(i), true);
106 }
107 let HmrD …
imports std::collections::HashMap lib.rs · lines 1–10
1// SPDX-License-Identifier: MIT
2// Copyright (c) 2026 Raphael Amorim
3
4use std::collections::{HashMap, HashSet};
5use std::path::{Path, PathBuf};
6
7#[derive(Debug, Default)]
8pub struct ModuleNode {
9 pub importers: HashSet<PathBuf>,
10 pub imports: …
imports super::* lib.rs · lines 475–488
⋯4 lines
479}
480
481#[cfg(test)]
482mod tests {
483 use super::*;
484
485 #[test]
486 fn stamp_update_marks_the_chain_up_to_the_boundary() {
487 // main -> App (boundary) -> hooks -> utils
488 let mut …

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.