shellsim 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.
Files changed (120) hide show
  1. shellsim-0.1.0/Cargo.lock +447 -0
  2. shellsim-0.1.0/Cargo.toml +61 -0
  3. shellsim-0.1.0/LICENSE +201 -0
  4. shellsim-0.1.0/PKG-INFO +317 -0
  5. shellsim-0.1.0/README.md +293 -0
  6. shellsim-0.1.0/pyproject.toml +44 -0
  7. shellsim-0.1.0/python/native/Cargo.lock +550 -0
  8. shellsim-0.1.0/python/native/Cargo.toml +20 -0
  9. shellsim-0.1.0/python/native/src/lib.rs +271 -0
  10. shellsim-0.1.0/python/shellsim/__init__.py +25 -0
  11. shellsim-0.1.0/python/shellsim/_api.py +300 -0
  12. shellsim-0.1.0/python/shellsim/py.typed +1 -0
  13. shellsim-0.1.0/rust-toolchain.toml +4 -0
  14. shellsim-0.1.0/src/bin/shellsim-python.rs +290 -0
  15. shellsim-0.1.0/src/clock.rs +555 -0
  16. shellsim-0.1.0/src/commands/archives.rs +283 -0
  17. shellsim-0.1.0/src/commands/awk.rs +674 -0
  18. shellsim-0.1.0/src/commands/builtins.rs +1476 -0
  19. shellsim-0.1.0/src/commands/echo.rs +43 -0
  20. shellsim-0.1.0/src/commands/fs.rs +711 -0
  21. shellsim-0.1.0/src/commands/git.rs +1858 -0
  22. shellsim-0.1.0/src/commands/hashing.rs +114 -0
  23. shellsim-0.1.0/src/commands/makecmd.rs +860 -0
  24. shellsim-0.1.0/src/commands/mod.rs +829 -0
  25. shellsim-0.1.0/src/commands/net.rs +79 -0
  26. shellsim-0.1.0/src/commands/patch.rs +595 -0
  27. shellsim-0.1.0/src/commands/pkg.rs +223 -0
  28. shellsim-0.1.0/src/commands/printf.rs +113 -0
  29. shellsim-0.1.0/src/commands/proc.rs +847 -0
  30. shellsim-0.1.0/src/commands/rgcmd.rs +610 -0
  31. shellsim-0.1.0/src/commands/sort.rs +55 -0
  32. shellsim-0.1.0/src/commands/system.rs +422 -0
  33. shellsim-0.1.0/src/commands/tarcmd.rs +574 -0
  34. shellsim-0.1.0/src/commands/text.rs +1148 -0
  35. shellsim-0.1.0/src/commands/util.rs +401 -0
  36. shellsim-0.1.0/src/commands/zipcmd.rs +563 -0
  37. shellsim-0.1.0/src/descriptors.rs +772 -0
  38. shellsim-0.1.0/src/exec.rs +3155 -0
  39. shellsim-0.1.0/src/expand.rs +1471 -0
  40. shellsim-0.1.0/src/harness.rs +1719 -0
  41. shellsim-0.1.0/src/harness_manager.rs +191 -0
  42. shellsim-0.1.0/src/hashes.rs +55 -0
  43. shellsim-0.1.0/src/host_ingest.rs +174 -0
  44. shellsim-0.1.0/src/interp.rs +1575 -0
  45. shellsim-0.1.0/src/jqcmd.rs +352 -0
  46. shellsim-0.1.0/src/lib.rs +43 -0
  47. shellsim-0.1.0/src/main.rs +728 -0
  48. shellsim-0.1.0/src/mcp.rs +595 -0
  49. shellsim-0.1.0/src/net.rs +218 -0
  50. shellsim-0.1.0/src/netcmd.rs +135 -0
  51. shellsim-0.1.0/src/process.rs +501 -0
  52. shellsim-0.1.0/src/pseudo_fs.rs +253 -0
  53. shellsim-0.1.0/src/python/ast.rs +308 -0
  54. shellsim-0.1.0/src/python/bytecode.rs +107 -0
  55. shellsim-0.1.0/src/python/compiler.rs +1243 -0
  56. shellsim-0.1.0/src/python/filesystem.rs +240 -0
  57. shellsim-0.1.0/src/python/heap.rs +569 -0
  58. shellsim-0.1.0/src/python/lexer.rs +797 -0
  59. shellsim-0.1.0/src/python/mod.rs +1104 -0
  60. shellsim-0.1.0/src/python/native.rs +1080 -0
  61. shellsim-0.1.0/src/python/number.rs +627 -0
  62. shellsim-0.1.0/src/python/object_model.rs +795 -0
  63. shellsim-0.1.0/src/python/parser.rs +1770 -0
  64. shellsim-0.1.0/src/python/process.rs +877 -0
  65. shellsim-0.1.0/src/python/protocol.rs +713 -0
  66. shellsim-0.1.0/src/python/source.rs +29 -0
  67. shellsim-0.1.0/src/python/stdlib/argparse.rs +265 -0
  68. shellsim-0.1.0/src/python/stdlib/base64.rs +107 -0
  69. shellsim-0.1.0/src/python/stdlib/bisect.rs +174 -0
  70. shellsim-0.1.0/src/python/stdlib/collections.rs +25 -0
  71. shellsim-0.1.0/src/python/stdlib/core.rs +1571 -0
  72. shellsim-0.1.0/src/python/stdlib/dataclasses.rs +37 -0
  73. shellsim-0.1.0/src/python/stdlib/enum.rs +16 -0
  74. shellsim-0.1.0/src/python/stdlib/frozen.rs +31 -0
  75. shellsim-0.1.0/src/python/stdlib/functools.rs +60 -0
  76. shellsim-0.1.0/src/python/stdlib/hashlib.rs +33 -0
  77. shellsim-0.1.0/src/python/stdlib/heapq.rs +243 -0
  78. shellsim-0.1.0/src/python/stdlib/itertools.rs +118 -0
  79. shellsim-0.1.0/src/python/stdlib/json.rs +458 -0
  80. shellsim-0.1.0/src/python/stdlib/math.rs +402 -0
  81. shellsim-0.1.0/src/python/stdlib/mod.rs +77 -0
  82. shellsim-0.1.0/src/python/stdlib/os.rs +73 -0
  83. shellsim-0.1.0/src/python/stdlib/pytest.rs +99 -0
  84. shellsim-0.1.0/src/python/stdlib/re.rs +569 -0
  85. shellsim-0.1.0/src/python/stdlib/source/abc.py +12 -0
  86. shellsim-0.1.0/src/python/stdlib/source/base64.py +22 -0
  87. shellsim-0.1.0/src/python/stdlib/source/codecs.py +27 -0
  88. shellsim-0.1.0/src/python/stdlib/source/collections.py +181 -0
  89. shellsim-0.1.0/src/python/stdlib/source/csv.py +152 -0
  90. shellsim-0.1.0/src/python/stdlib/source/datetime.py +221 -0
  91. shellsim-0.1.0/src/python/stdlib/source/glob.py +7 -0
  92. shellsim-0.1.0/src/python/stdlib/source/hashlib.py +34 -0
  93. shellsim-0.1.0/src/python/stdlib/source/io.py +214 -0
  94. shellsim-0.1.0/src/python/stdlib/source/json.py +15 -0
  95. shellsim-0.1.0/src/python/stdlib/source/logging.py +88 -0
  96. shellsim-0.1.0/src/python/stdlib/source/os.py +108 -0
  97. shellsim-0.1.0/src/python/stdlib/source/pathlib.py +139 -0
  98. shellsim-0.1.0/src/python/stdlib/source/struct.py +6 -0
  99. shellsim-0.1.0/src/python/stdlib/source/subprocess.py +263 -0
  100. shellsim-0.1.0/src/python/stdlib/source/tempfile.py +69 -0
  101. shellsim-0.1.0/src/python/stdlib/source/uuid.py +27 -0
  102. shellsim-0.1.0/src/python/stdlib/source/zlib.py +3 -0
  103. shellsim-0.1.0/src/python/stdlib/string.rs +103 -0
  104. shellsim-0.1.0/src/python/stdlib/struct.rs +366 -0
  105. shellsim-0.1.0/src/python/stdlib/subprocess.rs +318 -0
  106. shellsim-0.1.0/src/python/stdlib/sys.rs +89 -0
  107. shellsim-0.1.0/src/python/stdlib/time.rs +100 -0
  108. shellsim-0.1.0/src/python/stdlib/typing.rs +45 -0
  109. shellsim-0.1.0/src/python/stdlib/unittest.rs +130 -0
  110. shellsim-0.1.0/src/python/stdlib/vfs.rs +211 -0
  111. shellsim-0.1.0/src/python/stdlib/zlib.rs +116 -0
  112. shellsim-0.1.0/src/python/token.rs +101 -0
  113. shellsim-0.1.0/src/python/vm.rs +6031 -0
  114. shellsim-0.1.0/src/resources.rs +301 -0
  115. shellsim-0.1.0/src/sandbox.rs +74 -0
  116. shellsim-0.1.0/src/scenario.rs +472 -0
  117. shellsim-0.1.0/src/scheduler.rs +433 -0
  118. shellsim-0.1.0/src/shell.rs +1672 -0
  119. shellsim-0.1.0/src/telemetry.rs +285 -0
  120. shellsim-0.1.0/src/vfs.rs +1040 -0
