| 1 | // This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | // License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | // file, You can obtain one at https://mozilla.org/MPL/2.0/. |
| 4 | |
| 5 | //! `fabrica` — a self-hosted git server. |
| 6 | //! |
| 7 | //! The binary parses arguments through [`cli`] and dispatches. The one thing it |
| 8 | //! does beyond that is wire the servers together for `serve` (see [`serve`]), so |
| 9 | //! that no library crate has to depend on `web`. |
| 10 | |
| 11 | mod serve; |
| 12 | |
| 13 | use std::process::ExitCode; |
| 14 | |
| 15 | fn main() -> ExitCode { |
| 16 | cli::run(serve::run) |
| 17 | } |