rnx 0.7.0

The Rust web development scaffold, support salvo and axum
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod cmd;
mod core;

use clap::Parser;

fn main() {
    // 解析command
    let cli = cmd::Cli::parse();
    // 处理command
    match cli.command {
        Some(cmd::Command::New { name, axum, app }) => cmd::project::run(name, axum, app),
        Some(cmd::Command::App { name, axum }) => cmd::app::run(name, axum),
        _ => {
            println!("🦀 Welcome to use noble-gase[Rust] scaffold");
        }
    }
}