Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mononoke: add README.md and the missing pieces for supporting cargo #13

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
/external
# cmake
/_build

# Rust libraries and extensions
Cargo.lock
target/
36 changes: 36 additions & 0 deletions build/fbcode_builder/manifests/mononoke
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[manifest]
name = mononoke
fbsource_path = fbcode/eden
shipit_project = eden
shipit_fbcode_builder = true

[git]
repo_url = https://github.com/facebookexperimental/eden.git

[build.not(os=windows)]
builder = cargo

[build.os=windows]
# building Mononoke on windows is not supported
builder = nop

[cargo]
build_doc = true

[shipit.pathmap]
fbcode/eden/oss = .
fbcode/eden = eden
fbcode/eden/mononoke/public_autocargo = eden/mononoke
fbcode/tools/lfs = tools/lfs
tools/rust/ossconfigs = .

[shipit.strip]
^fbcode/eden/fs/eden-config\.h$
^fbcode/eden/hg/.*$
^fbcode/scm/mononoke/(?!public_autocargo).+/Cargo\.toml$

[dependencies]
rust-shed

[dependencies.fb=on]
rust
6 changes: 6 additions & 0 deletions eden/mononoke/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]

members = [
"server/session_id",
"sshrelay",
]
23 changes: 23 additions & 0 deletions eden/mononoke/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Mononoke

Mononoke is a next-generation server for the [Mercurial source control
system](https://www.mercurial-scm.org/), meant to scale up to accepting
thousands of commits every hour across millions of files. It is primarily
written in the [Rust programming language](https://www.rust-lang.org/en-US/).

## 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