From fdb464b380dcda0f9afeee080ebe988e3934e02b Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Thu, 9 Jan 2020 21:30:25 +0000 Subject: Refactoring libgitmail core to work on complete emails, with tests --- libgitmail/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libgitmail/src/lib.rs') 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 = std::result::Result; + /// 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, } -- cgit v1.2.3