sapling/eden/hg-server/lib
David Tolnay a32e60ecef Separate constructor for passing spawner
Reviewed By: jsgf

Differential Revision: D31584279

fbshipit-source-id: 49eeb01eea5dadf94c3f4afbaf973f6e882bb925
2021-10-12 18:35:11 -07:00
..
async-runtime vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
auth third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
backingstore Moving thrift targets 2021-08-17 06:49:44 -07:00
blackbox Enable unbounded_depth feature for serde_json 2021-09-30 14:56:43 -07:00
bookmarkstore third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
checkout update rand and quickcheck 2021-09-29 13:59:49 -07:00
clidispatch third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
cliparser third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
commitcloudsubscriber hg: Use latest version of reqwest 2021-10-08 08:00:57 -07:00
configparser hg: Use latest version of reqwest 2021-10-08 08:00:57 -07:00
cpython-async vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
cpython-ext third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
dag update rand and quickcheck 2021-09-29 13:59:49 -07:00
dev-logger third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
drawdag server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
edenapi Bump 'structopt' to from 0.3.21 to 0.3.23 2021-10-09 09:34:57 -07:00
edenfs-client Separate constructor for passing spawner 2021-10-12 18:35:11 -07:00
encoding server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
fsinfo Moving thrift targets 2021-08-17 06:49:44 -07:00
fsyncglob third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
hg-http third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
hg-metrics server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
hgcommands third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
hgcommits third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
hgtime third-party/rust: update time to 0.2 2021-06-03 13:52:54 -07:00
http-client Bump 'structopt' to from 0.3.21 to 0.3.23 2021-10-09 09:34:57 -07:00
indexedlog update rand and quickcheck 2021-09-29 13:59:49 -07:00
io Daily common/rust/cargo_from_buck/bin/autocargo 2021-07-20 05:00:14 -07:00
linelog server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
lz4-pyframe update rand and quickcheck 2021-09-29 13:59:49 -07:00
manifest update rand and quickcheck 2021-09-29 13:59:49 -07:00
manifest-tree update rand and quickcheck 2021-09-29 13:59:49 -07:00
metalog update rand and quickcheck 2021-09-29 13:59:49 -07:00
mincode update rand and quickcheck 2021-09-29 13:59:49 -07:00
minibench server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
minibytes update rand and quickcheck 2021-09-29 13:59:49 -07:00
mpatch Moving thrift targets 2021-08-17 06:49:44 -07:00
mpatch-sys server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
mutationstore update rand and quickcheck 2021-09-29 13:59:49 -07:00
nodemap update rand and quickcheck 2021-09-29 13:59:49 -07:00
nonblocking server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
pathmatcher update globset from 0.4.5 to 0.4.7 2021-06-15 15:47:49 -07:00
procinfo Moving thrift targets 2021-08-17 06:49:44 -07:00
progress vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
radixbuf Fix broken builds caused by rand upgrade 2021-09-29 23:09:58 -07:00
renderdag server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
revisionstore Enable unbounded_depth feature for serde_json 2021-09-30 14:56:43 -07:00
revlogindex third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
spawn-ext Moving thrift targets 2021-08-17 06:49:44 -07:00
streams vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
taggederror third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
taggederror-util server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
third-party Rename fbthrift_ext to fbthrift_ext-02 2021-09-01 18:28:53 -07:00
thrift-types Separate constructor for passing spawner 2021-10-12 18:35:11 -07:00
tracing-analyzer Enable unbounded_depth feature for serde_json 2021-09-30 14:56:43 -07:00
tracing-collector Enable unbounded_depth feature for serde_json 2021-09-30 14:56:43 -07:00
tracing-runtime-callsite third-party/rust: bump all the tracing packages 2021-09-15 16:52:25 -07:00
treestate update rand and quickcheck 2021-09-29 13:59:49 -07:00
types Make RNG in 'arbitrary' calls more correct 2021-10-06 09:39:23 -07:00
util update rand and quickcheck 2021-09-29 13:59:49 -07:00
version server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
vfs vendor tokio-console and console-subscriber 2021-09-17 16:23:43 -07:00
vlqencoding update rand and quickcheck 2021-09-29 13:59:49 -07:00
workingcopy third-party/rust: Update thiserror from 1.0.23 to 1.0.29 2021-09-08 20:49:35 -07:00
xdiff Bump 'structopt' to from 0.3.21 to 0.3.23 2021-10-09 09:34:57 -07:00
xdiff-sys server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
zstdelta update rand and quickcheck 2021-09-29 13:59:49 -07:00
zstore update rand and quickcheck 2021-09-29 13:59:49 -07:00
CMakeLists.txt server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
README.md server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00
run_cargo_tests.py server: copy hg to a new hg-server directory 2021-04-09 10:09:06 -07:00

lib

Any native code (C/C++/Rust) that Mercurial (either core or extensions) depends on should go here. Python code, or native code that depends on Python code (e.g. #include <Python.h> or use cpython) is disallowed.

As we start to convert more of Mercurial into Rust, and write new paths entrirely in native code, we'll want to limit our dependency on Python, which is why this barrier exists.

See also hgext/extlib/README.md, mercurial/cext/README.mb.

How do I choose between lib and extlib (and cext)?

If your code is native and doesn't depend on Python (awesome!), it goes here.

Otherwise, put it in hgext/extlib (if it's only used by extensions) or mercurial/cext (if it's used by extensions or core).