Skip to content

Commit

Permalink
chore: Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Apr 7, 2024
1 parent 6f5f5e1 commit 3eaab72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[package]
name = "error_set"
description = "An Error set"
version = "0.2.0"
description = "An error set macro that provides a concise way to define errors and ergonomically coerce a subset into a superset. Inspired by Zig's error set type."
categories = ["rust-patterns"]
keywords = ["error", "error-handling", "macro", "error-set","thiserror","anyhow"]
version = "0.3.0"
edition = "2021"
license = "Apache-2.0"
documentation = "https://docs.rs/error_set"
repository = "https://github.com/mcmah309/error_set"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/mcmah309/error_set/ci.yml?branch=master&style=for-the-badge" height="20">](https://github.com/mcmah309/error_set/actions?query=branch%3Amaster)


A concise way to define errors and ergomically coerce a subset into a superset with with just `.into()`, or `?`.
A concise way to define errors and ergonomically coerce a subset into a superset with with just `.into()`, or `?`.

`error_set` was inspired by zig's [error set](https://ziglang.org/documentation/master/#Error-Set-Type)
and works functionally the same.
Expand All @@ -18,7 +18,7 @@ use error_set::error_set;
error_set! {
MediaError = {
IoError(std::io::Error)
} || BookParsingError || DownloadError || ParseUploadError;
} || BookParsingError || DownloadError || ParseUploadError;
BookParsingError = {
MissingBookDescription,
CouldNotReadBook(std::io::Error),
Expand Down

0 comments on commit 3eaab72

Please sign in to comment.