2016-08-29 07:51:32 +00:00
|
|
|
//! # swf-rs
|
|
|
|
//!
|
|
|
|
//! Library for reading and writing Adobe Flash SWF files.
|
|
|
|
//!
|
|
|
|
//! # Organization
|
|
|
|
//!
|
2020-09-19 14:27:24 +00:00
|
|
|
//! This library consists of a `read` module for decoding SWF data, and a `write` library for
|
2016-08-29 07:51:32 +00:00
|
|
|
//! writing SWF data.
|
2017-06-24 23:01:14 +00:00
|
|
|
|
2018-06-10 19:51:17 +00:00
|
|
|
#[cfg(feature = "flate2")]
|
2016-08-29 07:51:32 +00:00
|
|
|
extern crate flate2;
|
2018-06-10 19:51:17 +00:00
|
|
|
#[cfg(feature = "libflate")]
|
|
|
|
extern crate libflate;
|
2018-06-10 08:23:11 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate num_derive;
|
|
|
|
extern crate num_traits;
|
2016-08-29 07:51:32 +00:00
|
|
|
|
2016-09-25 20:30:09 +00:00
|
|
|
pub mod avm1;
|
2017-08-26 08:18:51 +00:00
|
|
|
pub mod avm2;
|
2019-10-09 23:20:31 +00:00
|
|
|
pub mod error;
|
2021-02-10 17:51:00 +00:00
|
|
|
// TODO: Make this private?
|
|
|
|
pub mod extensions;
|
2016-08-31 18:45:58 +00:00
|
|
|
pub mod read;
|
2021-01-18 21:17:17 +00:00
|
|
|
mod string;
|
2019-06-17 06:32:32 +00:00
|
|
|
mod tag_code;
|
2016-08-29 07:51:32 +00:00
|
|
|
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
|
|
|
|
2021-07-09 14:05:13 +00:00
|
|
|
/// Re-exports
|
2021-01-19 00:46:20 +00:00
|
|
|
pub use read::{decompress_swf, parse_swf};
|
2021-01-18 21:17:17 +00:00
|
|
|
pub use string::*;
|
2019-06-17 06:32:32 +00:00
|
|
|
pub use tag_code::TagCode;
|
2016-08-29 20:32:56 +00:00
|
|
|
pub use types::*;
|
2019-10-03 07:46:38 +00:00
|
|
|
pub use write::write_swf;
|