Skip to content

Commit

Permalink
florestad: Add lib.rs
Browse files Browse the repository at this point in the history
This commit introduces a lib.rs for florestad. With this change, other softwares
can spawn a florestad process and run on the background.
  • Loading branch information
Davidson-Souza committed Feb 19, 2024
1 parent 03c09d6 commit f39fa45
Show file tree
Hide file tree
Showing 4 changed files with 464 additions and 406 deletions.
18 changes: 18 additions & 0 deletions florestad/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pub mod cli;
pub mod config_file;
pub mod error;
pub mod json_rpc;
pub mod run;
pub mod slip132;
pub mod wallet_input;
use run::run_with_config;
use run::Config;

/// Start florestad and runs it
///
/// This method will spawn a `florestad` instance, initialize all the modules and services, and
/// wait until florestad returns. This method shouldn't be called on your application's main
/// thread, since it'll block while florestad is running.
pub fn start_florestad(config: Config) {
run_with_config(config);
}
Loading

0 comments on commit f39fa45

Please sign in to comment.