Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Majored committed Feb 2, 2022
1 parent f7ba365 commit 365094f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "async_zip"
version = "0.0.4"
version = "0.0.5"
edition = "2021"
authors = ["Harry [[email protected]]"]
repository = "https://github.com/Majored/rs-async-zip"
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ An asynchronous ZIP archive reading/writing crate with a heavy focus on streamin

```toml
[dependencies]
async_zip = "0.0.4"
async_zip = "0.0.5"
```

A (soon to be) extensive list of [examples](https://github.com/Majored/rs-async-zip/tree/main/examples) can be found under the `/examples` directory.
Expand All @@ -31,9 +31,8 @@ let mut file = File::open("./Archive.zip").await.unwrap();
let mut zip = ZipFileReader::new(&mut file).await.unwrap();

let mut reader = zip.entry_reader(0).await.unwrap();
let mut txt = String::new();
let txt = reader.read_to_string_crc().await.unwrap();

reader.read_to_string(&mut txt).await.unwrap();
println!("{}", txt);
```

Expand All @@ -50,7 +49,7 @@ let mut writer = ZipFileWriter::new(&mut file);
let data = b"This is an example file.";
let opts = EntryOptions::new(String::from("bar.txt"), Compression::Deflate);

writer.write_entry(opts, data).await.unwrap();
writer.write_entry_whole(opts, data).await.unwrap();
writer.close().await.unwrap();
```

Expand Down

0 comments on commit 365094f

Please sign in to comment.