Exponentially easier to use moq-transport as there's no message handling required. This is a BREAKING CHANGE.
24 lines
545 B
Rust
24 lines
545 B
Rust
use std::{net, path};
|
|
|
|
use clap::Parser;
|
|
|
|
/// Search for a pattern in a file and display the lines that contain it.
|
|
#[derive(Parser, Clone)]
|
|
pub struct Config {
|
|
/// Listen on this address
|
|
#[arg(long, default_value = "[::]:4443")]
|
|
pub bind: net::SocketAddr,
|
|
|
|
/// Use the certificate file at this path
|
|
#[arg(long)]
|
|
pub cert: path::PathBuf,
|
|
|
|
/// Use the private key at this path
|
|
#[arg(long)]
|
|
pub key: path::PathBuf,
|
|
|
|
/// Listen on HTTPS and serve /fingerprint, for self-signed certificates
|
|
#[arg(long, action)]
|
|
pub fingerprint: bool,
|
|
}
|