@@ -5,23 +5,123 @@ oncall("scm_client_infra")
55rust_library (
66 name = "edenfs-client" ,
77 srcs = glob (["src/**/*.rs" ]),
8+ autocargo = {"cargo_toml_config" : {"dependencies_override" : {
9+ "dependencies" : {
10+ "anyhow" : {"version" : "1.0.98" },
11+ "async-recursion" : {"version" : "1.1.1" },
12+ "async-trait" : {"version" : "0.1.86" },
13+ "byteorder" : {"version" : "1.5" },
14+ "dirs" : {"version" : "6.0" },
15+ "dunce" : {"version" : "1.0.5" },
16+ "edenfs-config" : {"path" : "../edenfs-config" },
17+ "edenfs-error" : {"path" : "../edenfs-error" },
18+ "edenfs-utils" : {"path" : "../edenfs-utils" },
19+ "fbinit" : {"path" : "../../../../common/rust/shed/fbinit" },
20+ "futures" : {
21+ "features" : [
22+ "async-await" ,
23+ "compat" ,
24+ ],
25+ "version" : "0.3.31" ,
26+ },
27+ "futures_stats" : {"path" : "../../../../common/rust/shed/futures_stats" },
28+ "hex" : {
29+ "features" : ["alloc" ],
30+ "version" : "0.4.3" ,
31+ },
32+ "hg_util" : {
33+ "package" : "sapling-util" ,
34+ "path" : "../../../scm/lib/util" ,
35+ },
36+ "lazy_static" : {"version" : "1.5" },
37+ "libc" : {"version" : "0.2.139" },
38+ "parking_lot" : {
39+ "features" : ["send_guard" ],
40+ "version" : "0.12.1" ,
41+ },
42+ "pathdiff" : {"version" : "0.2" },
43+ "rand" : {
44+ "features" : ["small_rng" ],
45+ "version" : "0.9" ,
46+ },
47+ "rayon" : {"version" : "1.11.0" },
48+ "regex" : {"version" : "1.12.2" },
49+ "sapling-atomicfile" : {"path" : "../../../scm/lib/atomicfile" },
50+ "sapling-config-remote-loader" : {"path" : "../../../scm/lib/config/remote-loader" },
51+ "sapling-http-client" : {"path" : "../../../scm/lib/http-client" },
52+ "sapling-thrift-types" : {"path" : "../../../scm/lib/thrift-types" },
53+ "serde" : {
54+ "features" : [
55+ "derive" ,
56+ "rc" ,
57+ ],
58+ "version" : "1.0.219" ,
59+ },
60+ "serde_json" : {
61+ "features" : [
62+ "alloc" ,
63+ "float_roundtrip" ,
64+ "raw_value" ,
65+ "unbounded_depth" ,
66+ ],
67+ "version" : "1.0.140" ,
68+ },
69+ "shlex" : {"version" : "1.3" },
70+ "strum" : {
71+ "features" : ["derive" ],
72+ "version" : "0.27.1" ,
73+ },
74+ "subprocess" : {"version" : "0.2.15" },
75+ "sysinfo" : {"version" : "0.35.1" },
76+ "thrift_streaming_clients" : {"path" : "../../service/thrift_streaming/clients" },
77+ "tokio" : {
78+ "features" : [
79+ "full" ,
80+ "test-util" ,
81+ "tracing" ,
82+ ],
83+ "version" : "1.47.1" ,
84+ },
85+ "toml" : {
86+ "features" : ["preserve_order" ],
87+ "version" : "0.9.11" ,
88+ },
89+ "tracing" : {
90+ "features" : [
91+ "attributes" ,
92+ "valuable" ,
93+ ],
94+ "version" : "0.1.41" ,
95+ },
96+ "uuid" : {
97+ "features" : [
98+ "rng-getrandom" ,
99+ "serde" ,
100+ "v4" ,
101+ "v5" ,
102+ "v6" ,
103+ "v7" ,
104+ "v8" ,
105+ ],
106+ "version" : "1.17" ,
107+ },
108+ "whoami" : {"version" : "1.5" },
109+ },
110+ "dev-dependencies" : {
111+ "fb303_core_clients" : {"path" : "../../../../fb303/thrift/rust/clients" },
112+ "fbinit-tokio" : {"path" : "../../../../common/rust/shed/fbinit/fbinit-tokio" },
113+ "mockall" : {"version" : "0.13.1" },
114+ "serde_test" : {"version" : "1.0.167" },
115+ "tempfile" : {"version" : "3.22" },
116+ },
117+ "target" : {
118+ "'cfg(target_os = \" macos\" )'" : {"dependencies" : {"psutil" : {"version" : "3.2.2" }}},
119+ "'cfg(target_os = \" windows\" )'" : {"dependencies" : {"mkscratch" : {"path" : "../../../scm/exec/scratch" }}},
120+ },
121+ }}},
8122 named_deps = {
9123 "hg_util" : "//eden/scm/lib/util:util" ,
10124 },
11- os_deps = [
12- (
13- "windows" ,
14- [
15- "//eden/scm/exec/scratch:mkscratch" ,
16- ],
17- ),
18- (
19- "macos" ,
20- [
21- "fbsource//third-party/rust:psutil" ,
22- ],
23- ),
24- ],
25125 test_deps = [
26126 "fbsource//third-party/rust:mockall" ,
27127 "fbsource//third-party/rust:rand" ,
@@ -72,5 +172,13 @@ rust_library(
72172 "//eden/scm/lib/config/remote-loader:remote-loader" ,
73173 "//eden/scm/lib/http-client:http-client" ,
74174 "//eden/scm/lib/thrift-types:thrift-types" ,
75- ],
175+ ] + select ({
176+ "DEFAULT" : [],
177+ "ovr_config//os:macos" : [
178+ "fbsource//third-party/rust:psutil" ,
179+ ],
180+ "ovr_config//os:windows" : [
181+ "//eden/scm/exec/scratch:mkscratch" ,
182+ ],
183+ }),
76184)
0 commit comments