inapt 0.3.2

A minimal Debian/Ubuntu APT repository proxy written in Rust. Exposes a valid APT repo structure over HTTP, sourcing .deb packages from GitHub Releases.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let tracing_config = inapt::tracing::Config::from_env()?;
    let tracer = tracing_config.install()?;

    let config_path = std::env::var("CONFIG_PATH")
        .ok()
        .unwrap_or("./config.toml".into());
    let config = inapt::Config::from_path(config_path)?;
    let app = config.build().await?;
    let res = app.run().await;

    tracer.shutdown();

    res
}