Make the reader and writer mod public
This commit is contained in:
parent
8bc33dcc57
commit
b65f729bbe
3 changed files with 7 additions and 2 deletions
|
@ -19,9 +19,9 @@ mod spec;
|
||||||
mod reader_spec;
|
mod reader_spec;
|
||||||
mod writer_spec;
|
mod writer_spec;
|
||||||
mod crc32;
|
mod crc32;
|
||||||
mod reader;
|
pub mod reader;
|
||||||
mod types;
|
mod types;
|
||||||
pub mod compression;
|
pub mod compression;
|
||||||
mod writer;
|
pub mod writer;
|
||||||
mod cp437;
|
mod cp437;
|
||||||
pub mod result;
|
pub mod result;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! Structs for reading a ZIP archive
|
||||||
|
|
||||||
use crc32::Crc32Reader;
|
use crc32::Crc32Reader;
|
||||||
use types::ZipFile;
|
use types::ZipFile;
|
||||||
use compression::CompressionMethod;
|
use compression::CompressionMethod;
|
||||||
|
@ -44,6 +46,7 @@ pub struct ZipReader<T>
|
||||||
names_map: HashMap<String, usize>,
|
names_map: HashMap<String, usize>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Iterator over the files contained in a zip archive
|
||||||
pub struct ZipFileIterator<'a>
|
pub struct ZipFileIterator<'a>
|
||||||
{
|
{
|
||||||
inner: ::std::slice::Iter<'a, ZipFile>,
|
inner: ::std::slice::Iter<'a, ZipFile>,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! Structs for creating a new zip archive
|
||||||
|
|
||||||
use compression::CompressionMethod;
|
use compression::CompressionMethod;
|
||||||
use types::ZipFile;
|
use types::ZipFile;
|
||||||
use spec;
|
use spec;
|
||||||
|
|
Loading…
Add table
Reference in a new issue