Skip to content

Commit

Permalink
Merge pull request #5 from genonullfree/update-prints
Browse files Browse the repository at this point in the history
Update prints
  • Loading branch information
genonullfree authored Oct 2, 2022
2 parents 53d8596 + 4747b8f commit f33f6c6
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 38 deletions.
10 changes: 8 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
[package]
name = "psxmem"
version = "0.1.0"
authors = ["geno nullfree <[email protected]>"]
license = "BSD-3-Clause"
description = "This is a library to read and write PSX/PS1 memory card files."
readme = "README.md"
homepage = "https://github.com/genonullfree/psxmem.git"
repository = "https://github.com/genonullfree/psxmem.git"
keywords = ["ps1", "psx", "memory-card"]
categories = ["command-line-utilities", "file-parser"]
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
deku = "0.13.1"
gif = "0.11.4"
Expand Down
4 changes: 4 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use gif::EncodingError as GifEncodingError;
use png::EncodingError;
use std::io;
use std::str::Utf8Error;

use thiserror::Error;

Expand All @@ -12,6 +13,9 @@ pub enum MCError {
#[error("IoError: {0}")]
Io(#[from] io::Error),

#[error("Uft8Error: {0}")]
Utf8Error(#[from] Utf8Error),

#[error("Unable to encode to PNG")]
PngEncodingError(#[from] EncodingError),

Expand Down
Loading

0 comments on commit f33f6c6

Please sign in to comment.