aboutsummaryrefslogtreecommitdiff
path: root/libgitmail/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libgitmail/src/lib.rs')
-rw-r--r--libgitmail/src/lib.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgitmail/src/lib.rs b/libgitmail/src/lib.rs
index 81de51d..53bb6b8 100644
--- a/libgitmail/src/lib.rs
+++ b/libgitmail/src/lib.rs
@@ -10,6 +10,14 @@
//! structure of a pathset with a way to select specific parts of the
//! set to export. Look at the `PatchSet` type for more information.
+mod patch;
+pub use patch::*;
+
+pub mod set;
+pub mod tree;
+
+pub type Result<T> = std::result::Result<T, Error>;
+
/// A mail error type
#[derive(Debug)]
pub enum Error {
@@ -17,4 +25,6 @@ pub enum Error {
FailedParsing,
/// The provided email is not a valid get-sent mail
NotAGitMail,
+ /// Generally a git email, but malformed
+ InvalidGitFormat,
}