extern crate env_logger; extern crate zipper; mod util; use std::path::Path; use util::*; use zip::zipper::{Zipper, ZipperOptions}; fn main() { setup(); let opts = ZipperOptions { path: get_output_path("simple.zip"), }; let mut z = Zipper::new(opts); z.add_file( &get_asset_path("simple1.txt").as_path(), Path::new("simple1.txt"), ); z.add_file( &get_asset_path("simple2.txt").as_path(), Path::new("simple2.txt"), ); z.finish(); }