keyforkd: export types

This commit is contained in:
Ryan Heywood 2023-09-11 23:00:16 -05:00
parent a946d039a6
commit 0ef93fced5
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
use thiserror::Error; use thiserror::Error;
#[derive(Debug, Clone, 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")] #[error("Neither KEYFORKD_SOCKET_PATH nor XDG_RUNTIME_DIR were set, nowhere to mount socket")]
NoSocketPath, NoSocketPath,
} }

View File

@ -4,18 +4,18 @@ use std::{
}; };
pub use keyfork_mnemonic_util::Mnemonic; pub use keyfork_mnemonic_util::Mnemonic;
use tower::ServiceBuilder; pub use tower::ServiceBuilder;
#[cfg(feature = "tracing")] #[cfg(feature = "tracing")]
use tracing::debug; use tracing::debug;
mod error; pub mod error;
mod middleware; pub mod middleware;
mod server; pub mod server;
mod service; pub mod service;
use error::KeyforkdError; pub use error::KeyforkdError;
use server::UnixServer; pub use server::UnixServer;
use service::Keyforkd; pub use service::Keyforkd;
pub async fn start_and_run_server_on( pub async fn start_and_run_server_on(
mnemonic: Mnemonic, mnemonic: Mnemonic,