Benign repos download unavailable

node_native_binding.rs

Contains an unbounded block loopimports turbopack_core::target::Platform
SHA-256f1afc504844c344f6ace7ba7ff09b663b5e34d6e84c82868beb2cda65098bf1c

Evidence

imports turbopack_core::target::Platform lines 1–28
1use std::sync::LazyLock;
2
3use anyhow::{Result, bail};
4use regex::Regex;
5use serde::Deserialize;
6use turbo_rcstr::{RcStr, rcstr};
7use turbo_tasks::{FxIndexMap, ResolvedVc, TryFlatJoinIterExt, TryJoinIterExt, ValueToString, Vc};
8use turbo_tasks_fs::{
9 DirectoryContent, DirectoryEntry, FileContent, FileSystemEntryType, FileSystemPath,
10 json::parse_json_rope_with_source_context,
11};
12use turbopack_core::{
13 asset::{Asset, AssetContent},
14 file_source::FileSource,
15 raw_module::RawModule,
16 reference::ModuleReference,
17 resolve::{ModuleResolveResult, RequestKey, ResolveResultItem, pattern::Pattern, resolve_raw},
18 source::Source,
19 target::{CompileTarget, Platform},
20};
21
⋯7 lines
English function-word token "for" lines 35–38
35:43… )]
36#[value_to_string("node-gyp in {context_dir} with {config_file_pattern} for {compile_target}")]
37pub struct NodePreGypConfigReference {
38 pub context_dir: FileSystemPath, …
Rust replaces matched string content lines 111–116
111:48… ry.napi_versions.iter() {
112 let native_binding_path = NAPI_VERSION_TEMPLATE.replace(
113 node_pre_gyp_config.binary.module_path.as_str(),
114 version.to_string(),
115 );
116 …
English function-word token "the" lines 131–135
131:24… ;
132
133 // Find all dynamic libraries in the given directory.
134 if let DirectoryContent::Entries(entries) = &*config_file_dir
135 …
Contains an unbounded block loop lines 391–398
391:31… ,
392 ]
393 });
394 let mut root_context_dir = context_dir;
395 loop {
396 let resolved = resolve_raw(
397 root_context_dir.clone(),
398 Pattern::new(Pattern::Constant(rcstr!("pa …

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.