diff --git a/README.md b/README.md index 6c460eb..8faec0c 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,11 @@ apng is animated png encoder for Rust, and made in pure Rust. ## Example usage ```rust +use apng::{Encoder, Frame, PNGImage}; +use std::fs::File; +use std::io::BufWriter; +use std::path::Path; + fn main() { let files = vec![ "rust_logo1.png", diff --git a/src/lib.rs b/src/lib.rs index 85eae6a..f626a13 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,12 @@ apng is animated png encoder for Rust, and made in pure Rust. # Example -```rust +```no_run +use apng::{Encoder, Frame, PNGImage}; +use std::fs::File; +use std::io::BufWriter; +use std::path::Path; + fn main() { let files = vec![ "rust_logo1.png",