mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-06 05:49:30 +01:00
15 lines
381 B
Rust
15 lines
381 B
Rust
//! This is a test plugin used to verify that we can compile and run
|
|
//! plugins using the Rust API against c-lightning.
|
|
|
|
use cln_plugin::Builder;
|
|
use tokio;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), anyhow::Error> {
|
|
env_logger::init();
|
|
|
|
let (plugin, stdin) = Builder::new((), tokio::io::stdin(), tokio::io::stdout()).build();
|
|
plugin.run(stdin).await;
|
|
Ok(())
|
|
}
|