hylix 0.5.1

Build, test & deploy verifiable apps on Hyli
Documentation
//! Basic usage example for Hylix CLI
//!
//! This example demonstrates how to use the Hylix CLI programmatically.

use hylix::{config::ContainerEnvConfig, BackendType, HylixConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Load configuration
    let config = HylixConfig::load()?;
    println!("Loaded config: {:?}", config);

    // Example of creating a new project configuration
    let new_config = HylixConfig {
        default_backend: BackendType::Risc0,
        devnet: hylix::config::DevnetConfig {
            node_image: "ghcr.io/hyli-org/hyli:0.14.0-rc3".to_string(),
            wallet_server_image: "ghcr.io/hyli-org/wallet/wallet-server:main".to_string(),
            wallet_ui_image: "ghcr.io/hyli-org/wallet/wallet-ui:main".to_string(),
            node_port: 8080,
            da_port: 4141,
            wallet_api_port: 3000,
            wallet_ws_port: 8081,
            wallet_ui_port: 8080,
            indexer_port: 8081,
            postgres_port: 5432,
            auto_start: true,
            container_env: ContainerEnvConfig::default(),
        },
        ..Default::default()
    };

    // Save the new configuration
    new_config.save()?;
    println!("Saved new configuration");

    Ok(())
}