mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
e4dab84619
Summary: This diff prepares the Mononoke codebase for composition-based extendability of `ScubaSampleBuilder`. Specifically, in the near future I will add: - new methods for verbose scuba logging - new data field (`ObservabilityContext`) to check if verbose logging should be enabled or disabled The higher-level goal here is to be able to enable/disable verbose Scuba logging (either overall or for certain slices of logs, like for a certain session id) in real time, without restarting Mononoke. To do so, I plan to expose the aforementioned verbose logging methods, which will run a check against the stored `ObservabilityContext` and make a decision of whether the logging is enabled or not. `ObservabilityContext` will of course hide implementation details from the renamed `ScubaSampleBuilderExt`, and just provide a yes/no answer based on the current config and sample fields. At the moment this should be a completely harmless change. Reviewed By: krallin Differential Revision: D25211089 fbshipit-source-id: ea03dda82fadb7fc91a2433e12e220582ede5fb8
35 lines
1.2 KiB
TOML
35 lines
1.2 KiB
TOML
[package]
|
|
name = "cache_warmup"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs"]
|
|
|
|
[lib]
|
|
path = "src/cache_warmup.rs"
|
|
|
|
[dependencies]
|
|
blobrepo = { path = "../blobrepo" }
|
|
blobrepo_hg = { path = "../blobrepo/blobrepo_hg" }
|
|
blobstore = { path = "../blobstore" }
|
|
bookmarks = { path = "../bookmarks" }
|
|
context = { path = "../server/context" }
|
|
derived_data = { path = "../derived_data" }
|
|
derived_data_filenodes = { path = "../derived_data/filenodes" }
|
|
filenodes = { path = "../filenodes" }
|
|
manifest = { path = "../manifest" }
|
|
mercurial_types = { path = "../mercurial/types" }
|
|
metaconfig_types = { path = "../metaconfig/types" }
|
|
microwave = { path = "../microwave" }
|
|
mononoke_types = { path = "../mononoke_types" }
|
|
revset = { path = "../revset" }
|
|
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
futures_stats = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
anyhow = "1.0"
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
futures-old = { package = "futures", version = "0.1" }
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|
|
thiserror = "1.0"
|
|
tokio = { version = "=0.2.13", features = ["full"] }
|