Skip to content

Commit 2bc229e

Browse files
jdelliotfacebook-github-bot
authored andcommitted
Create new crate, remote-loader
Summary: # This Diff Begin to refactor remote loading bits into new crate - remote-loader. # Next Steps Continue to refactor the bits that are purely associated with fetching configurations from configerator. This will involve removing dependencies on Generater, ConfigSet and other Sapling specific types. # Context We would like to be able to know which partner is using our client library and collect metrics. We also want to be able to associate various configuration elements to a use case. To this end we are introducing a use-case-id, use-case configuration, and telemetry collection for a use-case. Reviewed By: quark-zju Differential Revision: D74726719 fbshipit-source-id: d8a5c91448702655911e2c3d11bee62137696c92
1 parent eccfc5d commit 2bc229e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

eden/scm/lib/config/loader/BUCK

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ rust_library(
8787
"fbsource//third-party/rust:zstd",
8888
"//common/rust/fbwhoami:fbwhoami",
8989
"//common/rust/shed/hostcaps:hostcaps",
90+
"//eden/scm/lib/config/fb/remote-loader:remote-loader",
9091
"//eden/scm/lib/hgtime:hgtime",
9192
"//eden/scm/lib/http-client:http-client",
9293
"//eden/scm/lib/io:io",

eden/scm/lib/config/loader/src/fb.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
//!
1313
//! [1]: https://github.com/facebook/sapling
1414
15+
/// Modify this module for remote (configerator) config loading.
16+
pub(crate) use remote_loader;
17+
1518
/// Modify this module for dynamic (conditional) system config.
1619
pub(crate) mod dynamic_system;
1720
pub(crate) mod remote_config_snapshot;

0 commit comments

Comments
 (0)