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;
#[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,
}

View File

@ -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,