cocoon-sandbox 0.1.0__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.
- cocoon_sandbox-0.1.0/Cargo.lock +648 -0
- cocoon_sandbox-0.1.0/Cargo.toml +32 -0
- cocoon_sandbox-0.1.0/LICENSE +21 -0
- cocoon_sandbox-0.1.0/PKG-INFO +205 -0
- cocoon_sandbox-0.1.0/README.md +177 -0
- cocoon_sandbox-0.1.0/crates/cocoon-cli/Cargo.toml +25 -0
- cocoon_sandbox-0.1.0/crates/cocoon-cli/README.md +177 -0
- cocoon_sandbox-0.1.0/crates/cocoon-cli/src/main.rs +423 -0
- cocoon_sandbox-0.1.0/crates/cocoon-cli/tests/regression_tests.rs +80 -0
- cocoon_sandbox-0.1.0/crates/cocoon-core/Cargo.toml +13 -0
- cocoon_sandbox-0.1.0/crates/cocoon-core/README.md +177 -0
- cocoon_sandbox-0.1.0/crates/cocoon-core/src/config.rs +193 -0
- cocoon_sandbox-0.1.0/crates/cocoon-core/src/error.rs +29 -0
- cocoon_sandbox-0.1.0/crates/cocoon-core/src/lib.rs +7 -0
- cocoon_sandbox-0.1.0/crates/cocoon-core/src/traits.rs +14 -0
- cocoon_sandbox-0.1.0/crates/cocoon-fs/Cargo.toml +14 -0
- cocoon_sandbox-0.1.0/crates/cocoon-fs/README.md +177 -0
- cocoon_sandbox-0.1.0/crates/cocoon-fs/src/lib.rs +5 -0
- cocoon_sandbox-0.1.0/crates/cocoon-fs/src/scratchpad.rs +148 -0
- cocoon_sandbox-0.1.0/crates/cocoon-fs/src/virtual_view.rs +276 -0
- cocoon_sandbox-0.1.0/crates/cocoon-platform/Cargo.toml +26 -0
- cocoon_sandbox-0.1.0/crates/cocoon-platform/README.md +177 -0
- cocoon_sandbox-0.1.0/crates/cocoon-platform/src/lib.rs +29 -0
- cocoon_sandbox-0.1.0/crates/cocoon-platform/src/linux.rs +188 -0
- cocoon_sandbox-0.1.0/crates/cocoon-platform/src/windows.rs +274 -0
- cocoon_sandbox-0.1.0/crates/cocoon-runtimes/Cargo.toml +14 -0
- cocoon_sandbox-0.1.0/crates/cocoon-runtimes/README.md +177 -0
- cocoon_sandbox-0.1.0/crates/cocoon-runtimes/src/lib.rs +3 -0
- cocoon_sandbox-0.1.0/crates/cocoon-runtimes/src/preset.rs +314 -0
- cocoon_sandbox-0.1.0/pyproject.toml +41 -0
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "anstream"
|
|
16
|
+
version = "1.0.0"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"anstyle",
|
|
21
|
+
"anstyle-parse",
|
|
22
|
+
"anstyle-query",
|
|
23
|
+
"anstyle-wincon",
|
|
24
|
+
"colorchoice",
|
|
25
|
+
"is_terminal_polyfill",
|
|
26
|
+
"utf8parse",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "anstyle"
|
|
31
|
+
version = "1.0.14"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "anstyle-parse"
|
|
37
|
+
version = "1.0.0"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
|
40
|
+
dependencies = [
|
|
41
|
+
"utf8parse",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "anstyle-query"
|
|
46
|
+
version = "1.1.5"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
|
49
|
+
dependencies = [
|
|
50
|
+
"windows-sys 0.61.2",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "anstyle-wincon"
|
|
55
|
+
version = "3.0.11"
|
|
56
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
+
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
|
58
|
+
dependencies = [
|
|
59
|
+
"anstyle",
|
|
60
|
+
"once_cell_polyfill",
|
|
61
|
+
"windows-sys 0.61.2",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[[package]]
|
|
65
|
+
name = "anyhow"
|
|
66
|
+
version = "1.0.104"
|
|
67
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
68
|
+
checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
|
|
69
|
+
|
|
70
|
+
[[package]]
|
|
71
|
+
name = "bitflags"
|
|
72
|
+
version = "2.13.2"
|
|
73
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "cfg-if"
|
|
78
|
+
version = "1.0.5"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
81
|
+
|
|
82
|
+
[[package]]
|
|
83
|
+
name = "clap"
|
|
84
|
+
version = "4.6.7"
|
|
85
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
86
|
+
checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
|
|
87
|
+
dependencies = [
|
|
88
|
+
"clap_builder",
|
|
89
|
+
"clap_derive",
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "clap_builder"
|
|
94
|
+
version = "4.6.7"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
|
|
97
|
+
dependencies = [
|
|
98
|
+
"anstream",
|
|
99
|
+
"anstyle",
|
|
100
|
+
"clap_lex",
|
|
101
|
+
"strsim",
|
|
102
|
+
]
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "clap_derive"
|
|
106
|
+
version = "4.6.7"
|
|
107
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
|
|
109
|
+
dependencies = [
|
|
110
|
+
"heck",
|
|
111
|
+
"proc-macro2",
|
|
112
|
+
"quote",
|
|
113
|
+
"syn 3.0.9",
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "clap_lex"
|
|
118
|
+
version = "1.1.1"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "cocoon-core"
|
|
124
|
+
version = "0.1.0"
|
|
125
|
+
dependencies = [
|
|
126
|
+
"serde",
|
|
127
|
+
"serde_json",
|
|
128
|
+
"thiserror",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "cocoon-fs"
|
|
133
|
+
version = "0.1.0"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"cocoon-core",
|
|
136
|
+
"tempfile",
|
|
137
|
+
"thiserror",
|
|
138
|
+
"tracing",
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
[[package]]
|
|
142
|
+
name = "cocoon-platform"
|
|
143
|
+
version = "0.1.0"
|
|
144
|
+
dependencies = [
|
|
145
|
+
"cocoon-core",
|
|
146
|
+
"cocoon-fs",
|
|
147
|
+
"thiserror",
|
|
148
|
+
"tracing",
|
|
149
|
+
"windows-sys 0.59.0",
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "cocoon-runtimes"
|
|
154
|
+
version = "0.1.0"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"cocoon-core",
|
|
157
|
+
"serde",
|
|
158
|
+
"thiserror",
|
|
159
|
+
"tracing",
|
|
160
|
+
]
|
|
161
|
+
|
|
162
|
+
[[package]]
|
|
163
|
+
name = "cocoon-sandbox"
|
|
164
|
+
version = "0.1.0"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"anyhow",
|
|
167
|
+
"clap",
|
|
168
|
+
"cocoon-core",
|
|
169
|
+
"cocoon-fs",
|
|
170
|
+
"cocoon-platform",
|
|
171
|
+
"cocoon-runtimes",
|
|
172
|
+
"serde",
|
|
173
|
+
"serde_json",
|
|
174
|
+
"tracing",
|
|
175
|
+
"tracing-subscriber",
|
|
176
|
+
]
|
|
177
|
+
|
|
178
|
+
[[package]]
|
|
179
|
+
name = "colorchoice"
|
|
180
|
+
version = "1.0.5"
|
|
181
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
+
checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
183
|
+
|
|
184
|
+
[[package]]
|
|
185
|
+
name = "errno"
|
|
186
|
+
version = "0.3.14"
|
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
189
|
+
dependencies = [
|
|
190
|
+
"libc",
|
|
191
|
+
"windows-sys 0.61.2",
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
[[package]]
|
|
195
|
+
name = "fastrand"
|
|
196
|
+
version = "2.5.0"
|
|
197
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
198
|
+
checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
199
|
+
|
|
200
|
+
[[package]]
|
|
201
|
+
name = "getrandom"
|
|
202
|
+
version = "0.4.3"
|
|
203
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
204
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
205
|
+
dependencies = [
|
|
206
|
+
"cfg-if",
|
|
207
|
+
"libc",
|
|
208
|
+
"r-efi",
|
|
209
|
+
]
|
|
210
|
+
|
|
211
|
+
[[package]]
|
|
212
|
+
name = "heck"
|
|
213
|
+
version = "0.5.0"
|
|
214
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
216
|
+
|
|
217
|
+
[[package]]
|
|
218
|
+
name = "is_terminal_polyfill"
|
|
219
|
+
version = "1.70.2"
|
|
220
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
221
|
+
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|
222
|
+
|
|
223
|
+
[[package]]
|
|
224
|
+
name = "itoa"
|
|
225
|
+
version = "1.0.18"
|
|
226
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
227
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
228
|
+
|
|
229
|
+
[[package]]
|
|
230
|
+
name = "lazy_static"
|
|
231
|
+
version = "1.5.1"
|
|
232
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
233
|
+
checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
|
|
234
|
+
|
|
235
|
+
[[package]]
|
|
236
|
+
name = "libc"
|
|
237
|
+
version = "0.2.191"
|
|
238
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
239
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
240
|
+
|
|
241
|
+
[[package]]
|
|
242
|
+
name = "linux-raw-sys"
|
|
243
|
+
version = "0.12.1"
|
|
244
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
245
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
246
|
+
|
|
247
|
+
[[package]]
|
|
248
|
+
name = "log"
|
|
249
|
+
version = "0.4.34"
|
|
250
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
251
|
+
checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
|
|
252
|
+
|
|
253
|
+
[[package]]
|
|
254
|
+
name = "matchers"
|
|
255
|
+
version = "0.2.0"
|
|
256
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
+
checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
|
|
258
|
+
dependencies = [
|
|
259
|
+
"regex-automata",
|
|
260
|
+
]
|
|
261
|
+
|
|
262
|
+
[[package]]
|
|
263
|
+
name = "memchr"
|
|
264
|
+
version = "2.8.3"
|
|
265
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
266
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
267
|
+
|
|
268
|
+
[[package]]
|
|
269
|
+
name = "nu-ansi-term"
|
|
270
|
+
version = "0.50.3"
|
|
271
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
272
|
+
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
|
|
273
|
+
dependencies = [
|
|
274
|
+
"windows-sys 0.61.2",
|
|
275
|
+
]
|
|
276
|
+
|
|
277
|
+
[[package]]
|
|
278
|
+
name = "once_cell"
|
|
279
|
+
version = "1.21.4"
|
|
280
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
281
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
282
|
+
|
|
283
|
+
[[package]]
|
|
284
|
+
name = "once_cell_polyfill"
|
|
285
|
+
version = "1.70.2"
|
|
286
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
287
|
+
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
288
|
+
|
|
289
|
+
[[package]]
|
|
290
|
+
name = "pin-project-lite"
|
|
291
|
+
version = "0.2.17"
|
|
292
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
293
|
+
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
294
|
+
|
|
295
|
+
[[package]]
|
|
296
|
+
name = "proc-macro2"
|
|
297
|
+
version = "1.0.107"
|
|
298
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
299
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
300
|
+
dependencies = [
|
|
301
|
+
"unicode-ident",
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
[[package]]
|
|
305
|
+
name = "quote"
|
|
306
|
+
version = "1.0.47"
|
|
307
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
308
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
309
|
+
dependencies = [
|
|
310
|
+
"proc-macro2",
|
|
311
|
+
]
|
|
312
|
+
|
|
313
|
+
[[package]]
|
|
314
|
+
name = "r-efi"
|
|
315
|
+
version = "6.0.0"
|
|
316
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
317
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
318
|
+
|
|
319
|
+
[[package]]
|
|
320
|
+
name = "regex-automata"
|
|
321
|
+
version = "0.4.18"
|
|
322
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
323
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
324
|
+
dependencies = [
|
|
325
|
+
"aho-corasick",
|
|
326
|
+
"memchr",
|
|
327
|
+
"regex-syntax",
|
|
328
|
+
]
|
|
329
|
+
|
|
330
|
+
[[package]]
|
|
331
|
+
name = "regex-syntax"
|
|
332
|
+
version = "0.8.11"
|
|
333
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
334
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
335
|
+
|
|
336
|
+
[[package]]
|
|
337
|
+
name = "rustix"
|
|
338
|
+
version = "1.1.6"
|
|
339
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
340
|
+
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
|
|
341
|
+
dependencies = [
|
|
342
|
+
"bitflags",
|
|
343
|
+
"errno",
|
|
344
|
+
"libc",
|
|
345
|
+
"linux-raw-sys",
|
|
346
|
+
"windows-sys 0.61.2",
|
|
347
|
+
]
|
|
348
|
+
|
|
349
|
+
[[package]]
|
|
350
|
+
name = "serde"
|
|
351
|
+
version = "1.0.229"
|
|
352
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
353
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
354
|
+
dependencies = [
|
|
355
|
+
"serde_core",
|
|
356
|
+
"serde_derive",
|
|
357
|
+
]
|
|
358
|
+
|
|
359
|
+
[[package]]
|
|
360
|
+
name = "serde_core"
|
|
361
|
+
version = "1.0.229"
|
|
362
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
364
|
+
dependencies = [
|
|
365
|
+
"serde_derive",
|
|
366
|
+
]
|
|
367
|
+
|
|
368
|
+
[[package]]
|
|
369
|
+
name = "serde_derive"
|
|
370
|
+
version = "1.0.229"
|
|
371
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
373
|
+
dependencies = [
|
|
374
|
+
"proc-macro2",
|
|
375
|
+
"quote",
|
|
376
|
+
"syn 3.0.9",
|
|
377
|
+
]
|
|
378
|
+
|
|
379
|
+
[[package]]
|
|
380
|
+
name = "serde_json"
|
|
381
|
+
version = "1.0.154"
|
|
382
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
383
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
384
|
+
dependencies = [
|
|
385
|
+
"itoa",
|
|
386
|
+
"memchr",
|
|
387
|
+
"serde",
|
|
388
|
+
"serde_core",
|
|
389
|
+
"zmij",
|
|
390
|
+
]
|
|
391
|
+
|
|
392
|
+
[[package]]
|
|
393
|
+
name = "sharded-slab"
|
|
394
|
+
version = "0.1.7"
|
|
395
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
+
checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
|
|
397
|
+
dependencies = [
|
|
398
|
+
"lazy_static",
|
|
399
|
+
]
|
|
400
|
+
|
|
401
|
+
[[package]]
|
|
402
|
+
name = "smallvec"
|
|
403
|
+
version = "1.16.4"
|
|
404
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
405
|
+
checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
|
|
406
|
+
|
|
407
|
+
[[package]]
|
|
408
|
+
name = "strsim"
|
|
409
|
+
version = "0.11.1"
|
|
410
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
411
|
+
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
412
|
+
|
|
413
|
+
[[package]]
|
|
414
|
+
name = "syn"
|
|
415
|
+
version = "2.0.119"
|
|
416
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
417
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
418
|
+
dependencies = [
|
|
419
|
+
"proc-macro2",
|
|
420
|
+
"quote",
|
|
421
|
+
"unicode-ident",
|
|
422
|
+
]
|
|
423
|
+
|
|
424
|
+
[[package]]
|
|
425
|
+
name = "syn"
|
|
426
|
+
version = "3.0.9"
|
|
427
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
429
|
+
dependencies = [
|
|
430
|
+
"proc-macro2",
|
|
431
|
+
"quote",
|
|
432
|
+
"unicode-ident",
|
|
433
|
+
]
|
|
434
|
+
|
|
435
|
+
[[package]]
|
|
436
|
+
name = "tempfile"
|
|
437
|
+
version = "3.27.0"
|
|
438
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
+
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
|
440
|
+
dependencies = [
|
|
441
|
+
"fastrand",
|
|
442
|
+
"getrandom",
|
|
443
|
+
"once_cell",
|
|
444
|
+
"rustix",
|
|
445
|
+
"windows-sys 0.61.2",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "thiserror"
|
|
450
|
+
version = "2.0.21"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
453
|
+
dependencies = [
|
|
454
|
+
"thiserror-impl",
|
|
455
|
+
]
|
|
456
|
+
|
|
457
|
+
[[package]]
|
|
458
|
+
name = "thiserror-impl"
|
|
459
|
+
version = "2.0.21"
|
|
460
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
461
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
462
|
+
dependencies = [
|
|
463
|
+
"proc-macro2",
|
|
464
|
+
"quote",
|
|
465
|
+
"syn 3.0.9",
|
|
466
|
+
]
|
|
467
|
+
|
|
468
|
+
[[package]]
|
|
469
|
+
name = "thread_local"
|
|
470
|
+
version = "1.1.10"
|
|
471
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
472
|
+
checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
|
|
473
|
+
dependencies = [
|
|
474
|
+
"cfg-if",
|
|
475
|
+
]
|
|
476
|
+
|
|
477
|
+
[[package]]
|
|
478
|
+
name = "tracing"
|
|
479
|
+
version = "0.1.44"
|
|
480
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
481
|
+
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
|
482
|
+
dependencies = [
|
|
483
|
+
"pin-project-lite",
|
|
484
|
+
"tracing-attributes",
|
|
485
|
+
"tracing-core",
|
|
486
|
+
]
|
|
487
|
+
|
|
488
|
+
[[package]]
|
|
489
|
+
name = "tracing-attributes"
|
|
490
|
+
version = "0.1.31"
|
|
491
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
492
|
+
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
|
493
|
+
dependencies = [
|
|
494
|
+
"proc-macro2",
|
|
495
|
+
"quote",
|
|
496
|
+
"syn 2.0.119",
|
|
497
|
+
]
|
|
498
|
+
|
|
499
|
+
[[package]]
|
|
500
|
+
name = "tracing-core"
|
|
501
|
+
version = "0.1.36"
|
|
502
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
503
|
+
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
|
504
|
+
dependencies = [
|
|
505
|
+
"once_cell",
|
|
506
|
+
"valuable",
|
|
507
|
+
]
|
|
508
|
+
|
|
509
|
+
[[package]]
|
|
510
|
+
name = "tracing-log"
|
|
511
|
+
version = "0.2.0"
|
|
512
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
+
checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
|
|
514
|
+
dependencies = [
|
|
515
|
+
"log",
|
|
516
|
+
"once_cell",
|
|
517
|
+
"tracing-core",
|
|
518
|
+
]
|
|
519
|
+
|
|
520
|
+
[[package]]
|
|
521
|
+
name = "tracing-subscriber"
|
|
522
|
+
version = "0.3.23"
|
|
523
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
524
|
+
checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
|
|
525
|
+
dependencies = [
|
|
526
|
+
"matchers",
|
|
527
|
+
"nu-ansi-term",
|
|
528
|
+
"once_cell",
|
|
529
|
+
"regex-automata",
|
|
530
|
+
"sharded-slab",
|
|
531
|
+
"smallvec",
|
|
532
|
+
"thread_local",
|
|
533
|
+
"tracing",
|
|
534
|
+
"tracing-core",
|
|
535
|
+
"tracing-log",
|
|
536
|
+
]
|
|
537
|
+
|
|
538
|
+
[[package]]
|
|
539
|
+
name = "unicode-ident"
|
|
540
|
+
version = "1.0.27"
|
|
541
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
542
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
543
|
+
|
|
544
|
+
[[package]]
|
|
545
|
+
name = "utf8parse"
|
|
546
|
+
version = "0.2.2"
|
|
547
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
548
|
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
549
|
+
|
|
550
|
+
[[package]]
|
|
551
|
+
name = "valuable"
|
|
552
|
+
version = "0.1.1"
|
|
553
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
554
|
+
checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
|
|
555
|
+
|
|
556
|
+
[[package]]
|
|
557
|
+
name = "windows-link"
|
|
558
|
+
version = "0.2.1"
|
|
559
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
560
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
561
|
+
|
|
562
|
+
[[package]]
|
|
563
|
+
name = "windows-sys"
|
|
564
|
+
version = "0.59.0"
|
|
565
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
566
|
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
|
567
|
+
dependencies = [
|
|
568
|
+
"windows-targets",
|
|
569
|
+
]
|
|
570
|
+
|
|
571
|
+
[[package]]
|
|
572
|
+
name = "windows-sys"
|
|
573
|
+
version = "0.61.2"
|
|
574
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
575
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
576
|
+
dependencies = [
|
|
577
|
+
"windows-link",
|
|
578
|
+
]
|
|
579
|
+
|
|
580
|
+
[[package]]
|
|
581
|
+
name = "windows-targets"
|
|
582
|
+
version = "0.52.6"
|
|
583
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
584
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
585
|
+
dependencies = [
|
|
586
|
+
"windows_aarch64_gnullvm",
|
|
587
|
+
"windows_aarch64_msvc",
|
|
588
|
+
"windows_i686_gnu",
|
|
589
|
+
"windows_i686_gnullvm",
|
|
590
|
+
"windows_i686_msvc",
|
|
591
|
+
"windows_x86_64_gnu",
|
|
592
|
+
"windows_x86_64_gnullvm",
|
|
593
|
+
"windows_x86_64_msvc",
|
|
594
|
+
]
|
|
595
|
+
|
|
596
|
+
[[package]]
|
|
597
|
+
name = "windows_aarch64_gnullvm"
|
|
598
|
+
version = "0.52.6"
|
|
599
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
600
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
601
|
+
|
|
602
|
+
[[package]]
|
|
603
|
+
name = "windows_aarch64_msvc"
|
|
604
|
+
version = "0.52.6"
|
|
605
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
606
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
607
|
+
|
|
608
|
+
[[package]]
|
|
609
|
+
name = "windows_i686_gnu"
|
|
610
|
+
version = "0.52.6"
|
|
611
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
612
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
613
|
+
|
|
614
|
+
[[package]]
|
|
615
|
+
name = "windows_i686_gnullvm"
|
|
616
|
+
version = "0.52.6"
|
|
617
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
618
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
619
|
+
|
|
620
|
+
[[package]]
|
|
621
|
+
name = "windows_i686_msvc"
|
|
622
|
+
version = "0.52.6"
|
|
623
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
624
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
625
|
+
|
|
626
|
+
[[package]]
|
|
627
|
+
name = "windows_x86_64_gnu"
|
|
628
|
+
version = "0.52.6"
|
|
629
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
630
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
631
|
+
|
|
632
|
+
[[package]]
|
|
633
|
+
name = "windows_x86_64_gnullvm"
|
|
634
|
+
version = "0.52.6"
|
|
635
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
636
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
637
|
+
|
|
638
|
+
[[package]]
|
|
639
|
+
name = "windows_x86_64_msvc"
|
|
640
|
+
version = "0.52.6"
|
|
641
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
642
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
643
|
+
|
|
644
|
+
[[package]]
|
|
645
|
+
name = "zmij"
|
|
646
|
+
version = "1.0.23"
|
|
647
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
648
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[workspace]
|
|
2
|
+
resolver = "2"
|
|
3
|
+
members = ["crates/cocoon-core", "crates/cocoon-fs", "crates/cocoon-platform", "crates/cocoon-runtimes", "crates/cocoon-cli"]
|
|
4
|
+
|
|
5
|
+
[workspace.package]
|
|
6
|
+
version = "0.1.0"
|
|
7
|
+
edition = "2021"
|
|
8
|
+
authors = ["Sunil K Sundaram"]
|
|
9
|
+
license = "MIT"
|
|
10
|
+
description = "A lightweight cross-platform sandbox with virtual and read-only filesystems for AI agents and code execution"
|
|
11
|
+
repository = "https://github.com/sunilksundaram/cocoon"
|
|
12
|
+
|
|
13
|
+
[workspace.dependencies]
|
|
14
|
+
cocoon-core = { version = "0.1.0", path = "crates/cocoon-core" }
|
|
15
|
+
cocoon-fs = { version = "0.1.0", path = "crates/cocoon-fs" }
|
|
16
|
+
cocoon-platform = { version = "0.1.0", path = "crates/cocoon-platform" }
|
|
17
|
+
cocoon-runtimes = { version = "0.1.0", path = "crates/cocoon-runtimes" }
|
|
18
|
+
|
|
19
|
+
anyhow = "1.0"
|
|
20
|
+
thiserror = "2.0"
|
|
21
|
+
serde = { version = "1.0", features = ["derive"] }
|
|
22
|
+
serde_json = "1.0"
|
|
23
|
+
clap = { version = "4.5", features = ["derive", "env"] }
|
|
24
|
+
tracing = "0.1"
|
|
25
|
+
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
26
|
+
tempfile = "3.16"
|
|
27
|
+
|
|
28
|
+
[profile.release]
|
|
29
|
+
opt-level = 3
|
|
30
|
+
lto = true
|
|
31
|
+
codegen-units = 1
|
|
32
|
+
strip = true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sunil K Sundaram
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|