aboutsummaryrefslogtreecommitdiff
path: root/libgitmail/src/lib.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-01-09 21:30:25 +0000
committerKatharina Fey <kookie@spacekookie.de>2020-01-10 01:05:26 +0000
commitfdb464b380dcda0f9afeee080ebe988e3934e02b (patch)
treeb46ebdea03117f2f6f82e65a2542ae4b6e8f2e5d /libgitmail/src/lib.rs
parentad1ad814ab2c4c89a3e8b6538f93c6c2b455efb3 (diff)
Refactoring libgitmail core to work on complete emails, with tests
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,
}