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.
- {act_cli-0.8.0 → act_cli-0.8.1}/Cargo.lock +74 -51
- {act_cli-0.8.0 → act_cli-0.8.1}/Cargo.toml +1 -1
- {act_cli-0.8.0 → act_cli-0.8.1}/PKG-INFO +1 -1
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/Cargo.toml +2 -2
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/lock.rs +6 -5
- {act_cli-0.8.0 → act_cli-0.8.1}/README.md +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/Cargo.toml +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/README.md +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/build.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/config.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/format.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/http.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/main.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/resolve.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/rmcp_bridge.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/bindings/mod.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/effective.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/fs_matcher.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/fs_policy.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/http_client.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/http_policy.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/mod.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/network.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/sessions.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/src/runtime/sockets_policy.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps/act-core/act-core.wit +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps/act-tools/act-tools.wit +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps.lock +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/deps.toml +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/act-cli/wit/world.wit +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/README.md +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/fetch.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/index.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/layout.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/lib.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/provenance.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/reference.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/referrer.rs +0 -0
- {act_cli-0.8.0 → act_cli-0.8.1}/crates/act-store/src/store.rs +0 -0
- {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.
|
|
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
|
-
"
|
|
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.
|
|
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.
|
|
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.
|
|
86
|
+
version = "0.1.1"
|
|
85
87
|
dependencies = [
|
|
86
88
|
"chrono",
|
|
87
89
|
"dirs",
|
|
88
|
-
"
|
|
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.
|
|
331
|
+
version = "2.12.1"
|
|
330
332
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
|
-
checksum = "
|
|
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.
|
|
457
|
+
version = "1.2.63"
|
|
456
458
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
457
|
-
checksum = "
|
|
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.
|
|
1078
|
+
version = "0.2.6"
|
|
1077
1079
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1078
|
-
checksum = "
|
|
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 = "
|
|
1230
|
-
version = "
|
|
1231
|
+
name = "fs4"
|
|
1232
|
+
version = "1.1.0"
|
|
1231
1233
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1232
|
-
checksum = "
|
|
1234
|
+
checksum = "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5"
|
|
1233
1235
|
dependencies = [
|
|
1234
|
-
"
|
|
1235
|
-
"
|
|
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.
|
|
1518
|
+
version = "1.4.1"
|
|
1517
1519
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1518
|
-
checksum = "
|
|
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.
|
|
1581
|
+
version = "1.10.1"
|
|
1580
1582
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1581
|
-
checksum = "
|
|
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.
|
|
2064
|
+
version = "0.1.17"
|
|
2063
2065
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2064
|
-
checksum = "
|
|
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.
|
|
2094
|
+
version = "0.4.31"
|
|
2093
2095
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2094
|
-
checksum = "
|
|
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.
|
|
2136
|
+
version = "2.8.1"
|
|
2135
2137
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2136
|
-
checksum = "
|
|
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.
|
|
2183
|
+
version = "1.2.1"
|
|
2182
2184
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2183
|
-
checksum = "
|
|
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.
|
|
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.
|
|
2798
|
+
version = "0.13.4"
|
|
2797
2799
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2798
|
-
checksum = "
|
|
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.
|
|
2958
|
+
version = "0.8.4"
|
|
2957
2959
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2958
|
-
checksum = "
|
|
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 = "
|
|
3284
|
+
version = "2.0.1"
|
|
3283
3285
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3284
|
-
checksum = "
|
|
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.
|
|
3346
|
+
version = "0.6.4"
|
|
3345
3347
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3346
|
-
checksum = "
|
|
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.
|
|
3838
|
+
version = "1.20.1"
|
|
3837
3839
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3838
|
-
checksum = "
|
|
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.
|
|
3919
|
+
version = "1.23.2"
|
|
3918
3920
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3919
|
-
checksum = "
|
|
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 = "
|
|
4503
|
+
version = "251.0.0"
|
|
4481
4504
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4482
|
-
checksum = "
|
|
4505
|
+
checksum = "5cc7467dda0a96142eb2c980329dfb62480b1e1d3622fdeb1a44e2bca6ceed74"
|
|
4483
4506
|
dependencies = [
|
|
4484
4507
|
"bumpalo",
|
|
4485
4508
|
"leb128fmt",
|
|
4486
4509
|
"memchr",
|
|
4487
4510
|
"unicode-width",
|
|
4488
|
-
"wasm-encoder 0.
|
|
4511
|
+
"wasm-encoder 0.251.0",
|
|
4489
4512
|
]
|
|
4490
4513
|
|
|
4491
4514
|
[[package]]
|
|
4492
4515
|
name = "wat"
|
|
4493
|
-
version = "1.
|
|
4516
|
+
version = "1.251.0"
|
|
4494
4517
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
4495
|
-
checksum = "
|
|
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.
|
|
5062
|
+
version = "0.8.50"
|
|
5040
5063
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
5041
|
-
checksum = "
|
|
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.
|
|
5071
|
+
version = "0.8.50"
|
|
5049
5072
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
5050
|
-
checksum = "
|
|
5073
|
+
checksum = "0b631b19d36a892ab55420c92dbc83ccd79274f25be714855d3074aa71cab639"
|
|
5051
5074
|
dependencies = [
|
|
5052
5075
|
"proc-macro2",
|
|
5053
5076
|
"quote",
|
|
@@ -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.
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|