Skip to main content

waveless_runtime/
frontend_options.rs

1// Waveless
2// Copyright (C) 2026 Oscar Alvarez Gonzalez
3
4use crate::*;
5
6/// Compiler's frontend's options.
7#[derive(Subcommand)]
8pub enum ExecutorFrontendOptions {
9    /// Launches the server runtime with the specified Waveless' binary.
10    #[command(about = "Launches the server runtime with the specified Waveless' binary.")]
11    Run {
12        #[arg(help = "Binary path.")]
13        path: PathBuf,
14
15        #[arg(help = "Listening address.")]
16        addr: Option<SocketAddr>,
17
18        #[arg(long = "tls_cert", help = "TLS cert path.")]
19        tls_cert: Option<PathBuf>,
20
21        #[arg(long = "tls_cert_key", help = "TLS cert key path.")]
22        tls_cert_key: Option<PathBuf>,
23    },
24}