Skip to content

Phase 2c: Port archive download and toolchain installers to Rust #20

Closed

Description

@zackees

Part of #14
Depends on Phase 2a (#18)

Goal

Replace emscripten_archive.py and frontend_esbuild.py with Rust implementations using reqwest + archive crates.

Tasks

  • Add reqwest, tar, zip, zstd, sha2 crates to fastled-cli
  • Port emscripten archive download, SHA verification, extraction, and .emscripten config generation
  • Port esbuild binary download and extraction from npm registry
  • Implement file-based locking for concurrent install safety
  • Expose via PyO3: fastled._native.install_emscripten(), fastled._native.install_esbuild()
  • Add Rust tests for archive extraction and config generation
  • Remove Python archive modules and update imports

Acceptance criteria

  • Emscripten toolchain installs correctly on all platforms
  • esbuild installs correctly on all platforms
  • .emscripten config has correct paths (no staging directory bug)
  • Existing compilation workflow works end-to-end

Activity

  1. added a commit that references this issue on Apr 12, 2026
    34922bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions