notedthat-server 0.1.3

NotedThat server binary — HTTP API, WebDAV, and remote MCP in one process
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `notedthat-server` binary entry point.

use notedthat_server::{config::Config, run::run, tracing_init::init_tracing};

/// `NotedThat` server entry point.
///
/// Parses configuration from environment variables, initializes tracing,
/// and delegates to [`run`] for all application logic. Returns non-zero on
/// any startup failure (config missing/invalid, S3 provisioning error, etc.).
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let config = Config::from_env().map_err(|e| {
        eprintln!("startup: {e}");
        e
    })?;
    init_tracing(config.log_format)?;
    run(config).await
}