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/libs/npm_installer/package_json.rs
libs/npm_installer/package_json.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::PathBuf; use std::sync::Arc; use deno_config::workspace::Workspace; use deno_package_json::PackageJsonDepValue; use deno_package_json::PackageJsonDepValueParseError; use deno_package_json::PackageJsonDepWorkspaceReq; use deno_semver::StackString; us...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/lifecycle_scripts.rs
libs/npm_installer/lifecycle_scripts.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use anyhow::Error as AnyError; use deno_error::JsErrorBox; use deno_npm::NpmPackageExtraInfo; use deno_npm::NpmResolutionPackage; use deno_npm::resolution::NpmResolut...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/fs.rs
libs/npm_installer/fs.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::Error; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use sys_traits::FsCreateDirAll; use sys_traits::FsDirEntry; use sys_traits::FsSymlinkDir; #[sys_traits::auto_impl] pub trait CloneDirRecursiveSys: CopyDirRecursiveSys + s...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/resolution.rs
libs/npm_installer/resolution.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use std::sync::Arc; use capacity_builder::StringBuilder; use deno_error::JsErrorBox; use deno_lockfile::NpmPackageDependencyLockfileInfo; use deno_lockfile::NpmPackageLockfileInfo; use deno_n...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/flag.rs
libs/npm_installer/flag.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub use inner::LaxSingleProcessFsFlag; pub use inner::LaxSingleProcessFsFlagSys; #[cfg(not(target_arch = "wasm32"))] mod inner { use std::path::PathBuf; use std::sync::Arc; use std::time::Duration; use parking_lot::Mutex; use sys_traits::FsFileLock; u...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/bin_entries.rs
libs/npm_installer/bin_entries.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod windows_shim; use std::borrow::Cow; use std::collections::HashMap; use std::collections::HashSet; use std::collections::VecDeque; use std::path::Path; use std::path::PathBuf; use deno_npm::NpmPackageExtraInfo; use deno_npm::NpmPackageId; use deno_npm::NpmReso...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/rt.rs
libs/npm_installer/rt.rs
// Copyright 2018-2025 the Deno authors. MIT license. #[cfg(not(target_arch = "wasm32"))] use deno_unsync::JoinHandle; #[cfg(target_arch = "wasm32")] pub type JoinHandle<T> = std::future::Ready<Result<T, std::convert::Infallible>>; pub fn spawn_blocking< F: (FnOnce() -> R) + Send + 'static, R: Send + 'static, >...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/initializer.rs
libs/npm_installer/initializer.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::PathBuf; use std::sync::Arc; use deno_error::JsError; use deno_error::JsErrorBox; use deno_npm::resolution::NpmResolutionSnapshot; use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot; use deno_resolver::lockfile::LockfileLock; use deno_re...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/extra_info.rs
libs/npm_installer/extra_info.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::Path; use std::sync::Arc; use deno_error::JsErrorBox; use deno_npm::NpmPackageExtraInfo; use deno_npm::NpmResolutionPackage; use deno_npm::registry::NpmRegistryApi; use deno_resolver::workspace::WorkspaceNpmLinkPackagesRc; use deno_semver::package::...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/graph.rs
libs/npm_installer/graph.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::sync::Arc; use deno_error::JsErrorBox; use deno_graph::NpmLoadError; use deno_graph::NpmResolvePkgReqsResult; use deno_npm::resolution::NpmResolutionError; use deno_npm_cache::NpmCacheHttpClient; use deno_resolver::graph::FoundPackag...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/factory.rs
libs/npm_installer/factory.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::sync::Arc; use deno_npm::resolution::PackageIdNotFoundError; use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot; use deno_npm_cache::NpmCache; use deno_npm_cache::NpmCacheHttpClient; use deno_npm_cache::NpmCacheSetting; use deno_npm_cache::Reg...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/process_state.rs
libs/npm_installer/process_state.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::ffi::OsStr; use std::ffi::OsString; use std::io::ErrorKind; use std::io::Read; use std::io::Seek; use std::path::Path; use std::path::PathBuf; use deno_npm::resolution::ValidSerializedNpmResolutionSnapshot; use serde::Deserialize; use serde::Serialize; us...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_installer/bin_entries/windows_shim.rs
libs/npm_installer/bin_entries/windows_shim.rs
// Copyright 2018-2025 the Deno authors. MIT license. // Windows shim generation ported from https://github.com/npm/cmd-shim // Original code licensed under the ISC License: // // The ISC License // // Copyright (c) npm, Inc. and Contributors // // Permission to use, copy, modify, and/or distribute this software for a...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/lockfile.rs
libs/resolver/lockfile.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use std::path::PathBuf; use anyhow::Context; use anyhow::Error as AnyError; use capacity_builder::StringBuilder; use deno_config::workspace::Workspace; use deno_error::JsErrorBox; use deno_lockfile::Lockfile; use deno_lockfile::NpmPa...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npmrc.rs
libs/resolver/npmrc.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use boxed_error::Boxed; use deno_config::workspace::Workspace; use deno_npm::npm_rc::NpmRc; use deno_npm::npm_rc::ResolvedNpmRc; use sys_traits::EnvHomeDir; use sys_t...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/workspace.rs
libs/resolver/workspace.rs
// Copyright 2018-2025 the Deno authors. MIT license. // use super::UrlRc; use std::borrow::Cow; use std::collections::BTreeMap; use std::collections::HashMap; use std::fmt; use std::path::Path; use std::path::PathBuf; use deno_config::deno_json::ConfigFileError; use deno_config::workspace::ResolverWorkspaceJsrPacka...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/lib.rs
libs/resolver/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. #![deny(clippy::print_stderr)] #![deny(clippy::print_stdout)] use std::borrow::Cow; use std::path::PathBuf; use boxed_error::Boxed; use deno_cache_dir::npm::NpmCacheDir; use deno_error::JsError; use deno_package_json::PackageJsonDepValue; use deno_package_json::P...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/emit.rs
libs/resolver/emit.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::hash::Hash; use std::hash::Hasher; use anyhow::Error as AnyError; use deno_ast::EmittedSourceText; use deno_ast::ModuleKind; use deno_ast::ParsedSource; use deno_ast::SourceMapOption; use deno_ast::SourceRange; use deno_ast::SourceRanged; use deno_ast::So...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/import_map.rs
libs/resolver/import_map.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::PathBuf; use anyhow::Context; use deno_config::workspace::WorkspaceRc; #[derive(Debug, Clone)] pub struct ExternalImportMap { pub path: PathBuf, pub value: serde_json::Value, } #[allow(clippy::disallowed_types)] pub type WorkspaceExternalImpor...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/rt.rs
libs/resolver/rt.rs
// Copyright 2018-2025 the Deno authors. MIT license. #[cfg(not(target_arch = "wasm32"))] use deno_unsync::JoinHandle; #[cfg(target_arch = "wasm32")] pub type JoinHandle<T> = std::future::Ready<Result<T, std::convert::Infallible>>; pub fn spawn_blocking< F: (FnOnce() -> R) + Send + 'static, R: Send + 'static, ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/collections.rs
libs/resolver/collections.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::BTreeMap; use url::Url; #[allow(clippy::disallowed_types)] type UrlRc = deno_maybe_sync::MaybeArc<Url>; /// A map that stores values scoped to a specific directory /// on the file system. pub struct FolderScopedMap<TValue> { scoped: BTree...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/display.rs
libs/resolver/display.rs
// Copyright 2018-2025 the Deno authors. MIT license. //! It would be best to move these utilities out of this //! crate as this is not specific to resolution, but for //! the time being it's fine for this to live here. use std::fmt::Write as _; use deno_terminal::colors; use dissimilar::Chunk; use dissimilar::diff a...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/file_fetcher.rs
libs/resolver/file_fetcher.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashMap; use std::path::PathBuf; use boxed_error::Boxed; use deno_cache_dir::GlobalHttpCacheRc; use deno_cache_dir::GlobalHttpCacheSys; use deno_cache_dir::HttpCacheRc; use deno_cache_dir::file_fetcher::AuthTokens; use d...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/deno_json.rs
libs/resolver/deno_json.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeMap; use std::collections::BTreeSet; use std::collections::HashMap; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use std::rc::Rc; use deno_config::deno_json::CompilerOptions; use deno_config:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/graph.rs
libs/resolver/graph.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use boxed_error::Boxed; use deno_error::JsErrorClass; use deno_graph::JsrLoadError; use deno_graph::Module; use deno_graph::ModuleError; use deno_graph::ModuleErrorKind; use deno_graph::ModuleGraphError; use deno_graph::ModuleLoadError; use d...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/factory.rs
libs/resolver/factory.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use anyhow::bail; use boxed_error::Boxed; use deno_cache_dir::DenoDirResolutionError; use deno_cache_dir::GlobalHttpCacheRc; use deno_cache_dir::GlobalOrLocalHttpCache; use deno_cache_dir::LocalHtt...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/loader/module_loader.rs
libs/resolver/loader/module_loader.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use boxed_error::Boxed; use deno_ast::ModuleKind; use deno_graph::JsModule; use deno_graph::JsonModule; use deno_graph::ModuleGraph; use deno_graph::WasmModule; use deno_media_type::MediaType; use node_resolver::InNpmPackageChecker; use node_...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/loader/mod.rs
libs/resolver/loader/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod npm; #[cfg(all(feature = "graph", feature = "deno_ast"))] mod module_loader; use std::borrow::Cow; use std::collections::HashMap; use deno_cache_dir::file_fetcher::File; use deno_media_type::MediaType; #[cfg(all(feature = "graph", feature = "deno_ast"))] pub...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/loader/npm.rs
libs/resolver/loader/npm.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::PathBuf; use deno_media_type::MediaType; use node_resolver::InNpmPackageChecker; use node_resolver::IsBuiltInNodeModuleChecker; use node_resolver::NpmPackageFolderResolver; use node_resolver::analyze::CjsCodeAnalyzer; use node_...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cache/deno_dir.rs
libs/resolver/cache/deno_dir.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::env; use std::path::PathBuf; use deno_cache_dir::DenoDirResolutionError; use deno_cache_dir::ResolveDenoDirSys; use super::DiskCache; use super::DiskCacheSys; #[derive(Debug, Clone)] pub struct DenoDirOptions { pub maybe_custom_root: Option<PathBuf>, ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cache/emit.rs
libs/resolver/cache/emit.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::hash::Hash; use std::hash::Hasher; use std::path::PathBuf; use anyhow::Error as AnyError; use anyhow::anyhow; use deno_unsync::sync::AtomicFlag; use url::Url; use super::DiskCache; use super::DiskCacheSys; #[allow(clippy::disallowe...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cache/disk_cache.rs
libs/resolver/cache/disk_cache.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::ffi::OsStr; use std::path::Component; use std::path::Path; use std::path::PathBuf; use std::path::Prefix; use std::str; use deno_cache_dir::CACHE_PERM; use deno_cache_dir::url_to_filename; use deno_path_util::fs::atomic_write_file_with_retries; use sys_tr...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cache/parsed_source.rs
libs/resolver/cache/parsed_source.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_ast::ParsedSource; use deno_graph::ast::CapturingEsParser; use deno_graph::ast::DefaultEsParser; use deno_graph::ast::EsParser; use deno_graph::ast::ParsedSourceStore; use deno_media_type::MediaType; use url::Url; /// Lazily parses JS/TS sources from a `d...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cache/mod.rs
libs/resolver/cache/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod deno_dir; mod disk_cache; mod emit; #[cfg(feature = "deno_ast")] mod parsed_source; pub use deno_dir::DenoDir; pub use deno_dir::DenoDirOptions; pub use deno_dir::DenoDirProvider; pub use deno_dir::DenoDirProviderRc; pub use deno_dir::DenoDirSys; pub use disk_...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cjs/mod.rs
libs/resolver/cjs/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_maybe_sync::MaybeDashMap; use deno_media_type::MediaType; use node_resolver::InNpmPackageChecker; use node_resolver::PackageJsonResolverRc; use node_resolver::ResolutionMode; use node_resolver::errors::PackageJsonLoadError; use sys_traits::FsMetadata; use ...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cjs/analyzer/deno_ast.rs
libs/resolver/cjs/analyzer/deno_ast.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_ast::MediaType; use deno_ast::ParsedSource; use deno_error::JsErrorBox; use deno_graph::ast::ParsedSourceStore; use url::Url; use super::ModuleExportAnalyzer; use crate::cache::ParsedSourceCacheRc; pub struct DenoAstModuleExportAnalyzer { parsed_source...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/cjs/analyzer/mod.rs
libs/resolver/cjs/analyzer/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use deno_error::JsErrorBox; use deno_maybe_sync::MaybeSend; use deno_maybe_sync::MaybeSync; use deno_media_type::MediaType; use node_resolver::analyze::CjsAnalysis as ExtNodeCjsAnalysis; use node_resolver::analyze::CjsAnalysisExports; use nod...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/local.rs
libs/resolver/npm/local.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use deno_cache_dir::npm::mixed_case_package_name_decode; use deno_npm::NpmPackageCacheFolderId; use deno_semver::StackString; use deno_semver::package::PackageNv; #[inline] pub fn get_package_folder_id_folder_name( folder_id: &NpmPackageCa...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/byonm.rs
libs/resolver/npm/byonm.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use deno_package_json::PackageJson; use deno_package_json::PackageJsonDepValue; use deno_package_json::PackageJsonRc; use deno_path_util::url_to_file_path; use deno_semver::StackString; use deno_se...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/mod.rs
libs/resolver/npm/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::fmt::Debug; use std::path::Path; use std::path::PathBuf; use boxed_error::Boxed; use deno_error::JsError; use deno_maybe_sync::MaybeSend; use deno_maybe_sync::MaybeSync; use deno_maybe_sync::new_rc; use deno_semver::Version; use deno...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/managed/local.rs
libs/resolver/npm/managed/local.rs
// Copyright 2018-2025 the Deno authors. MIT license. //! Code for local node_modules resolution. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use deno_npm::NpmPackageCacheFolderId; use deno_npm::NpmPackageId; use deno_path_util::fs::canonicalize_path_maybe_not_exists; use deno_path_util::url_f...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/managed/global.rs
libs/resolver/npm/managed/global.rs
// Copyright 2018-2025 the Deno authors. MIT license. //! Code for global npm cache resolution. use std::borrow::Cow; use std::path::PathBuf; use deno_npm::NpmPackageCacheFolderId; use deno_npm::NpmPackageId; use deno_semver::StackString; use deno_semver::Version; use deno_semver::package::PackageNv; use node_resolv...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/managed/resolution.rs
libs/resolver/npm/managed/resolution.rs
// Copyright 2018-2025 the Deno authors. MIT license. use deno_npm::NpmPackageCacheFolderId; use deno_npm::NpmPackageId; use deno_npm::NpmResolutionPackage; use deno_npm::NpmSystemInfo; use deno_npm::resolution::NpmPackagesPartitioned; use deno_npm::resolution::NpmResolutionSnapshot; use deno_npm::resolution::PackageC...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/managed/mod.rs
libs/resolver/npm/managed/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. mod common; mod global; mod local; mod resolution; use std::path::Path; use std::path::PathBuf; use deno_npm::NpmPackageCacheFolderId; use deno_npm::NpmPackageId; use deno_npm::NpmSystemInfo; use deno_npm::resolution::PackageCacheFolderIdNotFoundError; use deno_n...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/resolver/npm/managed/common.rs
libs/resolver/npm/managed/common.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use deno_npm::NpmPackageCacheFolderId; use deno_npm::NpmPackageId; use deno_npm::resolution::NpmResolutionSnapshot; use deno_semver::Version; use deno_semver::package::PackageNv; use deno_semver::p...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/errors.rs
libs/node_resolver/errors.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::fmt::Write; use std::path::PathBuf; use boxed_error::Boxed; use deno_error::JsError; use deno_package_json::MissingPkgJsonNameError; use deno_path_util::UrlToFilePathError; use thiserror::Error; use url::Url; use crate::NodeResoluti...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/analyze.rs
libs/node_resolver/analyze.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeSet; use std::collections::HashSet; use std::path::Path; use std::path::PathBuf; use deno_error::JsErrorBox; use deno_path_util::url_to_file_path; use futures::FutureExt; use futures::StreamExt; use futures::future:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/path.rs
libs/node_resolver/path.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Component; use std::path::Path; use std::path::PathBuf; use url::Url; #[derive(Debug, Clone)] pub enum UrlOrPath { Url(Url), Path(PathBuf), } impl UrlOrPath { pub fn is_file(&self) -> bool { match self { UrlOr...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/lib.rs
libs/node_resolver/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. #![deny(clippy::print_stderr)] #![deny(clippy::print_stdout)] pub mod analyze; mod builtin_modules; pub mod cache; pub mod errors; mod npm; mod package_json; mod path; mod resolution; pub use builtin_modules::DENO_SUPPORTED_BUILTIN_NODE_MODULES; pub use builtin_m...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/package_json.rs
libs/node_resolver/package_json.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::cell::RefCell; use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use deno_package_json::PackageJson; use deno_package_json::PackageJsonCacheResult; use deno_package_json::PackageJsonRc; use sys_traits::FsMetadata; use sys_traits:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/builtin_modules.rs
libs/node_resolver/builtin_modules.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub trait IsBuiltInNodeModuleChecker: std::fmt::Debug { /// e.g. `is_builtin_node_module("assert")` fn is_builtin_node_module(&self, module_name: &str) -> bool; } /// An implementation of IsBuiltInNodeModuleChecker that uses /// the list of built-in node_modul...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/resolution.rs
libs/node_resolver/resolution.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeMap; use std::fmt::Debug; use std::io::BufReader; use std::io::Read; use std::path::Path; use std::path::PathBuf; use anyhow::Error as AnyError; use anyhow::bail; use deno_media_type::MediaType; use deno_package_jso...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/npm.rs
libs/node_resolver/npm.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::path::Path; use std::path::PathBuf; use deno_path_util::url_from_directory_path; use deno_path_util::url_from_file_path; use deno_semver::Version; use url::Url; use crate::errors; use crate::path::PathClean; use crate::path::UrlOrPathRef; pub trait NpmP...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/node_resolver/cache.rs
libs/node_resolver/cache.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::cell::RefCell; use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use sys_traits::BaseFsCanonicalize; use sys_traits::BaseFsOpen; use sys_traits::BaseFsRead; use sys_traits::BaseFsReadDir; use sys_traits::FileType; use sys_traits:...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/package_json/lib.rs
libs/package_json/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. #![deny(clippy::print_stderr)] #![deny(clippy::print_stdout)] #![deny(clippy::unused_async)] #![deny(clippy::unnecessary_wraps)] use std::collections::BTreeMap; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use boxed_error::Boxed; use deno_...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/lib.rs
libs/config/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. #![deny(clippy::print_stderr)] #![deny(clippy::print_stdout)] #![deny(clippy::unused_async)] #![deny(clippy::unnecessary_wraps)] #[cfg(feature = "deno_json")] pub mod deno_json; #[cfg(feature = "deno_json")] pub mod glob; #[cfg(feature = "deno_json")] pub mod impo...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/import_map.rs
libs/config/import_map.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use deno_semver::jsr::JsrDepPackageReq; use deno_semver::jsr::JsrPackageReqReference; use deno_semver::npm::NpmPackageReqReference; /// Attempts to resolve any `npm:` and `jsr:` dependencies /// in the import map's imports and scope...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/util.rs
libs/config/util.rs
// Copyright 2018-2025 the Deno authors. MIT license. use chrono::DateTime; use chrono::Duration; use thiserror::Error; use crate::deno_json::NewestDependencyDate; pub fn is_skippable_io_error(e: &std::io::Error) -> bool { use std::io::ErrorKind::*; // skip over invalid filenames on windows const ERROR_INVALI...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/deno_json/permissions.rs
libs/config/deno_json/permissions.rs
// Copyright 2018-2025 the Deno authors. MIT license. use indexmap::IndexMap; use serde::Deserialize; use url::Url; use super::UndefinedPermissionError; #[derive(Clone, Debug, PartialEq, Eq, Hash)] pub enum PermissionConfigValue { All, Some(Vec<String>), None, } impl<'de> serde::Deserialize<'de> for Permissio...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/deno_json/ts.rs
libs/config/deno_json/ts.rs
// Copyright 2018-2025 the Deno authors. MIT license. use serde::Deserialize; use serde::Serialize; use serde::Serializer; use serde_json::Value; #[derive(Debug, Default, Deserialize)] #[serde(rename_all = "camelCase")] pub struct RawJsxCompilerOptions { pub jsx: Option<String>, pub jsx_import_source: Option<Stri...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/deno_json/mod.rs
libs/config/deno_json/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeMap; use std::collections::HashSet; use std::path::Path; use std::path::PathBuf; use boxed_error::Boxed; use deno_error::JsError; use deno_path_util::url_from_file_path; use deno_path_util::url_parent; use deno_path...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/workspace/discovery.rs
libs/config/workspace/discovery.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeMap; use std::collections::HashMap; use std::collections::HashSet; use std::path::Path; use std::path::PathBuf; use deno_maybe_sync::new_rc; use deno_package_json::PackageJson; use deno_package_json::PackageJsonLoad...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/workspace/mod.rs
libs/config/workspace/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::BTreeMap; use std::collections::HashSet; use std::collections::VecDeque; use std::path::Path; use std::path::PathBuf; use std::sync::OnceLock; use boxed_error::Boxed; use deno_error::JsError; use deno_maybe_sync::new_rc;...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/glob/gitignore.rs
libs/config/glob/gitignore.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::path::Path; use std::path::PathBuf; use std::rc::Rc; use sys_traits::FsMetadata; use sys_traits::FsRead; /// Resolved gitignore for a directory. pub struct DirGitIgnores { current: Option<Rc<ignore::gitignore::Gitignore>>...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/glob/mod.rs
libs/config/glob/mod.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::path::Path; use std::path::PathBuf; use deno_error::JsError; use deno_path_util::normalize_path; use deno_path_util::url_to_file_path; use indexmap::IndexMap; use thiserror::Error; use url::Url; use crate::UrlToFilePathError; mod c...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
true
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/config/glob/collector.rs
libs/config/glob/collector.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::borrow::Cow; use std::collections::HashSet; use std::collections::VecDeque; use std::path::Path; use std::path::PathBuf; use deno_path_util::normalize_path; use sys_traits::FsDirEntry; use sys_traits::FsMetadata; use sys_traits::FsMetadataValue; use sys_t...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/fs_util.rs
libs/npm_cache/fs_util.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use std::time::Duration; use sys_traits::FsCreateDirAll; use sys_traits::FsDirEntry; use sys_traits::FsHardLink; use sys_traits::FsReadDir; use sys_traits::FsRemoveFile; use sys_traits::ThreadSle...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/lib.rs
libs/npm_cache/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use deno_cache_dir::file_fetcher::CacheSetting; use deno_cache_dir::npm::NpmCacheDir; use deno_error::JsErrorBox; use deno_npm::NpmPackageCacheF...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/remote.rs
libs/npm_cache/remote.rs
// Copyright 2018-2025 the Deno authors. MIT license. use base64::Engine; use base64::prelude::BASE64_STANDARD; use deno_npm::npm_rc::RegistryConfig; #[derive(Debug, thiserror::Error, deno_error::JsError)] pub enum AuthHeaderForNpmRegistryError { #[class(type)] #[error("Both the username and password must be prov...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/registry_info.rs
libs/npm_cache/registry_info.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::collections::HashSet; use std::sync::Arc; use async_trait::async_trait; use deno_error::JsErrorBox; use deno_npm::npm_rc::ResolvedNpmRc; use deno_npm::registry::NpmPackageInfo; use deno_npm::registry::NpmRegistryApi; use den...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/tarball.rs
libs/npm_cache/tarball.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashMap; use std::sync::Arc; use deno_error::JsErrorBox; use deno_npm::npm_rc::ResolvedNpmRc; use deno_npm::registry::NpmPackageVersionDistInfo; use deno_semver::package::PackageNv; use futures::FutureExt; use futures::future::LocalBoxFuture;...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/rt.rs
libs/npm_cache/rt.rs
// Copyright 2018-2025 the Deno authors. MIT license. #[cfg(not(target_arch = "wasm32"))] use deno_unsync::JoinHandle; #[cfg(target_arch = "wasm32")] pub type JoinHandle<T> = std::future::Ready<Result<T, std::convert::Infallible>>; pub fn spawn_blocking< F: (FnOnce() -> R) + Send + 'static, R: Send + 'static, >...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/npm_cache/tarball_extract.rs
libs/npm_cache/tarball_extract.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::collections::HashSet; use std::io::ErrorKind; use std::path::Path; use std::path::PathBuf; use base64::Engine; use base64::prelude::BASE64_STANDARD; use deno_npm::registry::NpmPackageVersionDistInfo; use deno_npm::registry::NpmPackageVersionDistInfoIntegr...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/crypto/lib.rs
libs/crypto/lib.rs
// Copyright 2018-2025 the Deno authors. MIT license. #![deny(clippy::print_stderr)] #![deny(clippy::print_stdout)] #![deny(clippy::unused_async)] #![deny(clippy::unnecessary_wraps)] mod ffi; pub mod spki;
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/crypto/ffi.rs
libs/crypto/ffi.rs
// Copyright 2018-2025 the Deno authors. MIT license. pub struct PKey(pub *mut aws_lc_sys::EVP_PKEY); impl PKey { pub fn from_ptr(ptr: *mut aws_lc_sys::EVP_PKEY) -> Option<Self> { if ptr.is_null() { None } else { Some(Self(ptr)) } } pub fn as_ptr(&self) -> *mut aws_lc_sys::EVP_PKEY { self.0 } } impl...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
denoland/deno
https://github.com/denoland/deno/blob/7222e85d435b977de1ab810db067b86f29e6444f/libs/crypto/spki.rs
libs/crypto/spki.rs
// Copyright 2018-2025 the Deno authors. MIT license. use std::ptr::NonNull; use crate::ffi::Bio; use crate::ffi::PKey; #[derive(Debug)] pub struct NetscapeSpki(*mut aws_lc_sys::NETSCAPE_SPKI); impl NetscapeSpki { /// Decodes a base64-encoded SPKI certificate. fn from_base64(data: &[u8]) -> Result<Self, &'stati...
rust
MIT
7222e85d435b977de1ab810db067b86f29e6444f
2026-01-04T15:31:58.521149Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-macros/src/select.rs
tokio-macros/src/select.rs
use proc_macro::{TokenStream, TokenTree}; use proc_macro2::Span; use quote::quote; use syn::{parse::Parser, Ident}; pub(crate) fn declare_output_enum(input: TokenStream) -> TokenStream { // passed in is: `(_ _ _)` with one `_` per branch let branches = match input.into_iter().next() { Some(TokenTree::G...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-macros/src/lib.rs
tokio-macros/src/lib.rs
#![allow(clippy::needless_doctest_main)] #![warn( missing_debug_implementations, missing_docs, rust_2018_idioms, unreachable_pub )] #![doc(test( no_crate_inject, attr(deny(warnings, rust_2018_idioms), allow(dead_code, unused_variables)) ))] //! Macros for use with Tokio mod entry; mod select; ...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-macros/src/entry.rs
tokio-macros/src/entry.rs
use proc_macro2::{Span, TokenStream, TokenTree}; use quote::{quote, quote_spanned, ToTokens}; use syn::parse::{Parse, ParseStream, Parser}; use syn::{braced, Attribute, Ident, Path, Signature, Visibility}; // syn::AttributeArgs does not implement syn::Parse type AttributeArgs = syn::punctuated::Punctuated<syn::Meta, s...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/src/lib.rs
tests-integration/src/lib.rs
#[cfg(feature = "full")] doc_comment::doc_comment!(include_str!("../../README.md"));
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/src/bin/test-process-signal.rs
tests-integration/src/bin/test-process-signal.rs
// https://github.com/tokio-rs/tokio/issues/3550 fn main() { for _ in 0..1000 { let rt = tokio::runtime::Builder::new_current_thread() .enable_all() .build() .unwrap(); drop(rt); } }
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/src/bin/test-mem.rs
tests-integration/src/bin/test-mem.rs
use std::future::poll_fn; fn main() { let rt = tokio::runtime::Builder::new_multi_thread() .worker_threads(1) .enable_io() .build() .unwrap(); rt.block_on(async { let listener = tokio::net::TcpListener::bind("0.0.0.0:0").await.unwrap(); tokio::spawn(async move {...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/src/bin/test-cat.rs
tests-integration/src/bin/test-cat.rs
//! A cat-like utility that can be used as a subprocess to test I/O //! stream communication. use std::io; use std::io::Write; fn main() { let stdin = io::stdin(); let mut stdout = io::stdout(); let mut line = String::new(); loop { line.clear(); stdin.read_line(&mut line).unwrap(); ...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/tests/macros_main.rs
tests-integration/tests/macros_main.rs
#![cfg(all(feature = "macros", feature = "rt-multi-thread"))] #[tokio::main] async fn basic_main() -> usize { 1 } #[tokio::main] async fn generic_fun<T: Default>() -> T { T::default() } #[tokio::main] async fn spawning() -> usize { let join = tokio::spawn(async { 1 }); join.await.unwrap() } #[cfg(to...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/tests/macros_select.rs
tests-integration/tests/macros_select.rs
#![cfg(feature = "macros")] use futures::channel::oneshot; use futures::executor::block_on; use std::thread; #[cfg_attr( not(feature = "rt-multi-thread"), ignore = "WASI: std::thread::spawn not supported" )] #[test] fn join_with_select() { block_on(async { let (tx1, mut rx1) = oneshot::channel::<i...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/tests/macros_pin.rs
tests-integration/tests/macros_pin.rs
use futures::executor::block_on; async fn my_async_fn() {} #[test] fn pin() { block_on(async { let future = my_async_fn(); tokio::pin!(future); (&mut future).await }); }
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/tests/rt_yield.rs
tests-integration/tests/rt_yield.rs
use tokio::sync::oneshot; use tokio::task; async fn spawn_send() { let (tx, rx) = oneshot::channel(); let task = tokio::spawn(async { for _ in 0..10 { task::yield_now().await; } tx.send("done").unwrap(); }); assert_eq!("done", rx.await.unwrap()); task.await.un...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tests-integration/tests/process_stdio.rs
tests-integration/tests/process_stdio.rs
#![warn(rust_2018_idioms)] #![cfg(all(feature = "full", not(target_os = "wasi"), not(miri)))] use tokio::io::{AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, BufReader}; use tokio::join; use tokio::process::{Child, Command}; use tokio_test::assert_ok; use futures::future::{self, FutureExt}; use std::env; use std::io; u...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/pending.rs
tokio-stream/src/pending.rs
use crate::Stream; use core::marker::PhantomData; use core::pin::Pin; use core::task::{Context, Poll}; /// Stream for the [`pending`](fn@pending) function. #[derive(Debug)] #[must_use = "streams do nothing unless polled"] pub struct Pending<T>(PhantomData<T>); impl<T> Unpin for Pending<T> {} unsafe impl<T> Send for ...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/wrappers.rs
tokio-stream/src/wrappers.rs
//! Wrappers for Tokio types that implement `Stream`. /// Error types for the wrappers. pub mod errors { cfg_sync! { pub use crate::wrappers::broadcast::BroadcastStreamRecvError; } } mod mpsc_bounded; pub use mpsc_bounded::ReceiverStream; mod mpsc_unbounded; pub use mpsc_unbounded::UnboundedReceiverS...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/lib.rs
tokio-stream/src/lib.rs
#![allow( clippy::cognitive_complexity, clippy::large_enum_variant, clippy::needless_doctest_main )] #![warn( missing_debug_implementations, missing_docs, rust_2018_idioms, unreachable_pub )] #![cfg_attr(docsrs, feature(doc_cfg))] #![doc(test( no_crate_inject, attr(deny(warnings, rus...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/stream_close.rs
tokio-stream/src/stream_close.rs
use crate::Stream; use pin_project_lite::pin_project; use std::pin::Pin; use std::task::{Context, Poll}; pin_project! { /// A `Stream` that wraps the values in an `Option`. /// /// Whenever the wrapped stream yields an item, this stream yields that item /// wrapped in `Some`. When the inner stream ends...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/empty.rs
tokio-stream/src/empty.rs
use crate::Stream; use core::marker::PhantomData; use core::pin::Pin; use core::task::{Context, Poll}; /// Stream for the [`empty`](fn@empty) function. #[derive(Debug)] #[must_use = "streams do nothing unless polled"] pub struct Empty<T>(PhantomData<T>); impl<T> Unpin for Empty<T> {} unsafe impl<T> Send for Empty<T>...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/stream_ext.rs
tokio-stream/src/stream_ext.rs
use core::future::Future; use futures_core::Stream; mod all; use all::AllFuture; mod any; use any::AnyFuture; mod chain; pub use chain::Chain; pub(crate) mod collect; use collect::{Collect, FromStream}; mod filter; pub use filter::Filter; mod filter_map; pub use filter_map::FilterMap; mod fold; use fold::FoldFut...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
true
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/stream_map.rs
tokio-stream/src/stream_map.rs
use crate::Stream; use std::borrow::Borrow; use std::future::poll_fn; use std::hash::Hash; use std::pin::Pin; use std::task::{ready, Context, Poll}; /// Combine many streams into one, indexing each source stream with a unique /// key. /// /// `StreamMap` is similar to [`StreamExt::merge`] in that it combines source /...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/macros.rs
tokio-stream/src/macros.rs
macro_rules! cfg_fs { ($($item:item)*) => { $( #[cfg(feature = "fs")] #[cfg_attr(docsrs, doc(cfg(feature = "fs")))] $item )* } } macro_rules! cfg_io_util { ($($item:item)*) => { $( #[cfg(feature = "io-util")] #[cfg_attr(doc...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/once.rs
tokio-stream/src/once.rs
use crate::{Iter, Stream}; use core::option; use core::pin::Pin; use core::task::{Context, Poll}; /// Stream for the [`once`](fn@once) function. #[derive(Debug)] #[must_use = "streams do nothing unless polled"] pub struct Once<T> { iter: Iter<option::IntoIter<T>>, } impl<I> Unpin for Once<I> {} /// Creates a st...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/iter.rs
tokio-stream/src/iter.rs
use crate::Stream; use core::pin::Pin; use core::task::{Context, Poll}; /// Stream for the [`iter`](fn@iter) function. #[derive(Debug)] #[must_use = "streams do nothing unless polled"] pub struct Iter<I> { iter: I, yield_amt: usize, } impl<I> Unpin for Iter<I> {} /// Converts an `Iterator` into a `Stream` w...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/stream_ext/merge.rs
tokio-stream/src/stream_ext/merge.rs
use crate::stream_ext::Fuse; use crate::Stream; use core::pin::Pin; use core::task::{Context, Poll}; use pin_project_lite::pin_project; pin_project! { /// Stream returned by the [`merge`](super::StreamExt::merge) method. pub struct Merge<T, U> { #[pin] a: Fuse<T>, #[pin] b: Fus...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false
tokio-rs/tokio
https://github.com/tokio-rs/tokio/blob/41d1877689f8669902b003a6affce60bdfeb3025/tokio-stream/src/stream_ext/fold.rs
tokio-stream/src/stream_ext/fold.rs
use crate::Stream; use core::future::Future; use core::marker::PhantomPinned; use core::pin::Pin; use core::task::{ready, Context, Poll}; use pin_project_lite::pin_project; pin_project! { /// Future returned by the [`fold`](super::StreamExt::fold) method. #[derive(Debug)] #[must_use = "futures do nothing ...
rust
MIT
41d1877689f8669902b003a6affce60bdfeb3025
2026-01-04T15:33:40.250594Z
false