keyforkd: export types
This commit is contained in:
parent
a946d039a6
commit
0ef93fced5
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue