silverwolf-x/project / crates /next-core /src /instrumentation.rs
silverwolf-x's picture
download
raw
540 Bytes
use anyhow::Result;
use turbo_rcstr::RcStr;
use turbo_tasks::Vc;
#[turbo_tasks::function]
pub async fn instrumentation_files(page_extensions: Vc<Vec<RcStr>>) -> Result<Vc<Vec<RcStr>>> {
let extensions = page_extensions.await?;
let files = ["instrumentation.", "src/instrumentation."]
.into_iter()
.flat_map(|f| {
extensions
.iter()
.map(move |ext| String::from(f) + ext.as_str())
.map(RcStr::from)
})
.collect();
Ok(Vc::cell(files))
}

Xet Storage Details

Size:
540 Bytes
·
Xet hash:
9106ced2959ac37b041263b1543f479aead5a87f4d5d9c72c149ad84f43af7d9

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.