RustForge

rustforge

RustForge: the read-only, cgit-style git web host serving this site

rustforge / src / lib.rs
764 bytes · raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! forge: a small, read-only, cgit-style git web host.
//!
//! Module map (read them in this order if you're new):
//! - [`config`]     – the TOML file that lists which repos to serve
//! - [`git`]        – reading commits, trees, diffs with libgit2
//! - [`markdown`]   – README rendering (with raw HTML disabled)
//! - [`highlight`]  – syntax highlighting for the blob view
//! - [`pages`]      – the HTML for every page (maud templates)
//! - [`web`]        – URL routes and request handlers
//! - [`smart_http`] – `git clone` support via `git upload-pack`
//! - [`util`]       – small helpers (dates, path checks)

pub mod config;
pub mod git;
pub mod highlight;
pub mod markdown;
pub mod pages;
pub mod smart_http;
pub mod util;
pub mod web;