act-cli 0.8.0__tar.gz → 0.8.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. {act_cli-0.8.0 → act_cli-0.8.1}/Cargo.lock +74 -51
  2. {act_cli-0.8.0 → act_cli-0.8.1}/Cargo.toml +1 -1
  3. {act_cli-0.8.0 → act_cli-0.8.1}/PKG-INFO +1 -1
  4. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/Cargo.toml +2 -2
  5. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/lock.rs +6 -5
  6. {act_cli-0.8.0 → act_cli-0.8.1}/README.md +0 -0
  7. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/Cargo.toml +0 -0
  8. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/README.md +0 -0
  9. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/build.rs +0 -0
  10. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/config.rs +0 -0
  11. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/format.rs +0 -0
  12. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/http.rs +0 -0
  13. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/main.rs +0 -0
  14. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/resolve.rs +0 -0
  15. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/rmcp_bridge.rs +0 -0
  16. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/bindings/mod.rs +0 -0
  17. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/effective.rs +0 -0
  18. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/fs_matcher.rs +0 -0
  19. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/fs_policy.rs +0 -0
  20. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/http_client.rs +0 -0
  21. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/http_policy.rs +0 -0
  22. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/mod.rs +0 -0
  23. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/network.rs +0 -0
  24. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/sessions.rs +0 -0
  25. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/sockets_policy.rs +0 -0
  26. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps/act-core/act-core.wit +0 -0
  27. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps/act-tools/act-tools.wit +0 -0
  28. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps.lock +0 -0
  29. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps.toml +0 -0
  30. {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/world.wit +0 -0
  31. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/README.md +0 -0
  32. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/fetch.rs +0 -0
  33. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/index.rs +0 -0
  34. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/layout.rs +0 -0
  35. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/lib.rs +0 -0
  36. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/provenance.rs +0 -0
  37. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/reference.rs +0 -0
  38. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/referrer.rs +0 -0
  39. {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/store.rs +0 -0
  40. {act_cli-0.8.0 → act_cli-0.8.1}/pyproject.toml +0 -0
@@ -4,7 +4,7 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "act-build"
7
- version = "0.8.0"
7
+ version = "0.8.1"
8
8
  dependencies = [
9
9
  "act-types",
10
10
  "anyhow",
@@ -14,11 +14,13 @@ dependencies = [
14
14
  "dirs",
15
15
  "flate2",
16
16
  "globset",
17
+ "http",
17
18
  "include_dir",
18
19
  "json-patch",
19
20
  "minijinja",
20
21
  "oci-client",
21
- "reqwest 0.13.3",
22
+ "olpc-cjson",
23
+ "reqwest 0.13.4",
22
24
  "serde",
23
25
  "serde_json",
24
26
  "sha2 0.11.0",
@@ -35,7 +37,7 @@ dependencies = [
35
37
 
36
38
  [[package]]
37
39
  name = "act-cli"
38
- version = "0.8.0"
40
+ version = "0.8.1"
39
41
  dependencies = [
40
42
  "act-store",
41
43
  "act-types",
@@ -58,7 +60,7 @@ dependencies = [
58
60
  "owo-colors",
59
61
  "path-clean",
60
62
  "regex",
61
- "reqwest 0.13.3",
63
+ "reqwest 0.13.4",
62
64
  "rmcp",
63
65
  "serde",
64
66
  "serde_json",
@@ -81,11 +83,11 @@ dependencies = [
81
83
 
82
84
  [[package]]
83
85
  name = "act-store"
84
- version = "0.1.0"
86
+ version = "0.1.1"
85
87
  dependencies = [
86
88
  "chrono",
87
89
  "dirs",
88
- "fs2",
90
+ "fs4",
89
91
  "oci-client",
90
92
  "oci-spec",
91
93
  "regex",
@@ -326,9 +328,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
326
328
 
327
329
  [[package]]
328
330
  name = "bitflags"
329
- version = "2.11.1"
331
+ version = "2.12.1"
330
332
  source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
333
+ checksum = "84d7ced0ae9557296835c32bf1b1e02b44c746701f898460fb000d7eaa84f00a"
332
334
 
333
335
  [[package]]
334
336
  name = "block-buffer"
@@ -452,9 +454,9 @@ dependencies = [
452
454
 
453
455
  [[package]]
454
456
  name = "cc"
455
- version = "1.2.62"
457
+ version = "1.2.63"
456
458
  source = "registry+https://github.com/rust-lang/crates.io-index"
457
- checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
459
+ checksum = "556e016178bb5662a08681bbe0f00f8e17631781a4dfc8c45e466e4b185ec27f"
458
460
  dependencies = [
459
461
  "find-msvc-tools",
460
462
  "jobserver",
@@ -1073,9 +1075,9 @@ dependencies = [
1073
1075
 
1074
1076
  [[package]]
1075
1077
  name = "displaydoc"
1076
- version = "0.2.5"
1078
+ version = "0.2.6"
1077
1079
  source = "registry+https://github.com/rust-lang/crates.io-index"
1078
- checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
1080
+ checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"
1079
1081
  dependencies = [
1080
1082
  "proc-macro2",
1081
1083
  "quote",
@@ -1226,13 +1228,13 @@ dependencies = [
1226
1228
  ]
1227
1229
 
1228
1230
  [[package]]
1229
- name = "fs2"
1230
- version = "0.4.3"
1231
+ name = "fs4"
1232
+ version = "1.1.0"
1231
1233
  source = "registry+https://github.com/rust-lang/crates.io-index"
1232
- checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213"
1234
+ checksum = "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5"
1233
1235
  dependencies = [
1234
- "libc",
1235
- "winapi",
1236
+ "rustix",
1237
+ "windows-sys 0.61.2",
1236
1238
  ]
1237
1239
 
1238
1240
  [[package]]
@@ -1513,9 +1515,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1513
1515
 
1514
1516
  [[package]]
1515
1517
  name = "http"
1516
- version = "1.4.0"
1518
+ version = "1.4.1"
1517
1519
  source = "registry+https://github.com/rust-lang/crates.io-index"
1518
- checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
1520
+ checksum = "8be7462df143984c4598a256ef469b251d7d7f9e271135073e78fc535414f3d0"
1519
1521
  dependencies = [
1520
1522
  "bytes",
1521
1523
  "itoa",
@@ -1576,9 +1578,9 @@ dependencies = [
1576
1578
 
1577
1579
  [[package]]
1578
1580
  name = "hyper"
1579
- version = "1.9.0"
1581
+ version = "1.10.1"
1580
1582
  source = "registry+https://github.com/rust-lang/crates.io-index"
1581
- checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
1583
+ checksum = "55281c53a1894c864990125767da440a4e630446785086f52523b20033b74498"
1582
1584
  dependencies = [
1583
1585
  "atomic-waker",
1584
1586
  "bytes",
@@ -2059,9 +2061,9 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
2059
2061
 
2060
2062
  [[package]]
2061
2063
  name = "libredox"
2062
- version = "0.1.16"
2064
+ version = "0.1.17"
2063
2065
  source = "registry+https://github.com/rust-lang/crates.io-index"
2064
- checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"
2066
+ checksum = "f02ab6bace2054fb888a3c16f990117b579d14a3088e472d63c6011fa185c9d3"
2065
2067
  dependencies = [
2066
2068
  "libc",
2067
2069
  ]
@@ -2089,9 +2091,9 @@ dependencies = [
2089
2091
 
2090
2092
  [[package]]
2091
2093
  name = "log"
2092
- version = "0.4.29"
2094
+ version = "0.4.31"
2093
2095
  source = "registry+https://github.com/rust-lang/crates.io-index"
2094
- checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
2096
+ checksum = "113b30b4cd05f7c06868fdb2854f66a7b9fece9a48425351cd532e810d74024f"
2095
2097
 
2096
2098
  [[package]]
2097
2099
  name = "lru-slab"
@@ -2131,9 +2133,9 @@ checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4"
2131
2133
 
2132
2134
  [[package]]
2133
2135
  name = "memchr"
2134
- version = "2.8.0"
2136
+ version = "2.8.1"
2135
2137
  source = "registry+https://github.com/rust-lang/crates.io-index"
2136
- checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
2138
+ checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
2137
2139
 
2138
2140
  [[package]]
2139
2141
  name = "memfd"
@@ -2178,9 +2180,9 @@ dependencies = [
2178
2180
 
2179
2181
  [[package]]
2180
2182
  name = "mio"
2181
- version = "1.2.0"
2183
+ version = "1.2.1"
2182
2184
  source = "registry+https://github.com/rust-lang/crates.io-index"
2183
- checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
2185
+ checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"
2184
2186
  dependencies = [
2185
2187
  "libc",
2186
2188
  "wasi",
@@ -2252,7 +2254,7 @@ dependencies = [
2252
2254
  "oci-spec",
2253
2255
  "olpc-cjson",
2254
2256
  "regex",
2255
- "reqwest 0.13.3",
2257
+ "reqwest 0.13.4",
2256
2258
  "serde",
2257
2259
  "serde_json",
2258
2260
  "sha2 0.11.0",
@@ -2793,9 +2795,9 @@ dependencies = [
2793
2795
 
2794
2796
  [[package]]
2795
2797
  name = "reqwest"
2796
- version = "0.13.3"
2798
+ version = "0.13.4"
2797
2799
  source = "registry+https://github.com/rust-lang/crates.io-index"
2798
- checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0"
2800
+ checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"
2799
2801
  dependencies = [
2800
2802
  "base64",
2801
2803
  "bytes",
@@ -2953,9 +2955,9 @@ dependencies = [
2953
2955
 
2954
2956
  [[package]]
2955
2957
  name = "rustls-native-certs"
2956
- version = "0.8.3"
2958
+ version = "0.8.4"
2957
2959
  source = "registry+https://github.com/rust-lang/crates.io-index"
2958
- checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63"
2960
+ checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
2959
2961
  dependencies = [
2960
2962
  "openssl-probe",
2961
2963
  "rustls-pki-types",
@@ -3279,9 +3281,9 @@ dependencies = [
3279
3281
 
3280
3282
  [[package]]
3281
3283
  name = "shlex"
3282
- version = "1.3.0"
3284
+ version = "2.0.1"
3283
3285
  source = "registry+https://github.com/rust-lang/crates.io-index"
3284
- checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
3286
+ checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
3285
3287
 
3286
3288
  [[package]]
3287
3289
  name = "signal-hook-registry"
@@ -3341,9 +3343,9 @@ dependencies = [
3341
3343
 
3342
3344
  [[package]]
3343
3345
  name = "socket2"
3344
- version = "0.6.3"
3346
+ version = "0.6.4"
3345
3347
  source = "registry+https://github.com/rust-lang/crates.io-index"
3346
- checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
3348
+ checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"
3347
3349
  dependencies = [
3348
3350
  "libc",
3349
3351
  "windows-sys 0.61.2",
@@ -3833,9 +3835,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
3833
3835
 
3834
3836
  [[package]]
3835
3837
  name = "typenum"
3836
- version = "1.20.0"
3838
+ version = "1.20.1"
3837
3839
  source = "registry+https://github.com/rust-lang/crates.io-index"
3838
- checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de"
3840
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
3839
3841
 
3840
3842
  [[package]]
3841
3843
  name = "unicase"
@@ -3914,9 +3916,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
3914
3916
 
3915
3917
  [[package]]
3916
3918
  name = "uuid"
3917
- version = "1.23.1"
3919
+ version = "1.23.2"
3918
3920
  source = "registry+https://github.com/rust-lang/crates.io-index"
3919
- checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
3921
+ checksum = "d258b83ceec21034727ecee8c382cfa6c3e133699b0742c64571814fb420c9f7"
3920
3922
  dependencies = [
3921
3923
  "getrandom 0.4.2",
3922
3924
  "js-sys",
@@ -4080,6 +4082,16 @@ dependencies = [
4080
4082
  "wasmparser 0.250.0",
4081
4083
  ]
4082
4084
 
4085
+ [[package]]
4086
+ name = "wasm-encoder"
4087
+ version = "0.251.0"
4088
+ source = "registry+https://github.com/rust-lang/crates.io-index"
4089
+ checksum = "5a879a421bd17c528b74721b2abf4c62e8f1d1889c2ba8c3c50d02deaf2ce395"
4090
+ dependencies = [
4091
+ "leb128fmt",
4092
+ "wasmparser 0.251.0",
4093
+ ]
4094
+
4083
4095
  [[package]]
4084
4096
  name = "wasm-metadata"
4085
4097
  version = "0.244.0"
@@ -4143,6 +4155,17 @@ dependencies = [
4143
4155
  "serde",
4144
4156
  ]
4145
4157
 
4158
+ [[package]]
4159
+ name = "wasmparser"
4160
+ version = "0.251.0"
4161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
4162
+ checksum = "437970b35b1a85cfde9c74b2398352d8d653f3bd8e3a3db0c063ea8f5b4b36ff"
4163
+ dependencies = [
4164
+ "bitflags",
4165
+ "indexmap 2.14.0",
4166
+ "semver",
4167
+ ]
4168
+
4146
4169
  [[package]]
4147
4170
  name = "wasmprinter"
4148
4171
  version = "0.248.0"
@@ -4477,22 +4500,22 @@ dependencies = [
4477
4500
 
4478
4501
  [[package]]
4479
4502
  name = "wast"
4480
- version = "250.0.0"
4503
+ version = "251.0.0"
4481
4504
  source = "registry+https://github.com/rust-lang/crates.io-index"
4482
- checksum = "69e9294a1f0204aeb5c47e95165517f43ef3cc895918c4f3e939380d4c290f4a"
4505
+ checksum = "5cc7467dda0a96142eb2c980329dfb62480b1e1d3622fdeb1a44e2bca6ceed74"
4483
4506
  dependencies = [
4484
4507
  "bumpalo",
4485
4508
  "leb128fmt",
4486
4509
  "memchr",
4487
4510
  "unicode-width",
4488
- "wasm-encoder 0.250.0",
4511
+ "wasm-encoder 0.251.0",
4489
4512
  ]
4490
4513
 
4491
4514
  [[package]]
4492
4515
  name = "wat"
4493
- version = "1.250.0"
4516
+ version = "1.251.0"
4494
4517
  source = "registry+https://github.com/rust-lang/crates.io-index"
4495
- checksum = "0a549ed329a70e444e0f7796391ab2a87d0aef30ddde9f60e16e429224fafd02"
4518
+ checksum = "81b1086c9e85b95bd6a229a928bc6c6d0662e42af0250c88d067b418831ea4d4"
4496
4519
  dependencies = [
4497
4520
  "wast",
4498
4521
  ]
@@ -5036,18 +5059,18 @@ dependencies = [
5036
5059
 
5037
5060
  [[package]]
5038
5061
  name = "zerocopy"
5039
- version = "0.8.48"
5062
+ version = "0.8.50"
5040
5063
  source = "registry+https://github.com/rust-lang/crates.io-index"
5041
- checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
5064
+ checksum = "3b065d4f0e55f82fae73202e189638116a87c55ab6b8e6c2721e13dd9d854ad1"
5042
5065
  dependencies = [
5043
5066
  "zerocopy-derive",
5044
5067
  ]
5045
5068
 
5046
5069
  [[package]]
5047
5070
  name = "zerocopy-derive"
5048
- version = "0.8.48"
5071
+ version = "0.8.50"
5049
5072
  source = "registry+https://github.com/rust-lang/crates.io-index"
5050
- checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
5073
+ checksum = "0b631b19d36a892ab55420c92dbc83ccd79274f25be714855d3074aa71cab639"
5051
5074
  dependencies = [
5052
5075
  "proc-macro2",
5053
5076
  "quote",
@@ -3,7 +3,7 @@ members = ["act-cli", "crates/act-store"]
3
3
  resolver = "3"
4
4
 
5
5
  [workspace.package]
6
- version = "0.8.0"
6
+ version = "0.8.1"
7
7
  edition = "2024"
8
8
  license = "MIT OR Apache-2.0"
9
9
  repository = "https://github.com/actcore/act-cli"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: act-cli
3
- Version: 0.8.0
3
+ Version: 0.8.1
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "act-store"
3
3
  description = "Local OCI-layout component store for ACT (act-cli, act-toolserver)"
4
- version = "0.1.0"
4
+ version = "0.1.1"
5
5
  edition.workspace = true
6
6
  license.workspace = true
7
7
  repository.workspace = true
@@ -14,7 +14,7 @@ serde = { version = "1", features = ["derive"] }
14
14
  serde_json = "1"
15
15
  sha2 = "0.11"
16
16
  thiserror = "2"
17
- fs2 = "0.4"
17
+ fs4 = { version = "1", features = ["sync"] }
18
18
  oci-spec = "0.9.0"
19
19
  dirs = "6.0.0"
20
20
  tokio = { version = "1.52.3", features = ["rt", "macros", "fs", "io-util"] }
@@ -4,7 +4,7 @@ use std::fs::{File, OpenOptions};
4
4
  use std::io;
5
5
  use std::path::Path;
6
6
 
7
- use fs2::FileExt;
7
+ use fs4::FileExt;
8
8
 
9
9
  /// RAII advisory lock. The lock is released when dropped.
10
10
  #[derive(Debug)]
@@ -26,28 +26,29 @@ impl StoreLock {
26
26
  /// Block until an exclusive (writer) lock is held.
27
27
  pub fn exclusive(root: &Path) -> io::Result<Self> {
28
28
  let file = open_lockfile(root)?;
29
- FileExt::lock_exclusive(&file)?;
29
+ <File as FileExt>::lock(&file)?;
30
30
  Ok(Self { file })
31
31
  }
32
32
 
33
33
  /// Block until a shared (reader) lock is held.
34
34
  pub fn shared(root: &Path) -> io::Result<Self> {
35
35
  let file = open_lockfile(root)?;
36
- FileExt::lock_shared(&file)?;
36
+ <File as FileExt>::lock_shared(&file)?;
37
37
  Ok(Self { file })
38
38
  }
39
39
 
40
40
  /// Non-blocking exclusive lock; errors if it cannot be acquired now.
41
41
  pub fn try_exclusive(root: &Path) -> io::Result<Self> {
42
42
  let file = open_lockfile(root)?;
43
- FileExt::try_lock_exclusive(&file)?;
43
+ <File as FileExt>::try_lock(&file)
44
+ .map_err(|e| io::Error::other(format!("lock not acquired: {e}")))?;
44
45
  Ok(Self { file })
45
46
  }
46
47
  }
47
48
 
48
49
  impl Drop for StoreLock {
49
50
  fn drop(&mut self) {
50
- let _ = FileExt::unlock(&self.file);
51
+ let _ = <File as FileExt>::unlock(&self.file);
51
52
  }
52
53
  }
53
54
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes