c6a7a35c2a
Summary: Sometimes the `AsyncIntoResponse` trait needs additional data (e.g. the set of commit identity schemes the client is interested in) to convert the item into the response type. Currently we use a tuple of `(item, &additional_data)` to work around this, however this will become less readable as we add new items with more additional data. Split this use-case out into a new trait: `AsyncIntoResponseWith`. This defines an associated type which is the type of the additional data needed, and provides a new method `into_response_with`, where a reference to the additional data can be provided. Note that conversions for tuple types that are logical `(name, value)` or `(id, value)` pairs are still ok. It is specifically the case where we have `(item, &additional_data)` that we are converting here (i.e. the additional data merely informs the conversion, it is not part of the resulting response value). Reviewed By: aslpavel Differential Revision: D23813371 fbshipit-source-id: c0dcfe826288ad53ad572ae4dd956540605998f5 |
||
---|---|---|
.. | ||
benchmark | ||
blobimport_lib | ||
blobrepo | ||
blobrepo_utils | ||
blobstore | ||
blobstore_sync_queue | ||
bonsai_git_mapping | ||
bonsai_globalrev_mapping | ||
bonsai_hg_mapping | ||
bookmarks | ||
bulkops | ||
cache_warmup | ||
changesets | ||
cmdlib | ||
cmds | ||
commit_rewriting | ||
common | ||
derived_data | ||
edenapi_server | ||
fastreplay | ||
filenodes | ||
filestore | ||
git | ||
gotham_ext | ||
hgcli | ||
hgproto | ||
hook_tailer | ||
hooks | ||
lfs_import_lib | ||
lfs_protocol | ||
lfs_server | ||
load_limiter | ||
manifest | ||
mercurial | ||
metaconfig | ||
microwave | ||
mononoke_api | ||
mononoke_commitcloud_bookmarks_filler | ||
mononoke_hg_sync_job | ||
mononoke_types | ||
mutable_counters | ||
newfilenodes | ||
permission_checker | ||
phases | ||
pushrebase | ||
reachabilityindex | ||
regenerate_hg_filenodes | ||
repo_client | ||
repo_import | ||
revset | ||
scs_server | ||
segmented_changelog | ||
server | ||
sshrelay | ||
tests | ||
time_window_counter | ||
tunables | ||
unbundle_replay | ||
walker | ||
Cargo.toml | ||
README.md |
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.
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