Skip to content

Commit

Permalink
refactor: re-export imap-types
Browse files Browse the repository at this point in the history
  • Loading branch information
duesee committed Jul 12, 2024
1 parent 0a193b1 commit d6b6c81
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion integration-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ bstr = { version = "1.9.1", default-features = false }
bytes = "1.6.0"
imap-codec = { version = "2.0.0-alpha.1", git = "https://github.com/duesee/imap-codec", rev = "6bd83aff18fc12bad2b45c9fc50506b0c26ae2f6" }
imap-next = { path = ".." }
imap-types = { version = "2.0.0-alpha.1", git = "https://github.com/duesee/imap-codec", rev = "6bd83aff18fc12bad2b45c9fc50506b0c26ae2f6" }
tokio = { version = "1.38.0", features = ["macros", "net", "rt", "time"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
Expand Down
2 changes: 1 addition & 1 deletion integration-test/src/client_tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ use std::net::SocketAddr;
use bstr::ByteSlice;
use imap_next::{
client::{self, Client, CommandHandle},
imap_types::{command::Command, ToStatic},
stream::{self, Stream},
};
use imap_types::{command::Command, ToStatic};
use tokio::net::TcpStream;
use tracing::trace;

Expand Down
2 changes: 1 addition & 1 deletion integration-test/src/codecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use imap_codec::{
decode::Decoder, encode::Encoder, AuthenticateDataCodec, CommandCodec, GreetingCodec,
ResponseCodec,
};
use imap_types::{
use imap_next::imap_types::{
auth::AuthenticateData,
command::Command,
response::{CommandContinuationRequest, Data, Greeting, Response, Status},
Expand Down
2 changes: 1 addition & 1 deletion integration-test/src/server_tester.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use bstr::ByteSlice;
use imap_next::{
imap_types::{response::Response, ToStatic},
server::{self, ResponseHandle, Server},
stream::{self, Stream},
};
use imap_types::{response::Response, ToStatic};
use tokio::net::TcpListener;
use tracing::trace;

Expand Down
1 change: 0 additions & 1 deletion proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ argh = "0.1.12"
colored = "2.1.0"
imap-codec = { version = "2.0.0-alpha.1", features = ["quirk_crlf_relaxed", "ext_id"], git = "https://github.com/duesee/imap-codec", rev = "6bd83aff18fc12bad2b45c9fc50506b0c26ae2f6" }
imap-next = { path = ".." }
imap-types = { version = "2.0.0-alpha.1", features = ["ext_id"], git = "https://github.com/duesee/imap-codec", rev = "6bd83aff18fc12bad2b45c9fc50506b0c26ae2f6" }
once_cell = "1.19.0"
rustls-native-certs = "0.7.1"
rustls-pemfile = "2.1.2"
Expand Down
12 changes: 6 additions & 6 deletions proxy/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ use std::{net::SocketAddr, sync::Arc};
use colored::Colorize;
use imap_next::{
client::{self, Client},
imap_types::{
command::{Command, CommandBody},
extensions::idle::IdleDone,
response::{Code, Status},
ToStatic,
},
server::{self, Server},
stream::{self, Stream},
};
use imap_types::{
command::{Command, CommandBody},
extensions::idle::IdleDone,
response::{Code, Status},
ToStatic,
};
use once_cell::sync::Lazy;
use thiserror::Error;
use tokio::net::{TcpListener, TcpStream};
Expand Down
2 changes: 1 addition & 1 deletion proxy/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::{fs::File, io::BufReader, path::Path};

use imap_types::{
use imap_next::imap_types::{
auth::AuthMechanism,
core::Vec1,
response::{
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ pub mod stream;
mod tests;
pub mod types;

// Re-export(s)
pub use imap_codec::imap_types;

// Test examples from imap-next's README.
#[doc = include_str!("../README.md")]
#[cfg(doctest)]
Expand Down

0 comments on commit d6b6c81

Please sign in to comment.