A Scalable, User-Friendly Source Control System.
Go to file
Arun Kulshreshtha 5ca1a925b5 gotham_ext: factor out common HTTP boilerplate into new crate
Summary:
A lot of the code in the LFS server is generally useful for any Gotham-based HTTP server, so let's create a place to put the common pieces. Mononoke's HTTP-based services like the LFS server and EdenAPI server can then depend on this common crate.

In this initial diff, I've simply factored out the `Middleware` trait, as well as the custom Handler struct, which right now appears to simply be a mechanism to run the middleware before and after each request.

Given that none of this code appears to be LFS-specific, I hope this is reasonable. I'm open to suggestions for naming things; for now I've named the new crate `gotham_ext` since it's built on Gotham, but I could see us using another name if we intend to move in the direction of plain `hyper` in the future.

In later diffs, I intend to start moving over some of the more general Middleware from the LFS server to the new crate (though LFS-specific Middleware will remain a part of the LFS server code).

Reviewed By: krallin

Differential Revision: D19714662

fbshipit-source-id: 21494d18be659a8ec399c61eb22ee10185efcc14
2020-02-04 16:31:11 -08:00
.github/workflows add config for GitHub Actions 2020-01-21 14:23:06 +01:00
build/fbcode_builder Move CheckAtomic cmake module out of the shared cmake dir 2020-01-24 06:06:56 -08:00
mononoke gotham_ext: factor out common HTTP boilerplate into new crate 2020-02-04 16:31:11 -08:00
.gitignore mononoke: add missing license headers and move few oss files around 2020-01-20 07:54:04 -08:00
.travis.yml Re-sync with internal repository 2020-01-17 14:43:45 +01:00
Cargo.toml opensource/fbcode_builder/getdeps.py: support cargo dependencies in cargo builds 2020-01-21 04:24:43 -08:00
CODE_OF_CONDUCT.md mononoke: meet open source requirements, e.g. fix license header or add Code of Conduct 2020-01-17 05:03:39 -08:00
CONTRIBUTING.md Initial commit 2017-07-27 18:00:19 -07:00
COPYING mononoke: add missing license headers and move few oss files around 2020-01-20 07:54:04 -08:00
LICENSE Initial commit 2017-07-27 18:00:19 -07:00
README.md mononoke: meet open source requirements, e.g. fix license header or add Code of Conduct 2020-01-17 05:03:39 -08:00
rustfmt.toml Get rustfmt/rls working in fbcode again. 2019-09-19 18:06:23 -07:00

Mononoke

Mononoke is a next-generation server for the Mercurial source control system, meant to scale up to accepting thousands of commits every hour across millions of files. It is primarily written in the Rust programming language.

Caveat Emptor

Mononoke is still in early stages of development. We are making it available now because we plan to start making references to it from our other open source projects such as Eden.

The version that we provide on GitHub does not build yet.

This is because the code is exported verbatim from an internal repository at Facebook, and not all of the scaffolding from our internal repository can be easily extracted. The key areas where we need to shore things up are:

  • Full support for a standard cargo build.
  • Open source replacements for Facebook-internal services (blob store, logging etc).

The current goal is to get Mononoke working on Linux. Other Unix-like OSes may be supported in the future

Contributing

See the CONTRIBUTING file for how to help out.

License

Mononoke is GNU General Public License licensed, as found in the LICENSE file.