Lines Matching refs:zip

127     zip_archive: Mutex<zip::ZipArchive<File>>,
170 let mut z = zip::ZipArchive::new(f)?; in new()
272 zip::CompressionMethod::Stored => OpenFileContent::Uncompressed(zip_index), in open()
478 use zip::write::FileOptions;
536 fn run_test(add: fn(&mut zip::ZipWriter<File>), check: fn(&std::path::Path)) { in run_test()
542 add: fn(&mut zip::ZipWriter<File>), in run_test_with_options()
548 let zip = File::create(&zip_path); in run_test_with_options() localVariable
549 assert!(zip.is_ok()); in run_test_with_options()
550 let mut zip = zip::ZipWriter::new(zip.unwrap()); in run_test_with_options() localVariable
553 add(&mut zip); in run_test_with_options()
554 assert!(zip.finish().is_ok()); in run_test_with_options()
555 drop(zip); in run_test_with_options()
634 |zip| { in single_file()
635 zip.start_file("foo", FileOptions::default()).unwrap(); in single_file()
636 zip.write_all(b"0123456789").unwrap(); in single_file()
647 fn add_executable(zip: &mut zip::ZipWriter<File>) { in noexec()
648 zip.start_file("executable", FileOptions::default().unix_permissions(0o755)).unwrap(); in noexec()
671 |zip| { in uid_gid()
672 zip.start_file("foo", FileOptions::default()).unwrap(); in uid_gid()
673 zip.write_all(b"0123456789").unwrap(); in uid_gid()
691 |zip| { in single_dir()
692 zip.add_directory("dir", FileOptions::default()).unwrap(); in single_dir()
720 |zip| { in complex_hierarchy()
722 zip.add_directory("a/b1", opt).unwrap(); in complex_hierarchy()
724 zip.start_file("a/b2/c1", opt).unwrap(); in complex_hierarchy()
726 zip.start_file("a/b2/c2/d1", opt).unwrap(); in complex_hierarchy()
727 zip.start_file("a/b2/c2/d2", opt).unwrap(); in complex_hierarchy()
728 zip.start_file("a/b2/c2/d3", opt).unwrap(); in complex_hierarchy()
730 zip.start_file("x/y1", opt).unwrap(); in complex_hierarchy()
731 zip.start_file("x/y2", opt).unwrap(); in complex_hierarchy()
732 zip.add_directory("x/y3", opt).unwrap(); in complex_hierarchy()
734 zip.start_file("foo", opt).unwrap(); in complex_hierarchy()
735 zip.start_file("bar", opt).unwrap(); in complex_hierarchy()
760 |zip| { in large_file()
762 zip.start_file("foo", FileOptions::default()).unwrap(); in large_file()
763 zip.write_all(&data).unwrap(); in large_file()
776 |zip| { in large_dir()
781 zip.start_file(format!("dir/{:0100}", i), opt).unwrap(); in large_dir()
826 |zip| { in supports_store()
828 zip.start_file( in supports_store()
830 FileOptions::default().compression_method(zip::CompressionMethod::Stored), in supports_store()
833 zip.write_all(&data).unwrap(); in supports_store()