A Flash Player emulator written in Rust
Go to file
David Wendt fec95dd226 Add regression test for `idMap`. 2020-01-04 19:00:49 -05:00
.circleci ci: Bump to Rust 1.40 2019-12-20 01:09:23 -08:00
.dependabot chore: Add dependabot for js 2019-12-11 10:21:59 -08:00
assets docs: Add sponsors link to README 2019-12-10 18:07:51 -08:00
core Add regression test for `idMap`. 2020-01-04 19:00:49 -05:00
desktop avm1: Implement Sound.duration 2020-01-03 17:11:00 -08:00
scanner build(deps): bump structopt from 0.3.6 to 0.3.7 2019-12-29 23:10:17 +00:00
swf swf: Clean up DefineButtonCxform tag 2019-12-20 19:20:25 -08:00
web avm1: Implement Sound.duration 2020-01-03 17:11:00 -08:00
.gitattributes chore: Add gitattributes to normalize line endings 2019-10-11 16:53:36 -07:00
.gitignore chore: Add .swd files to .gitignore (SWF debug symbols) 2019-12-19 17:33:27 -08:00
CONTRIBUTING.md chore: Renormalize line endings in misc files 2019-10-11 16:53:36 -07:00
Cargo.lock Add rudimentary custom DOM impl on top of `quick_xml`. 2020-01-04 18:48:17 -05:00
Cargo.toml core: Add enum_trait_object proc macro 2019-12-10 01:36:01 -08:00
LICENSE_APACHE Initial commit 2019-04-25 10:52:22 -07:00
LICENSE_MIT Initial commit 2019-04-25 10:52:22 -07:00
README.md docs: Add sponsors link to README 2019-12-10 18:07:51 -08:00
rustfmt.toml chore: Add rustfmt.toml and rustfmt pass 2019-08-26 16:38:48 -07:00

README.md

Ruffle

Travis Build Status Ruffle Discord
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.

Project status

Ruffle is in the proof-of-concept stage and can currently run early Flash animations. ActionScript support is still forthcoming; for more info, read the project roadmap.

Building from source

Follow the official guide to install Rust for your platform.

Desktop

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

Web

Running the web demo

Building the NPM package

  • cd web
  • wasm-pack build

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 --package=ruffle_scanner -- folder/with/swfs/ results.csv

Structure

  • core contains the core emulator and common code
  • desktop contains the desktop client (uses glium)
  • web contains the web client (uses wasm-bindgen)
  • scanner contains a utility to bulk parse swf files

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:

Newgrounds.com

License

Licensed under either of

Contribution

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.