arks-server 0.3.0

Git server: upload-pack / receive-pack + smart/dumb HTTP + daemon (M11/M25)
Documentation
//! arks-server — Git server role (M11 / M25 / Phase Sv + Sv2).
//! Claimed: smart HTTP (G15), dumb/SSH/v2/git:// (G29–G32), additive WebDAV
//! write for dumb HTTP push (R2), optional HTTP Basic (G36),
//! receive-pack githooks honor list (pre-receive/update/post-receive),
//! and native `info/lfs` Batch + Basic Transfer server (E7).
#![forbid(unsafe_code)]
mod advertise;
mod auth;
mod daemon;
mod dav;
mod dumb;
mod error;
mod hooks;
mod http;
pub mod lfs;
mod push_policy;
mod receive;
mod serve;
mod ssh_openssh_chacha;
mod ssh_serve;
mod stdio;
mod tls;
mod upload;
mod v2;
mod walk;
pub mod web_ui;
pub use auth::{
    BASIC_REALM, BasicAuthConfig, BasicCredential, base64_encode, basic_authorization_header,
};
pub use daemon::{
    DEFAULT_DAEMON_PORT, DaemonListeners, DaemonLog, DaemonOptions, DaemonPlatform, DaemonService,
    HostInfo, LogDestination, Outcome as DaemonOutcome, SYSLOG_IDENT, SYSLOG_SOCKET, ServicePolicy,
    ServiceTable, StdPlatform, bind_daemon, serve_daemon, serve_daemon_inetd,
    spawn_loopback_daemon,
};
pub use dumb::{dumb_info_refs_body, serve_dumb_path, update_server_info};
pub use error::ServerError;
pub use http::{HttpRequest, HttpResponse, handle_smart_http, handle_smart_http_auth};
pub use push_policy::{PushPolicy, Pusher, RefUpdate, install_push_policy, installed_push_policy};
pub use receive::{
    receive_advertisement, receive_pack, receive_pack_advertisement, receive_pack_as,
    receive_pack_with,
};
pub use serve::{
    ListenRebindSlot, PageHandler, ServeHttpOptions, serve_http, serve_http_scheme,
    serve_http_with_opts, spawn_loopback, spawn_loopback_with_opts,
};
pub use ssh_serve::{
    ServeSshOptions, default_authorized_keys_path, default_host_key_path, serve_ssh_listener,
    spawn_loopback_ssh, spawn_ssh_listener,
};
pub use stdio::{
    receive_pack_session, receive_pack_stream, receive_pack_stream_as, upload_pack_session,
    upload_pack_stream,
};
pub use tls::load_server_config;
/// Operator-supplied in-process TLS server config (B9); avoids naming `rustls` in CLI crates.
pub type ProductTlsServerConfig = std::sync::Arc<rustls::ServerConfig>;
pub use upload::{upload_advertisement, upload_pack_advertisement, upload_pack_result};
pub use v2::{handle_v2_request, v2_capability_advertisement, v2_capability_lines};
pub use web_ui::{
    WEB_UI_CSP, handle_web_ui, html_escape, init_bare_repo, multi_repo_page_handler,
    web_ui_page_handler, web_ui_page_handler_with_actions,
};
#[cfg(test)]
mod tests;