2016-08-29 07:51:32 +00:00
|
|
|
//! # swf-rs
|
|
|
|
//!
|
|
|
|
//! Library for reading and writing Adobe Flash SWF files.
|
|
|
|
//!
|
|
|
|
//! # Organization
|
|
|
|
//!
|
|
|
|
//! This library consits of a `read` module for decoding SWF data, and a `write` library for
|
|
|
|
//! writing SWF data.
|
|
|
|
|
2017-06-24 23:01:14 +00:00
|
|
|
#![cfg_attr(feature="clippy", feature(plugin))]
|
|
|
|
#![cfg_attr(feature="clippy", plugin(clippy))]
|
|
|
|
|
2016-08-29 07:51:32 +00:00
|
|
|
extern crate byteorder;
|
2017-06-24 19:56:49 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate enum_primitive;
|
2016-08-29 07:51:32 +00:00
|
|
|
extern crate flate2;
|
2016-08-30 22:32:27 +00:00
|
|
|
extern crate num;
|
2016-08-29 07:51:32 +00:00
|
|
|
extern crate xz2;
|
|
|
|
|
2016-09-25 20:30:09 +00:00
|
|
|
pub mod avm1;
|
2016-08-31 18:45:58 +00:00
|
|
|
pub mod read;
|
2016-08-29 07:51:32 +00:00
|
|
|
mod tag_codes;
|
|
|
|
mod types;
|
2016-08-31 18:45:58 +00:00
|
|
|
pub mod write;
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod test_data;
|
2016-08-29 07:51:32 +00:00
|
|
|
|
|
|
|
/// Parses an SWF from a `Read` stream.
|
|
|
|
pub use read::read_swf;
|
|
|
|
|
|
|
|
/// Writes an SWF to a `Write` stream.
|
|
|
|
pub use write::write_swf;
|
|
|
|
|
|
|
|
/// Types used to represent a parsed SWF.
|
2016-08-29 20:32:56 +00:00
|
|
|
pub use types::*;
|