@@ -0,0 +1,447 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "adler2"
7
+ version = "2.0.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
10
+
11
+ [[package]]
12
+ name = "aho-corasick"
13
+ version = "1.1.4"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
16
+ dependencies = [
17
+ "memchr",
18
+ ]
19
+
20
+ [[package]]
21
+ name = "autocfg"
22
+ version = "1.5.1"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
25
+
26
+ [[package]]
27
+ name = "base64"
28
+ version = "0.22.1"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
31
+
32
+ [[package]]
33
+ name = "block-buffer"
34
+ version = "0.10.4"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
37
+ dependencies = [
38
+ "generic-array",
39
+ ]
40
+
41
+ [[package]]
42
+ name = "cfg-if"
43
+ version = "1.0.4"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
46
+
47
+ [[package]]
48
+ name = "cpufeatures"
49
+ version = "0.2.17"
50
+ source = "registry+https://github.com/rust-lang/crates.io-index"
51
+ checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
52
+ dependencies = [
53
+ "libc",
54
+ ]
55
+
56
+ [[package]]
57
+ name = "crc32fast"
58
+ version = "1.5.0"
59
+ source = "registry+https://github.com/rust-lang/crates.io-index"
60
+ checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
61
+ dependencies = [
62
+ "cfg-if",
63
+ ]
64
+
65
+ [[package]]
66
+ name = "crypto-common"
67
+ version = "0.1.7"
68
+ source = "registry+https://github.com/rust-lang/crates.io-index"
69
+ checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
70
+ dependencies = [
71
+ "generic-array",
72
+ "typenum",
73
+ ]
74
+
75
+ [[package]]
76
+ name = "digest"
77
+ version = "0.10.7"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
80
+ dependencies = [
81
+ "block-buffer",
82
+ "crypto-common",
83
+ ]
84
+
85
+ [[package]]
86
+ name = "equivalent"
87
+ version = "1.0.2"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
90
+
91
+ [[package]]
92
+ name = "flate2"
93
+ version = "1.1.10"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
96
+ dependencies = [
97
+ "crc32fast",
98
+ "miniz_oxide",
99
+ "zlib-rs",
100
+ ]
101
+
102
+ [[package]]
103
+ name = "generic-array"
104
+ version = "0.14.7"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
107
+ dependencies = [
108
+ "typenum",
109
+ "version_check",
110
+ ]
111
+
112
+ [[package]]
113
+ name = "glob"
114
+ version = "0.3.3"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
117
+
118
+ [[package]]
119
+ name = "hashbrown"
120
+ version = "0.17.1"
121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
122
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
123
+
124
+ [[package]]
125
+ name = "indexmap"
126
+ version = "2.14.0"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
129
+ dependencies = [
130
+ "equivalent",
131
+ "hashbrown",
132
+ ]
133
+
134
+ [[package]]
135
+ name = "itoa"
136
+ version = "1.0.18"
137
+ source = "registry+https://github.com/rust-lang/crates.io-index"
138
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
139
+
140
+ [[package]]
141
+ name = "libc"
142
+ version = "0.2.186"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
145
+
146
+ [[package]]
147
+ name = "md-5"
148
+ version = "0.10.6"
149
+ source = "registry+https://github.com/rust-lang/crates.io-index"
150
+ checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"
151
+ dependencies = [
152
+ "cfg-if",
153
+ "digest",
154
+ ]
155
+
156
+ [[package]]
157
+ name = "memchr"
158
+ version = "2.8.2"
159
+ source = "registry+https://github.com/rust-lang/crates.io-index"
160
+ checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
161
+
162
+ [[package]]
163
+ name = "miniz_oxide"
164
+ version = "0.9.1"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
167
+ dependencies = [
168
+ "adler2",
169
+ "simd-adler32",
170
+ ]
171
+
172
+ [[package]]
173
+ name = "num-bigint"
174
+ version = "0.4.8"
175
+ source = "registry+https://github.com/rust-lang/crates.io-index"
176
+ checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
177
+ dependencies = [
178
+ "num-integer",
179
+ "num-traits",
180
+ ]
181
+
182
+ [[package]]
183
+ name = "num-integer"
184
+ version = "0.1.47"
185
+ source = "registry+https://github.com/rust-lang/crates.io-index"
186
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
187
+ dependencies = [
188
+ "num-traits",
189
+ ]
190
+
191
+ [[package]]
192
+ name = "num-traits"
193
+ version = "0.2.19"
194
+ source = "registry+https://github.com/rust-lang/crates.io-index"
195
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
196
+ dependencies = [
197
+ "autocfg",
198
+ ]
199
+
200
+ [[package]]
201
+ name = "proc-macro2"
202
+ version = "1.0.106"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
205
+ dependencies = [
206
+ "unicode-ident",
207
+ ]
208
+
209
+ [[package]]
210
+ name = "quote"
211
+ version = "1.0.45"
212
+ source = "registry+https://github.com/rust-lang/crates.io-index"
213
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
214
+ dependencies = [
215
+ "proc-macro2",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "regex"
220
+ version = "1.12.4"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "f1292b7759ae1cb9ec195452d1390a074f0cd8541ab7a5a8c31cd6db45d4a6ba"
223
+ dependencies = [
224
+ "aho-corasick",
225
+ "memchr",
226
+ "regex-automata",
227
+ "regex-syntax",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "regex-automata"
232
+ version = "0.4.14"
233
+ source = "registry+https://github.com/rust-lang/crates.io-index"
234
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
235
+ dependencies = [
236
+ "aho-corasick",
237
+ "memchr",
238
+ "regex-syntax",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "regex-syntax"
243
+ version = "0.8.11"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
246
+
247
+ [[package]]
248
+ name = "seccompiler"
249
+ version = "0.5.0"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "a4ae55de56877481d112a559bbc12667635fdaf5e005712fd4e2b2fa50ffc884"
252
+ dependencies = [
253
+ "libc",
254
+ ]
255
+
256
+ [[package]]
257
+ name = "serde"
258
+ version = "1.0.228"
259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
260
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
261
+ dependencies = [
262
+ "serde_core",
263
+ "serde_derive",
264
+ ]
265
+
266
+ [[package]]
267
+ name = "serde_core"
268
+ version = "1.0.228"
269
+ source = "registry+https://github.com/rust-lang/crates.io-index"
270
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
271
+ dependencies = [
272
+ "serde_derive",
273
+ ]
274
+
275
+ [[package]]
276
+ name = "serde_derive"
277
+ version = "1.0.228"
278
+ source = "registry+https://github.com/rust-lang/crates.io-index"
279
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
280
+ dependencies = [
281
+ "proc-macro2",
282
+ "quote",
283
+ "syn",
284
+ ]
285
+
286
+ [[package]]
287
+ name = "serde_json"
288
+ version = "1.0.150"
289
+ source = "registry+https://github.com/rust-lang/crates.io-index"
290
+ checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
291
+ dependencies = [
292
+ "indexmap",
293
+ "itoa",
294
+ "memchr",
295
+ "serde",
296
+ "serde_core",
297
+ "zmij",
298
+ ]
299
+
300
+ [[package]]
301
+ name = "serde_spanned"
302
+ version = "0.6.9"
303
+ source = "registry+https://github.com/rust-lang/crates.io-index"
304
+ checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
305
+ dependencies = [
306
+ "serde",
307
+ ]
308
+
309
+ [[package]]
310
+ name = "sha1"
311
+ version = "0.10.6"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"
314
+ dependencies = [
315
+ "cfg-if",
316
+ "cpufeatures",
317
+ "digest",
318
+ ]
319
+
320
+ [[package]]
321
+ name = "sha2"
322
+ version = "0.10.9"
323
+ source = "registry+https://github.com/rust-lang/crates.io-index"
324
+ checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
325
+ dependencies = [
326
+ "cfg-if",
327
+ "cpufeatures",
328
+ "digest",
329
+ ]
330
+
331
+ [[package]]
332
+ name = "shellsim"
333
+ version = "0.1.0"
334
+ dependencies = [
335
+ "base64",
336
+ "crc32fast",
337
+ "flate2",
338
+ "glob",
339
+ "libc",
340
+ "md-5",
341
+ "num-bigint",
342
+ "num-traits",
343
+ "regex",
344
+ "seccompiler",
345
+ "serde",
346
+ "serde_json",
347
+ "sha1",
348
+ "sha2",
349
+ "toml",
350
+ ]
351
+
352
+ [[package]]
353
+ name = "simd-adler32"
354
+ version = "0.3.10"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
357
+
358
+ [[package]]
359
+ name = "syn"
360
+ version = "2.0.118"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
363
+ dependencies = [
364
+ "proc-macro2",
365
+ "quote",
366
+ "unicode-ident",
367
+ ]
368
+
369
+ [[package]]
370
+ name = "toml"
371
+ version = "0.8.23"
372
+ source = "registry+https://github.com/rust-lang/crates.io-index"
373
+ checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
374
+ dependencies = [
375
+ "serde",
376
+ "serde_spanned",
377
+ "toml_datetime",
378
+ "toml_edit",
379
+ ]
380
+
381
+ [[package]]
382
+ name = "toml_datetime"
383
+ version = "0.6.11"
384
+ source = "registry+https://github.com/rust-lang/crates.io-index"
385
+ checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
386
+ dependencies = [
387
+ "serde",
388
+ ]
389
+
390
+ [[package]]
391
+ name = "toml_edit"
392
+ version = "0.22.27"
393
+ source = "registry+https://github.com/rust-lang/crates.io-index"
394
+ checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
395
+ dependencies = [
396
+ "indexmap",
397
+ "serde",
398
+ "serde_spanned",
399
+ "toml_datetime",
400
+ "toml_write",
401
+ "winnow",
402
+ ]
403
+
404
+ [[package]]
405
+ name = "toml_write"
406
+ version = "0.1.2"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
409
+
410
+ [[package]]
411
+ name = "typenum"
412
+ version = "1.20.1"
413
+ source = "registry+https://github.com/rust-lang/crates.io-index"
414
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
415
+
416
+ [[package]]
417
+ name = "unicode-ident"
418
+ version = "1.0.24"
419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
420
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
421
+
422
+ [[package]]
423
+ name = "version_check"
424
+ version = "0.9.5"
425
+ source = "registry+https://github.com/rust-lang/crates.io-index"
426
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
427
+
428
+ [[package]]
429
+ name = "winnow"
430
+ version = "0.7.15"
431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
432
+ checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
433
+ dependencies = [
434
+ "memchr",
435
+ ]
436
+
437
+ [[package]]
438
+ name = "zlib-rs"
439
+ version = "0.6.7"
440
+ source = "registry+https://github.com/rust-lang/crates.io-index"
441
+ checksum = "34b31d188d9d685a4f9c7b46d6e36631b07058d2cfe190267adce54dc230bf12"
442
+
443
+ [[package]]
444
+ name = "zmij"
445
+ version = "1.0.21"
446
+ source = "registry+https://github.com/rust-lang/crates.io-index"
447
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
@@ -0,0 +1,61 @@
1
+ [package]
2
+ name = "shellsim"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ description = "Deterministic, resource-constrained BusyBox-like environment for evaluating agents"
6
+ license = "Apache-2.0"
7
+ readme = "README.md"
8
+ repository = "https://github.com/rjpower/shellsim"
9
+ include = [
10
+ "/src/**",
11
+ "/Cargo.toml",
12
+ "/Cargo.lock",
13
+ "/rust-toolchain.toml",
14
+ "/README.md",
15
+ "/LICENSE",
16
+ ]
17
+
18
+ [[bin]]
19
+ name = "shellsim"
20
+ path = "src/main.rs"
21
+
22
+ [[bin]]
23
+ name = "shellsim-python"
24
+ path = "src/bin/shellsim-python.rs"
25
+
26
+ [lib]
27
+ name = "shellsim"
28
+ path = "src/lib.rs"
29
+
30
+ [dependencies]
31
+ regex = "1"
32
+ serde = { version = "1", features = ["derive"] }
33
+ serde_json = { version = "1", features = ["arbitrary_precision", "preserve_order"] }
34
+ toml = "0.8"
35
+ glob = "0.3"
36
+ sha2 = "0.10"
37
+ sha1 = "0.10"
38
+ md-5 = "0.10"
39
+ base64 = "0.22"
40
+ crc32fast = "1"
41
+ flate2 = "1"
42
+ num-bigint = "0.4"
43
+ num-traits = "0.2"
44
+
45
+ # Process-level syscall sandbox (Linux only): a startup seccomp filter that denies
46
+ # network/exec/fork so no Python-level trick can reach the real OS for those. shellsim
47
+ # itself never opens sockets, execs, or forks, so this is safe for its own file I/O.
48
+ [target.'cfg(target_os = "linux")'.dependencies]
49
+ seccompiler = "0.5"
50
+ libc = "0.2"
51
+
52
+ [features]
53
+ default = []
54
+ # Retained as an empty compatibility feature. Python is now always the minimal `-c` shim.
55
+ python = []
56
+
57
+ [profile.dev]
58
+ opt-level = 1
59
+
60
+ [profile.release]
61
+ opt-level = 2