Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
NCPlayz committed Mar 7, 2021
1 parent 5b2b999 commit 95f5a58
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
Cargo.lock
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# pyexc

An easy way to define Python exceptions.

```rust
use pyexc::PythonException;

#[derive(PythonException)]
pub enum MyExceptions {
#[base(module = "errors")]
#[format("Hello World!!")]
Foo,
}
```

0 comments on commit 95f5a58

Please sign in to comment.