Skip to main content

git_zero_server/
lib.rs

1//! Git HTTP backend, upload-pack and opt-in receive-pack building blocks.
2//! The host supplies repository storage, authentication and HTTP transfer framing.
3#![no_std]
4#![forbid(unsafe_code)]
5
6pub mod dumb;
7mod http_backend;
8pub mod receive;
9mod route;
10#[cfg(feature = "read")]
11pub mod stored;
12pub mod stream;
13mod upload_pack;
14mod v2;
15
16pub use git_zero_core::http::{Request, Response};
17pub use http_backend::{HEAD, serve, serve_with_pack, serve_with_scratch};
18pub use upload_pack::{PackOutput, WantOptions, WantPolicy, write_upload_error};
19#[cfg(feature = "read")]
20pub use upload_pack::{
21    RevisionBuffers, RevisionStorage, SelectionBuffers, SelectionStorage, serve_with_revisions,
22    serve_with_selected_pack, serve_with_selected_pack_policy, serve_with_selection,
23    serve_with_selection_policy,
24};