mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
fd388aac1a
Summary: Implement a new version of data derivation in the derived data manager. This is different from the old version in a few ways: * `derived_data::BonsaiDerivable` is replaced by `derived_data_manager::BonsaiDerivable`. This trait defines both how to perform derivation and how to store and retrieve mapping values. Derivation is performed with reference to the derived data manager, rather than `BlobRepo`. * The old `Mapping` structs and traits are replaced with a direct implementation in the derived data manager, using the `BonsaiDerivable` trait to handle the derived-data-type-specific parts. * The new implementation assumes we will stick with parallel derivation, and doesn't implement serial derivation. Code is copied from the `derived_data` crate, as it is intended to be a replacement once all the derived data types are migrated, and re-using code would create a circular dependency during migration. This only covers the basic derivation implementation used during production. The derived data manager will also take over backfilling, but that will happen in a later diff. Reviewed By: yancouto Differential Revision: D30805046 fbshipit-source-id: b9660dd957fdf762f621b2cb37fc2eea7bf03074
51 lines
3.0 KiB
TOML
51 lines
3.0 KiB
TOML
# @generated by autocargo
|
|
|
|
[package]
|
|
name = "derived_data_manager"
|
|
version = "0.1.0"
|
|
authors = ["Facebook"]
|
|
edition = "2018"
|
|
license = "GPLv2+"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
async-trait = "0.1.51"
|
|
blobstore = { version = "0.1.0", path = "../../blobstore" }
|
|
borrowed = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
bounded_traversal = { version = "0.1.0", path = "../../common/bounded_traversal" }
|
|
cacheblob = { version = "0.1.0", path = "../../blobstore/cacheblob" }
|
|
changesets = { version = "0.1.0", path = "../../changesets" }
|
|
cloned = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
context = { version = "0.1.0", path = "../../server/context" }
|
|
futures = { version = "0.3.13", features = ["async-await", "compat"] }
|
|
futures_stats = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
metaconfig_types = { version = "0.1.0", path = "../../metaconfig/types" }
|
|
mononoke_types = { version = "0.1.0", path = "../../mononoke_types" }
|
|
rand = { version = "0.7", features = ["small_rng"] }
|
|
repo_blobstore = { version = "0.1.0", path = "../../blobrepo/repo_blobstore" }
|
|
scuba_ext = { version = "0.1.0", path = "../../common/scuba_ext" }
|
|
slog = { version = "2.5", features = ["max_level_trace", "nested-values"] }
|
|
thiserror = "1.0.29"
|
|
time_ext = { version = "0.1.0", git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
tokio = { version = "1.10", features = ["full", "test-util", "tracing"] }
|
|
topo_sort = { version = "0.1.0", path = "../../common/topo_sort" }
|
|
tunables = { version = "0.1.0", path = "../../tunables" }
|
|
|
|
[patch.crates-io]
|
|
daemonize = { git = "https://github.com/krallin/daemonize", rev = "f7be28efa1b4a70e43bb37b5f4ff4d664992edca" }
|
|
lru-disk-cache = { git = "https://github.com/mozilla/sccache", rev = "033ebaae69beeb0ac04e8c35d6ff1103487bd9a3" }
|
|
mockall = { git = "https://github.com/fbsource/mockall", rev = "4bc4ff4ab7d04ebaa7e7c9510a3337b7dda9d324" }
|
|
mockall_derive = { git = "https://github.com/fbsource/mockall", rev = "4bc4ff4ab7d04ebaa7e7c9510a3337b7dda9d324" }
|
|
mysql_common = { git = "https://github.com/iammxt/rust_mysql_common", rev = "0e4c86952f1e799960e736c0b2bb9d2a6d935bf1" }
|
|
object = { git = "https://github.com/gimli-rs/object", rev = "9271d2cd06d1fed11259225d915178fe3824a56d" }
|
|
prost = { git = "https://github.com/gabrielrussoc/prost", branch = "protoc-runtime" }
|
|
prost-derive = { git = "https://github.com/gabrielrussoc/prost", branch = "protoc-runtime" }
|
|
prost-types = { git = "https://github.com/gabrielrussoc/prost", branch = "protoc-runtime" }
|
|
rustfilt = { git = "https://github.com/jsgf/rustfilt.git", rev = "8141fa7f1caee562ee8daffb2ddeca3d1f0d36e5" }
|
|
shellexpand = { git = "https://github.com/fanzeyi/shellexpand.git", rev = "179447a3f8fccd765acfd2eed15a54c716c49cfe" }
|
|
tokio-core = { git = "https://github.com/bolinfest/tokio-core", rev = "5f37aa3c627d56ee49154bc851d6930f5ab4398f" }
|
|
toml = { git = "https://github.com/jsgf/toml-rs", branch = "dotted-table-0.5.7" }
|