-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41f80a7
commit 4b963bf
Showing
3 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
#[cfg(feature = "native")] | ||
#[tokio::main] | ||
async fn main() -> Result<(), anyhow::Error> { | ||
demo_stf::cli::run::<celestia::CelestiaService::Spec>().await | ||
} | ||
|
||
#[cfg(not(feature = "native"))] | ||
fn main() -> Result<(), anyhow::Error> { | ||
Err(anyhow::format_err!("CLI support is only available when the app is compiled with the 'native' flag. You can recompile with 'cargo build --features=native' to use the CLI")) | ||
demo_stf::cli::run::< | ||
<celestia::CelestiaService as sov_rollup_interface::services::da::DaService>::Spec, | ||
>() | ||
.await | ||
} |