readme: update with new information

This commit is contained in:
Matt Bilker
2019-11-09 08:31:51 +00:00
parent 36da26709c
commit ac25fb4691
2 changed files with 7 additions and 6 deletions

View File

@@ -2,10 +2,12 @@
An encoder/decoder for Konami's binary XML format, used in many of their games.
Requires Rust 1.34 or newer!
### Setup
- Setup Rust Nightly through `rustup` or your own preferred method of acquiring the nightly version of Rust
- Setup Rust through `rustup` or your own preferred method of acquiring Rust
- For using `kbinxml-rs` as a library, add it as a dependency in your `Cargo.toml` file
- For using `kbinxml-rs` as a standalone application, install `kbinxml-rs` using `cargo install kbinxml` (Note: This will not work at the moment as `kbinxml-rs` has not yet been published to [crates.io](https://crates.io))
- For using `kbinxml-rs` as a standalone application, install `kbinxml-rs` using `cargo install kbinxml --features=build_binary` (Note: This will not work at the moment as `kbinxml-rs` has not yet been published to [crates.io](https://crates.io))
To be written.

View File

@@ -155,10 +155,9 @@ impl<'a> TextXmlReader<'a> {
count = num_count as usize;
} else if attr.key == b"__size" {
let value =
str::from_utf8(&*value)?
.parse::<usize>()
.context(ParseBinarySize)?;
let value = str::from_utf8(&*value)?
.parse::<usize>()
.context(ParseBinarySize)?;
size = Some(value);
} else {