ruffle-rs /ruffle

A Flash Player emulator written in Rust

★ 18,863⑂ 1,193👁 165⑃ 9,367● 14,983▤ 1,892
RustNOASSERTIONCreated 2019-04-25ruffle.rs
下载:Release 0.7.1Release-0.7.1 ↓0.7.12026-10-07
+4
日增长
18,863
stars
1,193
forks
165
watchers
9,367
prs
14,983
issues
1,892
releases

README

website | demo | nightly builds | wiki


 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
 Using Ruffle
 Building from source
   Prerequisites
   Linux prerequisites
   Desktop
     Build
     macOS
   Web or Extension
   Android
   Scanner
   Exporter
 Structure
 Sponsors
 License
 Contributing


 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:
  shell
  sudo apt install pkg-config libasound2-dev libudev-dev libfontconfig-dev libfreetype6-dev libssl-dev default-jre-headless g++
  

 Fedora/RHEL:
  shell
  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

Top issues

Discussions

Latest release

Release 0.7.1 v0.7.1 2026-10-07
This release fixes some configuration issues we had that prevented extensions from being published. It's equivalent to 0.7.0.

Full Changelog: https://github.com/ruffle-rs/ruffle/compare/v0.7.0...v0.7.1

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON