watchso 0.1.0

Hot reload Solana programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod frameworks;

use std::env;

use frameworks::get_framework_from_path;
use miette::IntoDiagnostic;
use watchso::watch;

#[tokio::main]
async fn main() -> miette::Result<()> {
    let origin = env::current_dir().into_diagnostic()?;
    let framework = get_framework_from_path(origin).await?;
    watch(framework).await
}