From 0ef93fced5452672ab22dc3f80a70a28809394cd Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 11 Sep 2023 23:00:16 -0500 Subject: [PATCH] keyforkd: export types --- keyforkd/src/error.rs | 2 +- keyforkd/src/lib.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/keyforkd/src/error.rs b/keyforkd/src/error.rs index e8465f5..6a8ce6a 100644 --- a/keyforkd/src/error.rs +++ b/keyforkd/src/error.rs @@ -1,7 +1,7 @@ use thiserror::Error; #[derive(Debug, Clone, Error)] -pub(crate) enum KeyforkdError { +pub enum KeyforkdError { #[error("Neither KEYFORKD_SOCKET_PATH nor XDG_RUNTIME_DIR were set, nowhere to mount socket")] NoSocketPath, } diff --git a/keyforkd/src/lib.rs b/keyforkd/src/lib.rs index 7d4eace..5377759 100644 --- a/keyforkd/src/lib.rs +++ b/keyforkd/src/lib.rs @@ -4,18 +4,18 @@ use std::{ }; pub use keyfork_mnemonic_util::Mnemonic; -use tower::ServiceBuilder; +pub use tower::ServiceBuilder; #[cfg(feature = "tracing")] use tracing::debug; -mod error; -mod middleware; -mod server; -mod service; -use error::KeyforkdError; -use server::UnixServer; -use service::Keyforkd; +pub mod error; +pub mod middleware; +pub mod server; +pub mod service; +pub use error::KeyforkdError; +pub use server::UnixServer; +pub use service::Keyforkd; pub async fn start_and_run_server_on( mnemonic: Mnemonic,