Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
swf-headers
A library for reading the headers of a swf file, and optionally for helping you read the rest of it, too.
Example:
extern crate swf_headers;
use Read; // Needed for calling read_to_end()
use SwfHeaders;
use Error as SwfError;
use DecodedSwf;
let = open.unwrap_or_else;
println!;
println!;
println!;
println!;
println!;
println!;
let mut the_rest_of_the_swf: = vec!;
decoded_swf.read_to_end.ok.expect;
// And then you can do whatever you want with the rest of the swf!
Testing
Testing is a pain when you have to test on proprietary blobs. See tests/README.md for more information.
FAQ
Q: Why make a library for parsing swf files?
A: Why not? I had some experience with it, and I noticed there were no swf parsing tools on crates.io, so I identified my niche and ran with it.
Q: Does this really need to rely on two decompression libraries just to parse a header?
A: Sadly, yes. The swf spec is awful, so swf files usually end up with half the header compressed with either zlib or LZMA.
Q: Where's the swf spec?
A: Here. You'll probably want to read that through if you're planning on parsing the rest of the swf, but for understanding this library you just need the first chapter and page 27.
Q: Hey, I have some public domain swf files using weird flash settings, do you want them?
A: Sure! Test coverage is proving to be the hardest part of this whole ordeal, so I could always welcome small swf files to test with.
Q: Your code sucks. Can I fix it?
A: Also sure! Pull Requests are welcome.