Skip to content

refactor(fs): remove rayon dependency#34956

Open
nathanwhitbot wants to merge 6 commits into
denoland:mainfrom
nathanwhitbot:codex/aged-75f9ae2d-6d7
Open

refactor(fs): remove rayon dependency#34956
nathanwhitbot wants to merge 6 commits into
denoland:mainfrom
nathanwhitbot:codex/aged-75f9ae2d-6d7

Conversation

@nathanwhitbot
Copy link
Copy Markdown
Contributor

@nathanwhitbot nathanwhitbot commented Jun 6, 2026

Summary

  • Removes the direct rayon dependency from deno_fs while preserving parallel recursive-copy work with a standard-library worker queue.
  • Drops the rayon, rayon-core, and crossbeam-deque runtime graph path from the deno normal dependency tree where applicable.
  • Preserves the existing recursive copy behavior, metadata lookup, recursive call flow, and per-entry error context.

Validation

  • cargo fmt --check
  • cargo test -p deno_fs
  • cargo tree -p deno --edges normal --target x86_64-unknown-linux-gnu --prefix none
  • CARGO_TARGET_DIR=<scratch>/target-before cargo build --bin deno --target x86_64-unknown-linux-gnu
  • CARGO_TARGET_DIR=<scratch>/target-after cargo build --bin deno --target x86_64-unknown-linux-gnu
  • Compared dependency graph/count and debug binary size before and after on the same target, verifying the debug binary did not increase.

Comment thread ext/fs/std_fs.rs Outdated
),
)
})
entries.into_iter().try_for_each(|file_name| {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto, this appears to not use parallelizm anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants