From 95f5a58313b6c215e03ec00a631c10888252ff75 Mon Sep 17 00:00:00 2001 From: NCPlayz Date: Sun, 7 Mar 2021 01:51:13 +0000 Subject: [PATCH] add README --- .gitignore | 1 + README.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 README.md diff --git a/.gitignore b/.gitignore index ea8c4bf..96ef6c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +Cargo.lock diff --git a/README.md b/README.md new file mode 100644 index 0000000..c7a1189 --- /dev/null +++ b/README.md @@ -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, +} +```