ruffle

ruffle-rs活跃维护

用 Rust 重写的 Flash Player 模拟器,能在浏览器和桌面端直接运行 SWF 文件,让老 Flash 内容在官方停支持后继续可用。

A Flash Player emulator written in Rust

nightly-2026-11-08发布于 2026-11-08 00:09 UTC18,842star +13 / 7 天1,184fork同步于 2026-11-10 11:24 UTC

怎么上手

由 README 提炼,执行前请确认
cargo run --release --package=ruffle_desktop
cargo run --release --package=ruffle_desktop -- test.swf
硬件要求按 README 说明

README 未说明具体显存或 GPU 型号要求;exporter 工具目前需要硬件加速,但可无窗口运行。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Rust 写的 Flash Player 模拟器,让老 SWF 内容在桌面和浏览器里继续跑

用 Rust 重写的 Flash Player 模拟器,能在浏览器和桌面端直接运行 SWF 文件,让老 Flash 内容在官方停支持后继续可用。

核心能力

  • 用 Rust 实现 Flash 模拟器,支持 ActionScript 1/2/3
  • 通过 WebAssembly 同时覆盖桌面端与网页端
  • 提供浏览器扩展,可直接在网页中播放 SWF
  • 附带 scanner 工具批量解析 SWF 并输出 CSV 报告
  • 附带 exporter 工具把 SWF 渲染成 PNG 截图

容易踩的坑

构建需要 Rust 最新稳定版,且 PATH 中要有 java,用于编译 ActionScript 3 内置类库;Linux 需先安装 pkg-config、libasound2-dev、libudev-dev、fontconfig、freetype、openssl 等依赖;exporter 需要硬件加速,无 GPU 环境可能无法出图。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本nightly-2026-11-08
  1. nightly-2026-11-08Nightly 2026-11-08pre-release最新正式版2026-11-08 · 2026-11-08 00:09 UTC

    What's Changed

    Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-07...nightly-2026-11-08

  2. nightly-2026-11-07Nightly 2026-11-07pre-release2026-11-07 · 2026-11-07 00:10 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-06...nightly-2026-11-07

  3. nightly-2026-11-06Nightly 2026-11-06pre-release2026-11-06 · 2026-11-06 00:11 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-04...nightly-2026-11-06

  4. nightly-2026-11-04Nightly 2026-11-04pre-release2026-11-04 · 2026-11-04 00:09 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-03...nightly-2026-11-04

  5. nightly-2026-11-03Nightly 2026-11-03pre-release2026-11-03 · 2026-11-03 00:11 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/ruffle-rs/ruffle/compare/nightly-2026-11-02...nightly-2026-11-03

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Ruffle

    Ruffle is an Adobe Flash Player emulator written in the Rust programming language. Ruffle targets both the desktop and the web using WebAssembly.

    Table of Contents

    Project status

    Ruffle supports ActionScript 1, 2 and 3 pretty well, but it's still not finished by any means. Please report any issues in the Issue Tracker.

    Using Ruffle

    The easiest way to try out Ruffle is to visit the web demo page, then click the "Select File" button to load a SWF file of your choice.

    Nightly builds of Ruffle are available for desktop and web platforms.

    For more detailed instructions, see our wiki page.

    Building from source

    Prerequisites

    • Latest stable channel of Rust
    • Java, available on your PATH as java (required for building the library containing the builtin Flash classes for ActionScript 3)

    Linux prerequisites

    The following are typical dependencies for Linux:

    • Ubuntu/Debian:

      sudo apt install pkg-config libasound2-dev libudev-dev libfontconfig-dev libfreetype6-dev libssl-dev default-jre-headless g++
      
    • Fedora/RHEL:

      sudo dnf install pkgconf-pkg-config alsa-lib-devel systemd-devel fontconfig-devel freetype-devel openssl-devel java-latest-openjdk-headless gcc-c++
      

    Desktop

    Build

    Use the following command to build and run the desktop app:

    cargo run --release --package=ruffle_desktop

    To run a specific SWF file, pass the SWF path as an argument:

    cargo run --release --package=ruffle_desktop -- test.swf

    To build in debug mode, simply omit --release from the command.

    Desktop has a few optional features which you can specify via --features, comma separated:

    • tracy: Enables profiling to Tracy. You may need to expand the log filter to see everything, e.g. RUST_LOG="warn,ruffle=debug"
    • tracy_images: Enables Tracy frame captures. Implies tracy.
    • tracy_avm: Enables profiling AVM execution with Tracy. Implies tracy.
    • render_debug_labels: Enables debug labels during rendering, useful for debugging graphics with renderdoc or similar.
    macOS

    Ruffle desktop can be built from our Homebrew Tap:

    brew install --HEAD ruffle-rs/ruffle/ruffle

    Note: because it is HEAD-only, you'll need to run brew upgrade --fetch-HEAD ruffle each time you want to update.

    Web or Extension

    Follow the instructions in the web directory for building either the web or browser extension version of Ruffle.

    This project is tested with BrowserStack.

    Android

    Follow the instructions in the ruffle-android project for building the Android application of Ruffle.

    Scanner

    If you have a collection of "real world" SWFs to test against, the scanner may be used to benchmark ruffle's parsing capabilities. Provided with a folder and an output filename, it will attempt to read all of the Flash files and report on the success of such a task.

    cargo run --release --package=ruffle_scanner -- scan folder/with/swfs/ results.csv

    Exporter

    If you have a SWF file and would like to capture an image of it, you may use the exporter tool. This currently requires hardware acceleration, but can be run headless (with no window).

    • cargo run --release --package=exporter -- path/to/file.swf
    • cargo run --release --package=exporter -- path/to/file.swf path/to/screenshots --frames 5

    Structure

    • core - core emulator and common code
    • swf - SWF and ActionScript parser
    • desktop - desktop client (uses wgpu-rs)
    • web - web client and browser extension (uses wasm-bindgen)
    • render - various rendering backends for both desktop and web
    • video - video decoding backends
    • flv - Flash Video decoder
    • wstr - a Flash-compatible implementation of strings
    • scanner - a utility to bulk parse SWF files
    • exporter - a utility to generate PNG screenshots of a SWF file

    Sponsors

    You can support the development of Ruffle via GitHub Sponsors. Your sponsorship will help to ensure the accessibility of Flash content for the future. Thank you!

    Sincere thanks to the diamond level sponsors of Ruffle:

    License

    Ruffle is licensed under either of

    at your option.

    Ruffle depends on third-party libraries under compatible licenses. See LICENSE.md for full information.

    Contributing

    Ruffle welcomes contribution from everyone. See CONTRIBUTING.md for help getting started.

    Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

    The entire Ruffle community, including the chat room and GitHub project, is expected to abide by the Code of Conduct that the Rust project itself follows.