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
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/channel.rs
cli/tools/test/channel.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::fmt::Display; use std::future::Future; use std::future::poll_fn; use std::io::Write; use std::pin::Pin; use std::sync::atomic::AtomicUsize; use std::sync::atomic::Ordering; use std::task::Poll; use std::task::ready; use std::time::Duration; use deno_core:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/fmt.rs
cli/tools/test/fmt.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::ops::AddAssign; use console_static_text::ansi::strip_ansi_codes; use deno_core::stats::RuntimeActivity; use deno_core::stats::RuntimeActivityDiff; use deno_core::stats::RuntimeActivityTrace; use deno_core::stats::RuntimeActivityType;...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/tap.rs
cli/tools/test/reporters/tap.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_core::serde_json::json; use deno_core::serde_json::{self}; use serde::Serialize; use super::common; use super::fmt::to_relative_path_or_remote_url; use super::*; const VERSION_HEADER: &str = "TAP version 14"; /// A test reporter for the Test Anything Pr...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/junit.rs
cli/tools/test/reporters/junit.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::VecDeque; use console_static_text::ansi::strip_ansi_codes; use deno_core::anyhow::Context; use super::fmt::to_relative_path_or_remote_url; use super::*; pub struct JunitTestReporter { cwd: Url, output_path: String, // Stores TestCases...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/mod.rs
cli/tools/test/reporters/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use super::*; mod common; mod compound; mod dot; mod junit; mod pretty; mod tap; pub use compound::CompoundTestReporter; pub use dot::DotTestReporter; pub use junit::JunitTestReporter; pub use pretty::PrettyTestReporter; pub use tap::TapTestReporter; pub trait T...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/dot.rs
cli/tools/test/reporters/dot.rs
// Copyright 2018-2025 the Deno authors. MIT license. use super::common; use super::fmt::to_relative_path_or_remote_url; use super::*; pub struct DotTestReporter { n: usize, width: usize, cwd: Url, summary: TestSummary, failure_format_options: TestFailureFormatOptions, } #[allow(clippy::print_stdout)] impl...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/common.rs
cli/tools/test/reporters/common.rs
// Copyright 2018-2025 the Deno authors. MIT license. use super::fmt::format_test_error; use super::fmt::to_relative_path_or_remote_url; use super::*; pub(super) fn format_test_step_ancestry( desc: &TestStepDescription, tests: &IndexMap<usize, TestDescription>, test_steps: &IndexMap<usize, TestStepDescription>,...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/compound.rs
cli/tools/test/reporters/compound.rs
// Copyright 2018-2025 the Deno authors. MIT license. use super::*; pub struct CompoundTestReporter { test_reporters: Vec<Box<dyn TestReporter>>, } impl CompoundTestReporter { pub fn new(test_reporters: Vec<Box<dyn TestReporter>>) -> Self { Self { test_reporters } } } impl TestReporter for CompoundTestRep...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/test/reporters/pretty.rs
cli/tools/test/reporters/pretty.rs
// Copyright 2018-2025 the Deno authors. MIT license. use super::common; use super::fmt::to_relative_path_or_remote_url; use super::*; pub struct PrettyTestReporter { parallel: bool, echo_output: bool, in_new_line: bool, phase: &'static str, filter: bool, repl: bool, scope_test_id: Option<usize>, cwd:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/cache_deps.rs
cli/tools/pm/cache_deps.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::collections::HashSet; use std::sync::Arc; use deno_core::error::AnyError; use deno_core::futures::StreamExt; use deno_core::futures::stream::FuturesUnordered; use deno_core::url::Url; use deno_graph::Js...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/audit.rs
cli/tools/pm/audit.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::Write; use std::sync::Arc; use deno_core::anyhow::Context; use deno_core::error::AnyError; use deno_core::futures; use deno_core::futures::FutureExt; use deno_core::futures::StreamExt; use deno_core::serde_json; use deno_npm::resolution::NpmResolution...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/approve_scripts.rs
cli/tools/pm/approve_scripts.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use std::fmt::Write as _; use std::sync::Arc; use console_static_text::TextItem; use deno_config::deno_json::AllowScriptsConfig; use deno_config::deno_json::AllowScriptsValueConfig; use deno_core::anyhow; use deno_core::anyhow::Conte...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/deps.rs
cli/tools/pm/deps.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::path::PathBuf; use std::sync::Arc; use deno_ast::ModuleSpecifier; use deno_config::deno_json::ConfigFile; use deno_config::deno_json::ConfigFileRc; use deno_config::workspace::Workspace; use deno_config...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/mod.rs
cli/tools/pm/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_cache_dir::GlobalOrLocalHttpCache; use deno_cache_dir::file_fetcher::CacheSetting; use deno_core::anyhow::Context; use deno_core::anyhow::bail; use deno_core::error::AnyError; use deno_core:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/interactive_picker.rs
cli/tools/pm/interactive_picker.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use std::io; use console_static_text::TextItem; use crossterm::ExecutableCommand; use crossterm::cursor; use crossterm::event::KeyCode; use crossterm::event::KeyEvent; use crossterm::event::KeyEventKind; use crossterm::event::KeyModi...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/outdated/mod.rs
cli/tools/pm/outdated/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod interactive; use std::collections::HashSet; use std::sync::Arc; use deno_cache_dir::GlobalOrLocalHttpCache; use deno_cache_dir::file_fetcher::CacheSetting; use deno_core::anyhow::bail; use deno_core::error::AnyError; use deno_semver::StackString; use deno_sem...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/pm/outdated/interactive.rs
cli/tools/pm/outdated/interactive.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::collections::HashSet; use std::fmt::Write as _; use console_static_text::TextItem; use deno_core::anyhow; use deno_semver::Version; use deno_semver::VersionReq; use deno_terminal::colors; use crate::tools::pm::deps::DepId; ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/bundle/html.rs
cli/tools/bundle/html.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::cell::Cell; use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use capacity_builder::StringBuilder; use deno_core::anyhow; use deno_core::error::AnyError; use lol_html::element; use lol_html::html_content::Co...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/bundle/externals.rs
cli/tools/bundle/externals.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashSet; use std::path::Path; #[derive(Debug)] struct Pattern { prefix: String, suffix: String, } impl Pattern { fn new_with_wildcard(pattern: &str, wildcard_index: usize) -> Self { let prefix = pattern[..wildc...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/bundle/transform.rs
cli/tools/bundle/transform.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_ast::swc; use deno_ast::swc::ast::Bool; use deno_ast::swc::ecma_visit::VisitMut; use deno_ast::swc::ecma_visit::VisitMutWith; pub struct BundleImportMetaMainTransform { is_entrypoint: bool, } impl BundleImportMetaMainTransform { pub fn new(is_entrypo...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/bundle/esbuild.rs
cli/tools/bundle/esbuild.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::PathBuf; use std::sync::Arc; use deno_core::anyhow; use deno_core::anyhow::Context; use deno_core::error::AnyError; use deno_npm::npm_rc::ResolvedNpmRc; use deno_npm::registry::NpmRegistryApi; use deno_npm_cache::TarballCache; use deno_resolver::wor...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/bundle/mod.rs
cli/tools/bundle/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod esbuild; mod externals; mod html; mod provider; mod transform; use std::borrow::Cow; use std::cell::RefCell; use std::ops::Deref; use std::path::Path; use std::path::PathBuf; use std::rc::Rc; use std::sync::Arc; use std::sync::LazyLock; use std::time::Duration...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/bundle/provider.rs
cli/tools/bundle/provider.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::Path; use std::sync::Arc; use deno_bundle_runtime as rt_bundle; use deno_bundle_runtime::BundleOptions as RtBundleOptions; use deno_bundle_runtime::BundleProvider; use deno_core::error::AnyError; use crate::args::DenoSubcommand; use crate::args::Fl...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/run/hmr.rs
cli/tools/run/hmr.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::path::PathBuf; use std::sync::Arc; use std::sync::atomic::AtomicI32; use deno_core::LocalInspectorSession; use deno_core::error::CoreError; use deno_core::parking_lot::Mutex; use deno_core::serde_json::json; use deno_core::s...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/run/mod.rs
cli/tools/run/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::Read; use std::path::PathBuf; use std::sync::Arc; use deno_cache_dir::file_fetcher::File; use deno_config::deno_json::NodeModulesDirMode; use deno_core::anyhow::Context; use deno_core::error::AnyError; use deno_core::futures::FutureExt; use deno_lib::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/init/mod.rs
cli/tools/init/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::ffi::OsString; use std::io::IsTerminal; use std::io::Write; use std::path::Path; use chrono::NaiveDate; use color_print::cformat; use color_print::cstr; use deno_config::deno_json::NodeModulesDirMode; use deno_core::anyhow::Context; use deno_core::error::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/installer/mod.rs
cli/tools/installer/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use std::env; use std::fs; use std::fs::File; use std::io; use std::io::Write; #[cfg(not(windows))] use std::os::unix::fs::PermissionsExt; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use std::sync::atomic::AtomicU...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tools/installer/bin_name_resolver.rs
cli/tools/installer/bin_name_resolver.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::PathBuf; use deno_core::error::AnyError; use deno_core::url::Url; use deno_npm::registry::NpmRegistryApi; use deno_npm::resolution::NpmPackageVersionResolver; use deno_npm::resolution::NpmVersionResolver; use deno_semver::npm::NpmPackageReqReference...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/bench/lsp.rs
cli/bench/lsp.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::path::Path; use std::str::FromStr; use std::time::Duration; use deno_core::serde::Deserialize; use deno_core::serde_json; use deno_core::serde_json::Value; use deno_core::serde_json::json; use lsp_types::Uri; use test_util::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/bench/main.rs
cli/bench/main.rs
// Copyright 2018-2025 the Deno authors. MIT license. #![allow(clippy::print_stdout)] #![allow(clippy::print_stderr)] use std::collections::HashMap; use std::convert::From; use std::env; use std::fs; use std::path::Path; use std::path::PathBuf; use std::process::Command; use std::process::Stdio; use std::time::System...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/bench/lsp_bench_standalone.rs
cli/bench/lsp_bench_standalone.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_bench_util::bencher::Bencher; use deno_bench_util::bencher::benchmark_group; use deno_bench_util::bencher::benchmark_main; use deno_core::serde_json::Value; use deno_core::serde_json::json; use test_util::lsp::LspClientBuilder; // Intended to match the be...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/node.rs
cli/cache/node.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_core::error::AnyError; use deno_core::serde_json; use deno_resolver::cjs::analyzer::DenoCjsAnalysis; use deno_resolver::cjs::analyzer::NodeAnalysisCache; use deno_resolver::cjs::analyzer::NodeAnalysisCacheSourceHash; use deno_runtime::deno_webstorage::rusq...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/caches.rs
cli/cache/caches.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::PathBuf; use std::sync::Arc; use deno_lib::version::DENO_VERSION_INFO; use once_cell::sync::OnceCell; use super::cache_db::CacheDB; use super::cache_db::CacheDBConfiguration; use super::check::TYPE_CHECK_CACHE_DB; use super::code_cache::CODE_CACHE_...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/fast_check.rs
cli/cache/fast_check.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_core::error::AnyError; use deno_graph::fast_check::FastCheckCacheItem; use deno_graph::fast_check::FastCheckCacheKey; use deno_runtime::deno_webstorage::rusqlite::params; use super::cache_db::CacheDB; use super::cache_db::CacheDBConfiguration; use super::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/check.rs
cli/cache/check.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_ast::ModuleSpecifier; use deno_core::error::AnyError; use deno_runtime::deno_webstorage::rusqlite::params; use super::cache_db::CacheDB; use super::cache_db::CacheDBConfiguration; use super::cache_db::CacheDBHash; use super::cache_db::CacheFailure; pub s...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/code_cache.rs
cli/cache/code_cache.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_ast::ModuleSpecifier; use deno_core::error::AnyError; use deno_runtime::code_cache; use deno_runtime::deno_webstorage::rusqlite::params; use super::cache_db::CacheDB; use super::cache_db::CacheDBConfiguration; use super::cache_db::CacheDBHash; use super::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/module_info.rs
cli/cache/module_info.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::sync::Arc; use deno_ast::MediaType; use deno_ast::ModuleSpecifier; use deno_core::error::AnyError; use deno_core::serde_json; use deno_error::JsErrorBox; use deno_graph::analysis::ModuleInfo; use deno_graph::ast::ParserModuleAnalyzer; use deno_resolver::c...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/mod.rs
cli/cache/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod cache_db; mod caches; mod check; mod code_cache; mod fast_check; mod incremental; mod module_info; mod node; pub type DenoDir = deno_resolver::cache::DenoDir<CliSys>; pub type DenoDirProvider = deno_resolver::cache::DenoDirProvider<CliSys>; pub use cache_db::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/cache_db.rs
cli/cache/cache_db.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::IsTerminal; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_core::error::AnyError; use deno_core::parking_lot::Mutex; use deno_core::parking_lot::MutexGuard; use deno_core::unsync::spawn_blocking; use deno_lib::util::hash::Fa...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/cache/incremental.rs
cli/cache/incremental.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use deno_core::error::AnyError; use deno_core::parking_lot::Mutex; use deno_core::unsync::JoinHandle; use deno_core::unsync::spawn; use deno_runtime::deno_webstorage::rusqlite::params; us...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/node.rs
cli/rt/node.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::sync::Arc; use deno_core::url::Url; use deno_error::JsErrorBox; use deno_lib::standalone::binary::CjsExportAnalysisEntry; use deno_media_type::MediaType; use deno_resolver::loader::NpmModuleLoader; use deno_resolver::npm::DenoInNpmPa...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/file_system.rs
cli/rt/file_system.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::cell::RefCell; use std::collections::HashSet; use std::io::ErrorKind; use std::io::SeekFrom; use std::ops::Range; use std::path::Path; use std::path::PathBuf; #[cfg(unix)] use std::process::Stdio as StdStdio; use std::rc::Rc; use std:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/code_cache.rs
cli/rt/code_cache.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::io::BufReader; use std::io::BufWriter; use std::io::Read; use std::io::Write; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_core::anyhow::bail; use deno_core::error::AnyError; use deno_core::parki...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/build.rs
cli/rt/build.rs
// Copyright 2018-2025 the Deno authors. MIT license. fn main() { // Skip building from docs.rs. if std::env::var_os("DOCS_RS").is_some() { return; } deno_runtime::deno_napi::print_linker_flags("denort"); deno_runtime::deno_webgpu::print_linker_flags("denort"); }
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/run.rs
cli/rt/run.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use std::rc::Rc; use std::sync::Arc; use std::sync::OnceLock; use deno_cache_dir::npm::NpmCacheDir; use deno_config::workspace::ResolverWorkspaceJsrPackage; use deno_core::FastString; use deno_core...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/integration_tests_runner.rs
cli/rt/integration_tests_runner.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub fn main() { // this file exists to cause the executable to be built when running cargo test }
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/binary.rs
cli/rt/binary.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::ffi::OsString; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_core::FastString; use deno_core::ModuleCodeBytes; use deno_core::ModuleSourceCode; use de...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/rt/main.rs
cli/rt/main.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::env; use std::sync::Arc; use deno_core::error::AnyError; use deno_lib::util::result::js_error_downcast_ref; use deno_lib::version::otel_runtime_config; use deno_runtime::deno_telemetry::OtelConfig; use deno_runtime::fmt_errors::forma...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/lib.rs
cli/lib/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub mod args; pub mod loader; pub mod npm; pub mod shared; pub mod standalone; pub mod sys; pub mod util; pub mod version; pub mod worker;
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/version.rs
cli/lib/version.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use deno_runtime::deno_telemetry::OtelRuntimeConfig; use crate::shared::ReleaseChannel; pub fn otel_runtime_config() -> OtelRuntimeConfig { OtelRuntimeConfig { runtime_name: Cow::Borrowed("deno"), runtime_version: Cow::Borrowed(cr...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/args.rs
cli/lib/args.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::BufReader; use std::io::Cursor; use std::path::PathBuf; use base64::prelude::BASE64_STANDARD; use base64::prelude::Engine; use deno_npm::resolution::PackageIdNotFoundError; use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot; use deno_npm_i...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/build.rs
cli/lib/build.rs
// Copyright 2018-2025 the Deno authors. MIT license. fn main() { // todo(dsherret): remove this after Deno 242.0 is published and then // align the version of this crate with Deno then. We need to wait because // there was previously a deno_lib 2.4.0 published (https://crates.io/crates/deno_lib/versions) let ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/worker.rs
cli/lib/worker.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::Path; use std::path::PathBuf; use std::rc::Rc; use std::sync::Arc; use deno_bundle_runtime::BundleProvider; use deno_core::error::JsError; use deno_node::NodeRequireLoaderRc; use deno_node::ops::ipc::ChildIpcSerialization; use deno_path_util::url_fr...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/loader.rs
cli/lib/loader.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use deno_media_type::MediaType; use deno_resolver::loader::LoadedModuleSource; use deno_runtime::deno_core::FastString; use deno_runtime::deno_core::ModuleSourceCode; use deno_runtime::deno_core::ModuleType; use deno_runtime::deno_core::Reque...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/shared.rs
cli/lib/shared.rs
// Copyright 2018-2025 the Deno authors. MIT license. /// This module is shared between build script and the binaries. Use it sparsely. use thiserror::Error; #[derive(Debug, Error)] #[error("Unrecognized release channel: {0}")] pub struct UnrecognizedReleaseChannelError(pub String); #[derive(Debug, Clone, Copy, Part...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/sys.rs
cli/lib/sys.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_node::ExtNodeSys; use sys_traits::FsCanonicalize; use sys_traits::FsCreateDirAll; use sys_traits::FsMetadata; use sys_traits::FsOpen; use sys_traits::FsRead; use sys_traits::FsReadDir; use sys_traits::FsRemoveFile; use sys_traits::FsRename; use sys_traits:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/logger.rs
cli/lib/util/logger.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::Write; use std::sync::Arc; use std::sync::OnceLock; use arc_swap::ArcSwap; use deno_runtime::deno_telemetry; use deno_runtime::deno_telemetry::OtelConfig; use deno_runtime::deno_telemetry::OtelConsoleConfig; struct CliLoggerInner { otel_console_con...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/v8.rs
cli/lib/util/v8.rs
// Copyright 2018-2025 the Deno authors. MIT license. #[inline(always)] pub fn construct_v8_flags( default_v8_flags: &[String], v8_flags: &[String], env_v8_flags: Vec<String>, ) -> Vec<String> { std::iter::once("UNUSED_BUT_NECESSARY_ARG0".to_owned()) .chain(default_v8_flags.iter().cloned()) .chain(env_...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/text_encoding.rs
cli/lib/util/text_encoding.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::sync::Arc; pub fn is_valid_utf8(bytes: &[u8]) -> bool { matches!(String::from_utf8_lossy(bytes), Cow::Borrowed(_)) } // todo(https://github.com/rust-lang/rust/issues/129436): remove once stabilized #[inline(always)] pub fn from_ut...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/checksum.rs
cli/lib/util/checksum.rs
// Copyright 2018-2025 the Deno authors. MIT license. use aws_lc_rs::digest::Context; use aws_lc_rs::digest::SHA256; /// Generate a SHA256 checksum of a slice of byte-slice-like things. pub fn r#gen(v: &[impl AsRef<[u8]>]) -> String { let mut ctx = Context::new(&SHA256); for src in v { ctx.update(src.as_ref()...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/result.rs
cli/lib/util/result.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::convert::Infallible; use deno_error::JsErrorBox; use deno_error::JsErrorClass; use deno_resolver::DenoResolveError; use deno_resolver::DenoResolveErrorKind; use deno_runtime::deno_core::error::AnyError; use deno_runtime::deno_core::error::CoreError; use d...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/mod.rs
cli/lib/util/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub mod checksum; pub mod hash; pub mod logger; pub mod result; pub mod text_encoding; pub mod v8;
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/util/hash.rs
cli/lib/util/hash.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::hash::Hasher; /// A very fast insecure hasher that uses the xxHash algorithm. #[derive(Debug, Clone)] pub struct FastInsecureHasher(twox_hash::XxHash64); impl FastInsecureHasher { pub fn new_without_deno_version() -> Self { Self(Default::default())...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/npm/permission_checker.rs
cli/lib/npm/permission_checker.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use deno_error::JsErrorBox; use deno_runtime::deno_permissions::OpenAccessKind; use deno_runtime::deno_permissions::PermissionsContainer; use ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/npm/mod.rs
cli/lib/npm/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod permission_checker; use std::sync::Arc; use deno_npm_installer::process_state::NpmProcessState; use deno_npm_installer::process_state::NpmProcessStateKind; use deno_resolver::npm::ByonmNpmResolver; use deno_resolver::npm::ManagedNpmResolverRc; use deno_resolv...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/standalone/mod.rs
cli/lib/standalone/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub mod binary; pub mod virtual_fs;
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/standalone/binary.rs
cli/lib/standalone/binary.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeMap; use deno_media_type::MediaType; use deno_resolver::workspace::PackageJsonDepResolution; use deno_runtime::deno_permissions::PermissionsOptions; use deno_runtime::deno_telemetry::OtelConfig; use deno_semver::Ver...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/lib/standalone/virtual_fs.rs
cli/lib/standalone/virtual_fs.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::cmp::Ordering; use std::collections::HashMap; use std::collections::HashSet; use std::collections::VecDeque; use std::collections::hash_map::Entry; use std::fmt; use std::io::Read; use std::path::Path; use std::path::PathBuf; use std:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/snapshot/lib.rs
cli/snapshot/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. #[cfg(not(feature = "disable"))] pub static CLI_SNAPSHOT: Option<&[u8]> = Some(include_bytes!(concat!( env!("OUT_DIR"), "/CLI_SNAPSHOT.bin" ))); #[cfg(feature = "disable")] pub static CLI_SNAPSHOT: Option<&[u8]> = None; mod shared; pub use shared::TS_VERSION;...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/snapshot/build.rs
cli/snapshot/build.rs
// Copyright 2018-2025 the Deno authors. MIT license. #[cfg(not(feature = "disable"))] mod shared; fn main() { #[cfg(not(feature = "disable"))] { let o = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); let cli_snapshot_path = o.join("CLI_SNAPSHOT.bin"); create_cli_snapshot(cli_snapshot...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/snapshot/shared.rs
cli/snapshot/shared.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub static TS_VERSION: &str = "5.9.2";
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tsc/diagnostics.rs
cli/tsc/diagnostics.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::error::Error; use std::fmt; use deno_ast::ModuleSpecifier; use deno_core::serde::Deserialize; use deno_core::serde::Deserializer; use deno_core::serde::Serialize; use deno_core::serde::Serializer; use deno_core::sourcemap::SourceMap; use deno_graph::Modul...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tsc/go.rs
cli/tsc/go.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod setup; mod tsgo_version; use std::borrow::Cow; use std::cell::RefCell; use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_ast::MediaType; use deno_ast::ModuleSpecifier; use deno_config::deno_json::Compiler...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tsc/js.rs
cli/tsc/js.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::path::PathBuf; use std::rc::Rc; use std::sync::Arc; use deno_core::FastString; use deno_core::JsRuntime; use deno_core::ModuleSpecifier; use deno_core::OpState; use deno_core::RuntimeOptions; use deno_c...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tsc/mod.rs
cli/tsc/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. // mod go; mod js; use std::collections::HashMap; use std::collections::HashSet; use std::fmt; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use std::sync::LazyLock; use std::sync::OnceLock; use deno_ast::MediaType; use d...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tsc/go/setup.rs
cli/tsc/go/setup.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use std::sync::OnceLock; use deno_core::error::AnyError; use deno_error::JsErrorBox; use sha2::Digest; use super::tsgo_version; use crate::cache::DenoDir; use crate::http_util::HttpClientProvider; ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/tsc/go/tsgo_version.rs
cli/tsc/go/tsgo_version.rs
// Copyright 2018-2025 the Deno authors. MIT license. // This file is auto-generated by tools/update_tsgo.ts // DO NOT EDIT THIS FILE MANUALLY pub struct Hashes { pub windows_x64: &'static str, pub macos_x64: &'static str, pub macos_arm64: &'static str, pub linux_x64: &'static str, pub linux_arm64: &'static...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/standalone/mod.rs
cli/standalone/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub mod binary; mod virtual_fs;
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/standalone/binary.rs
cli/standalone/binary.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::cell::Cell; use std::collections::HashMap; use std::collections::VecDeque; use std::env; use std::ffi::OsString; use std::fs; use std::fs::File; use std::path::Component; use std::path::Path; use std::path::PathBuf; use capacity_buil...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/standalone/virtual_fs.rs
cli/standalone/virtual_fs.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashSet; use std::path::PathBuf; use deno_lib::standalone::virtual_fs::BuiltVfs; use deno_lib::standalone::virtual_fs::DENO_COMPILE_GLOBAL_NODE_MODULES_DIR_NAME; use deno_lib::standalone::virtual_fs::OffsetWithLength; us...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/ops/bench.rs
cli/ops/bench.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::sync::atomic::AtomicUsize; use std::sync::atomic::Ordering; use deno_core::ModuleSpecifier; use deno_core::OpState; use deno_core::op2; use deno_core::v8; use deno_error::JsErrorBox; use deno_runtime::deno_permissions::ChildPermissionsArg; use deno_runtim...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/ops/lint.rs
cli/ops/lint.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_ast::MediaType; use deno_ast::ModuleSpecifier; use deno_ast::ParseDiagnostic; use deno_ast::SourceRange; use deno_ast::SourceTextInfo; use deno_ast::SourceTextProvider; use deno_core::OpState; use deno_core::op2; use deno_lint::diagnostic::LintDiagnostic; ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/ops/deploy.rs
cli/ops/deploy.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_core::op2; use deno_error::JsErrorBox; use crate::tools::deploy::get_token_entry; deno_core::extension!( deno_deploy, ops = [ op_deploy_token_get, op_deploy_token_set, op_deploy_token_delete, ], ); #[op2] #[string] pub fn op_deploy_tok...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/ops/testing.rs
cli/ops/testing.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::sync::atomic::AtomicUsize; use std::sync::atomic::Ordering; use deno_core::ModuleSpecifier; use deno_core::OpState; use deno_core::op2; use deno_core::v8; use deno_error::JsErrorBox; use deno_runtime::deno_permissions::ChildPermissionsArg; use deno_runtim...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/ops/mod.rs
cli/ops/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub mod bench; pub mod deploy; pub mod jupyter; pub mod lint; pub mod testing;
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/ops/jupyter.rs
cli/ops/jupyter.rs
// Copyright 2018-2025 the Deno authors. MIT license. // NOTE(bartlomieju): unfortunately it appears that clippy is broken // and can't allow a single line ignore for `await_holding_lock`. #![allow(clippy::await_holding_lock)] use std::cell::RefCell; use std::rc::Rc; use std::sync::Arc; use deno_core::OpState; use d...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/args/flags.rs
cli/args/flags.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashSet; use std::env; use std::ffi::OsString; use std::net::SocketAddr; use std::num::NonZeroU8; use std::num::NonZeroU32; use std::num::NonZeroUsize; use std::path::Path; use std::path::PathBuf; use std::str::FromStr; u...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/args/mod.rs
cli/args/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod flags; mod flags_net; use std::borrow::Cow; use std::collections::HashMap; use std::env; use std::net::SocketAddr; use std::num::NonZeroUsize; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_ast::MediaType; use deno_ast::ModuleSpecif...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/cli/args/flags_net.rs
cli/args/flags_net.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::net::IpAddr; use std::str::FromStr; use deno_core::url::Url; use deno_runtime::deno_permissions::NetDescriptor; #[derive(Debug, PartialEq, Eq)] pub struct ParsePortError(String); #[derive(Debug, PartialEq, Eq)] pub struct BarePort(u16); impl FromStr fo...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/bench_util/lib.rs
bench_util/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod js_runtime; mod profiling; pub use bencher; pub use js_runtime::*; pub use profiling::*; // Exports bench_or_profile! macro
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/bench_util/profiling.rs
bench_util/profiling.rs
// Copyright 2018-2025 the Deno authors. MIT license. use bencher::DynBenchFn; use bencher::StaticBenchFn; use bencher::TestDescAndFn; use bencher::TestOpts; pub fn is_profiling() -> bool { std::env::var("PROFILING").is_ok() } #[macro_export] // Tweaked and copied from https://github.com/bluss/bencher/blob/master/m...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/bench_util/js_runtime.rs
bench_util/js_runtime.rs
// Copyright 2018-2025 the Deno authors. MIT license. use bencher::Bencher; use deno_core::Extension; use deno_core::JsRuntime; use deno_core::PollEventLoopOptions; use deno_core::RuntimeOptions; use deno_core::v8; use crate::profiling::is_profiling; pub fn create_js_runtime(setup: impl FnOnce() -> Vec<Extension>) ->...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/bench_util/benches/utf8.rs
bench_util/benches/utf8.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_bench_util::BenchOptions; use deno_bench_util::bench_js_sync_with; use deno_bench_util::bench_or_profile; use deno_bench_util::bencher::Bencher; use deno_bench_util::bencher::benchmark_group; use deno_core::Extension; fn setup() -> Vec<Extension> { deno...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/maybe_sync/lib.rs
libs/maybe_sync/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub use inner::*; #[cfg(feature = "sync")] mod inner { #![allow(clippy::disallowed_types)] pub use core::marker::Send as MaybeSend; pub use core::marker::Sync as MaybeSync; pub use std::sync::Arc as MaybeArc; pub use std::sync::OnceLock as MaybeOnceLock...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/typescript_go_client/src/lib.rs
libs/typescript_go_client/src/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. // Partially extracted / adapted from https://github.com/microsoft/libsyncrpc // Copyright 2024 Microsoft Corporation. MIT license. pub mod connection; pub mod types; use std::collections::HashSet; use std::ffi::OsStr; use std::io::BufReader; use std::io::BufWrit...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/typescript_go_client/src/connection.rs
libs/typescript_go_client/src/connection.rs
// Copyright 2018-2025 the Deno authors. MIT license. // Partially extracted / adapted from https://github.com/microsoft/libsyncrpc // Copyright 2024 Microsoft Corporation. MIT license. use std::io::BufRead; use std::io::Result; use std::io::Write; use std::io::{self}; /// Lower-level wrapper around RPC-related mess...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/typescript_go_client/src/types.rs
libs/typescript_go_client/src/types.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::marker::PhantomData; use indexmap::IndexMap; #[derive(serde::Deserialize, Debug, Clone, Copy)] #[serde(rename_all = "camelCase")] pub struct Position { pub line: u64, pub character: u64, } #[derive(serde::Deserialize, Debug, Clone)] #[serde(rename_a...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/local.rs
libs/npm_installer/local.rs
// Copyright 2018-2025 the Deno authors. MIT license. //! Code for local node_modules resolution. use std::borrow::Cow; use std::cell::RefCell; use std::cmp::Ordering; use std::collections::BTreeMap; use std::collections::BTreeSet; use std::collections::HashMap; use std::collections::HashSet; use std::collections::ha...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/global.rs
libs/npm_installer/global.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_error::JsErrorBox; use deno_npm::NpmResolutionPackage; use deno_npm::NpmSystemInfo; use deno_npm_cache::NpmCache; use deno_npm_cache::NpmCacheHttpClient; use deno_npm_c...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/lib.rs
libs/npm_installer/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::PathBuf; use std::sync::Arc; use deno_error::JsErrorBox; use deno_npm::NpmSystemInfo; use deno_npm::registry::NpmPackageInfo; use deno_npm::registry::NpmRegistryPackageInfoLoadError; use deno_npm_cache::NpmCache; use deno_npm_c...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false