ruffle/swf/src/lib.rs

38 lines
719 B
Rust

//! # swf-rs
//!
//! Library for reading and writing Adobe Flash SWF files.
//!
//! # Organization
//!
//! This library consists of a `read` module for decoding SWF data, and a `write` library for
//! writing SWF data.
#[cfg(feature = "flate2")]
extern crate flate2;
#[cfg(feature = "libflate")]
extern crate libflate;
#[macro_use]
extern crate num_derive;
extern crate num_traits;
pub mod avm1;
pub mod avm2;
pub mod error;
// TODO: Make this private?
pub mod extensions;
pub mod read;
mod string;
mod tag_code;
mod types;
pub mod write;
#[cfg(test)]
mod test_data;
/// Re-exports
pub use read::{decompress_swf, parse_swf};
pub use string::*;
pub use tag_code::TagCode;
pub use types::*;
pub use write::write_swf;