Open Flash logo

SWF Emitter

crates.io GitHub repository Build status

SWF emitter implemented in Rust. Converts swf-tree movies to bytes.

Usage

```rust use swfemitter; use swftree::{CompressionMethod, Movie};

fn main() { let movie: Movie = ...; let mut bytes = Vec::new(); emit_movie(&mut bytes, &movie, CompressionMethod::None) .expect("Failed to emit movie"); } ```

Contributing

This repo uses Git submodules for its test samples:

```sh

Clone with submodules

git clone --recurse-submodules git://github.com/open-flash/swf-emitter.git

Update submodules for an already-cloned repo

git submodule update --init --recursive --remote ```

This library is a standard Cargo project. You can test your changes with cargo test.

Prefer non-master branches when sending a PR so your changes can be rebased if needed. All the commits must be made on top of master (fast-forward merge). CI must pass for changes to be accepted.