fastsandbox 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.
- fastsandbox-0.1.0/Cargo.lock +635 -0
- fastsandbox-0.1.0/Cargo.toml +78 -0
- fastsandbox-0.1.0/LICENSE-APACHE +202 -0
- fastsandbox-0.1.0/LICENSE-MIT +21 -0
- fastsandbox-0.1.0/PKG-INFO +280 -0
- fastsandbox-0.1.0/README.md +256 -0
- fastsandbox-0.1.0/fastsandbox/__init__.py +64 -0
- fastsandbox-0.1.0/fastsandbox/__main__.py +5 -0
- fastsandbox-0.1.0/fastsandbox/_native.pyi +227 -0
- fastsandbox-0.1.0/fastsandbox/agents.py +327 -0
- fastsandbox-0.1.0/fastsandbox/applications.py +537 -0
- fastsandbox-0.1.0/fastsandbox/cli.py +248 -0
- fastsandbox-0.1.0/fastsandbox/client.py +294 -0
- fastsandbox-0.1.0/fastsandbox/context.py +98 -0
- fastsandbox-0.1.0/fastsandbox/daemon.py +67 -0
- fastsandbox-0.1.0/fastsandbox/dependencies/__init__.py +4 -0
- fastsandbox-0.1.0/fastsandbox/dependencies/models.py +27 -0
- fastsandbox-0.1.0/fastsandbox/dependencies/utils.py +151 -0
- fastsandbox-0.1.0/fastsandbox/events.py +28 -0
- fastsandbox-0.1.0/fastsandbox/exceptions.py +183 -0
- fastsandbox-0.1.0/fastsandbox/images.py +65 -0
- fastsandbox-0.1.0/fastsandbox/kits.py +314 -0
- fastsandbox-0.1.0/fastsandbox/mcp.py +27 -0
- fastsandbox-0.1.0/fastsandbox/models/__init__.py +81 -0
- fastsandbox-0.1.0/fastsandbox/models/_base.py +34 -0
- fastsandbox-0.1.0/fastsandbox/models/credentials.py +142 -0
- fastsandbox-0.1.0/fastsandbox/models/daemon.py +98 -0
- fastsandbox-0.1.0/fastsandbox/models/events.py +63 -0
- fastsandbox-0.1.0/fastsandbox/models/exec.py +181 -0
- fastsandbox-0.1.0/fastsandbox/models/images.py +98 -0
- fastsandbox-0.1.0/fastsandbox/models/kits.py +19 -0
- fastsandbox-0.1.0/fastsandbox/models/mcp.py +107 -0
- fastsandbox-0.1.0/fastsandbox/models/policy.py +342 -0
- fastsandbox-0.1.0/fastsandbox/models/prompts.py +26 -0
- fastsandbox-0.1.0/fastsandbox/models/sandbox.py +359 -0
- fastsandbox-0.1.0/fastsandbox/network.py +72 -0
- fastsandbox-0.1.0/fastsandbox/params.py +84 -0
- fastsandbox-0.1.0/fastsandbox/policy.py +71 -0
- fastsandbox-0.1.0/fastsandbox/prompts.py +28 -0
- fastsandbox-0.1.0/fastsandbox/py.typed +0 -0
- fastsandbox-0.1.0/fastsandbox/sandbox.py +412 -0
- fastsandbox-0.1.0/fastsandbox/sandboxes.py +58 -0
- fastsandbox-0.1.0/fastsandbox/sessions.py +126 -0
- fastsandbox-0.1.0/fastsandbox/ssh.py +53 -0
- fastsandbox-0.1.0/fastsandbox/streams.py +46 -0
- fastsandbox-0.1.0/fastsandbox/tasks.py +78 -0
- fastsandbox-0.1.0/fastsandbox/testing.py +528 -0
- fastsandbox-0.1.0/fastsandbox/types.py +31 -0
- fastsandbox-0.1.0/fastsandbox/utils.py +51 -0
- fastsandbox-0.1.0/fastsandbox-native/Cargo.toml +53 -0
- fastsandbox-0.1.0/fastsandbox-native/src/client.rs +581 -0
- fastsandbox-0.1.0/fastsandbox-native/src/convert.rs +107 -0
- fastsandbox-0.1.0/fastsandbox-native/src/error.rs +115 -0
- fastsandbox-0.1.0/fastsandbox-native/src/exec.rs +300 -0
- fastsandbox-0.1.0/fastsandbox-native/src/kit.rs +262 -0
- fastsandbox-0.1.0/fastsandbox-native/src/lib.rs +87 -0
- fastsandbox-0.1.0/fastsandbox-native/src/sandbox.rs +477 -0
- fastsandbox-0.1.0/fastsandbox-native/src/ssh.rs +116 -0
- fastsandbox-0.1.0/fastsandbox-native/src/stream.rs +95 -0
- fastsandbox-0.1.0/pyproject.toml +185 -0
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "atomic-waker"
|
|
7
|
+
version = "1.1.2"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "2.13.2"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "bytes"
|
|
19
|
+
version = "1.12.2"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "776dfebd015e2d8732c684a2c71003674ccb49457b539b9e82151ba38e96dd7c"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "cfg-if"
|
|
25
|
+
version = "1.0.5"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "docker-sandbox"
|
|
31
|
+
version = "0.1.1"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "f99ff165253efd643f8f1a657b63a68d7c49c105617aab066340375f7e51382a"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"bytes",
|
|
36
|
+
"futures-core",
|
|
37
|
+
"http",
|
|
38
|
+
"http-body",
|
|
39
|
+
"http-body-util",
|
|
40
|
+
"hyper",
|
|
41
|
+
"hyper-util",
|
|
42
|
+
"percent-encoding",
|
|
43
|
+
"serde",
|
|
44
|
+
"serde_json",
|
|
45
|
+
"tar",
|
|
46
|
+
"thiserror",
|
|
47
|
+
"tokio",
|
|
48
|
+
"tracing",
|
|
49
|
+
]
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "errno"
|
|
53
|
+
version = "0.3.15"
|
|
54
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
55
|
+
checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776"
|
|
56
|
+
dependencies = [
|
|
57
|
+
"libc",
|
|
58
|
+
"windows-sys",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "fastsandbox-native"
|
|
63
|
+
version = "0.1.0"
|
|
64
|
+
dependencies = [
|
|
65
|
+
"bytes",
|
|
66
|
+
"docker-sandbox",
|
|
67
|
+
"futures-util",
|
|
68
|
+
"pyo3",
|
|
69
|
+
"pyo3-async-runtimes",
|
|
70
|
+
"pythonize",
|
|
71
|
+
"serde",
|
|
72
|
+
"serde_json",
|
|
73
|
+
"tokio",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "filetime"
|
|
78
|
+
version = "0.2.30"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "e1255e7a9f1902190d4c10a75f2f7f495d3d3ce13e9ba26e6c48683a0f4dbed7"
|
|
81
|
+
dependencies = [
|
|
82
|
+
"cfg-if",
|
|
83
|
+
"libc",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "futures-channel"
|
|
88
|
+
version = "0.3.34"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
|
|
91
|
+
dependencies = [
|
|
92
|
+
"futures-core",
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
[[package]]
|
|
96
|
+
name = "futures-core"
|
|
97
|
+
version = "0.3.34"
|
|
98
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
|
|
100
|
+
|
|
101
|
+
[[package]]
|
|
102
|
+
name = "futures-macro"
|
|
103
|
+
version = "0.3.34"
|
|
104
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
105
|
+
checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
|
|
106
|
+
dependencies = [
|
|
107
|
+
"proc-macro2",
|
|
108
|
+
"quote",
|
|
109
|
+
"syn 3.0.10",
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "futures-task"
|
|
114
|
+
version = "0.3.34"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
|
|
117
|
+
|
|
118
|
+
[[package]]
|
|
119
|
+
name = "futures-util"
|
|
120
|
+
version = "0.3.34"
|
|
121
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
+
checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
|
|
123
|
+
dependencies = [
|
|
124
|
+
"futures-core",
|
|
125
|
+
"futures-macro",
|
|
126
|
+
"futures-task",
|
|
127
|
+
"pin-project-lite",
|
|
128
|
+
"slab",
|
|
129
|
+
]
|
|
130
|
+
|
|
131
|
+
[[package]]
|
|
132
|
+
name = "heck"
|
|
133
|
+
version = "0.5.0"
|
|
134
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
135
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
136
|
+
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "http"
|
|
139
|
+
version = "1.5.0"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
|
|
142
|
+
dependencies = [
|
|
143
|
+
"bytes",
|
|
144
|
+
"itoa",
|
|
145
|
+
]
|
|
146
|
+
|
|
147
|
+
[[package]]
|
|
148
|
+
name = "http-body"
|
|
149
|
+
version = "1.1.0"
|
|
150
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
+
checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
|
|
152
|
+
dependencies = [
|
|
153
|
+
"bytes",
|
|
154
|
+
"http",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "http-body-util"
|
|
159
|
+
version = "0.1.5"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
|
|
162
|
+
dependencies = [
|
|
163
|
+
"bytes",
|
|
164
|
+
"futures-core",
|
|
165
|
+
"http",
|
|
166
|
+
"http-body",
|
|
167
|
+
"pin-project-lite",
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "httparse"
|
|
172
|
+
version = "1.10.1"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "httpdate"
|
|
178
|
+
version = "1.0.3"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "hyper"
|
|
184
|
+
version = "1.13.0"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "229c6ff5584df4c6becbfe00567128bac768c8cd32ebc8a8366bd81ed072e8f3"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"atomic-waker",
|
|
189
|
+
"bytes",
|
|
190
|
+
"futures-core",
|
|
191
|
+
"http",
|
|
192
|
+
"http-body",
|
|
193
|
+
"httparse",
|
|
194
|
+
"httpdate",
|
|
195
|
+
"itoa",
|
|
196
|
+
"pin-project-lite",
|
|
197
|
+
"smallvec",
|
|
198
|
+
"tokio",
|
|
199
|
+
"want",
|
|
200
|
+
]
|
|
201
|
+
|
|
202
|
+
[[package]]
|
|
203
|
+
name = "hyper-util"
|
|
204
|
+
version = "0.1.21"
|
|
205
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
206
|
+
checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"
|
|
207
|
+
dependencies = [
|
|
208
|
+
"bytes",
|
|
209
|
+
"http",
|
|
210
|
+
"http-body",
|
|
211
|
+
"hyper",
|
|
212
|
+
"pin-project-lite",
|
|
213
|
+
"tokio",
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "itoa"
|
|
218
|
+
version = "1.0.19"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
|
221
|
+
|
|
222
|
+
[[package]]
|
|
223
|
+
name = "libc"
|
|
224
|
+
version = "0.2.191"
|
|
225
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
226
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
227
|
+
|
|
228
|
+
[[package]]
|
|
229
|
+
name = "linux-raw-sys"
|
|
230
|
+
version = "0.12.1"
|
|
231
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
233
|
+
|
|
234
|
+
[[package]]
|
|
235
|
+
name = "memchr"
|
|
236
|
+
version = "2.8.3"
|
|
237
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
238
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
239
|
+
|
|
240
|
+
[[package]]
|
|
241
|
+
name = "mio"
|
|
242
|
+
version = "1.2.5"
|
|
243
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
244
|
+
checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a"
|
|
245
|
+
dependencies = [
|
|
246
|
+
"libc",
|
|
247
|
+
"wasi",
|
|
248
|
+
"windows-sys",
|
|
249
|
+
]
|
|
250
|
+
|
|
251
|
+
[[package]]
|
|
252
|
+
name = "once_cell"
|
|
253
|
+
version = "1.21.4"
|
|
254
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
256
|
+
|
|
257
|
+
[[package]]
|
|
258
|
+
name = "percent-encoding"
|
|
259
|
+
version = "2.3.2"
|
|
260
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
262
|
+
|
|
263
|
+
[[package]]
|
|
264
|
+
name = "pin-project-lite"
|
|
265
|
+
version = "0.2.18"
|
|
266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
+
checksum = "c938015719552d665fd0553b90d96cd7ff58e83e4c061ca99e6bb78865a72752"
|
|
268
|
+
|
|
269
|
+
[[package]]
|
|
270
|
+
name = "portable-atomic"
|
|
271
|
+
version = "1.15.0"
|
|
272
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
273
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "proc-macro2"
|
|
277
|
+
version = "1.0.107"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
280
|
+
dependencies = [
|
|
281
|
+
"unicode-ident",
|
|
282
|
+
]
|
|
283
|
+
|
|
284
|
+
[[package]]
|
|
285
|
+
name = "pyo3"
|
|
286
|
+
version = "0.30.1"
|
|
287
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
288
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
289
|
+
dependencies = [
|
|
290
|
+
"libc",
|
|
291
|
+
"once_cell",
|
|
292
|
+
"portable-atomic",
|
|
293
|
+
"pyo3-build-config",
|
|
294
|
+
"pyo3-ffi",
|
|
295
|
+
"pyo3-macros",
|
|
296
|
+
]
|
|
297
|
+
|
|
298
|
+
[[package]]
|
|
299
|
+
name = "pyo3-async-runtimes"
|
|
300
|
+
version = "0.30.0"
|
|
301
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
302
|
+
checksum = "b877331c7817ccb6379e9d19a06993160141f1d0a386e55276128717df85e3fc"
|
|
303
|
+
dependencies = [
|
|
304
|
+
"futures-channel",
|
|
305
|
+
"futures-util",
|
|
306
|
+
"once_cell",
|
|
307
|
+
"pin-project-lite",
|
|
308
|
+
"pyo3",
|
|
309
|
+
"tokio",
|
|
310
|
+
]
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "pyo3-build-config"
|
|
314
|
+
version = "0.30.1"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
317
|
+
dependencies = [
|
|
318
|
+
"target-lexicon",
|
|
319
|
+
]
|
|
320
|
+
|
|
321
|
+
[[package]]
|
|
322
|
+
name = "pyo3-ffi"
|
|
323
|
+
version = "0.30.1"
|
|
324
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
325
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
326
|
+
dependencies = [
|
|
327
|
+
"libc",
|
|
328
|
+
"pyo3-build-config",
|
|
329
|
+
]
|
|
330
|
+
|
|
331
|
+
[[package]]
|
|
332
|
+
name = "pyo3-macros"
|
|
333
|
+
version = "0.30.1"
|
|
334
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
335
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
336
|
+
dependencies = [
|
|
337
|
+
"proc-macro2",
|
|
338
|
+
"pyo3-macros-backend",
|
|
339
|
+
"quote",
|
|
340
|
+
"syn 3.0.10",
|
|
341
|
+
]
|
|
342
|
+
|
|
343
|
+
[[package]]
|
|
344
|
+
name = "pyo3-macros-backend"
|
|
345
|
+
version = "0.30.1"
|
|
346
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
347
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
348
|
+
dependencies = [
|
|
349
|
+
"heck",
|
|
350
|
+
"proc-macro2",
|
|
351
|
+
"quote",
|
|
352
|
+
"syn 3.0.10",
|
|
353
|
+
]
|
|
354
|
+
|
|
355
|
+
[[package]]
|
|
356
|
+
name = "pythonize"
|
|
357
|
+
version = "0.30.0"
|
|
358
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
359
|
+
checksum = "81dc750465ccfd42f746835ba6d9001f9fb780249d7e6acdb4f76244000045b2"
|
|
360
|
+
dependencies = [
|
|
361
|
+
"pyo3",
|
|
362
|
+
"serde",
|
|
363
|
+
]
|
|
364
|
+
|
|
365
|
+
[[package]]
|
|
366
|
+
name = "quote"
|
|
367
|
+
version = "1.0.47"
|
|
368
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
369
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
370
|
+
dependencies = [
|
|
371
|
+
"proc-macro2",
|
|
372
|
+
]
|
|
373
|
+
|
|
374
|
+
[[package]]
|
|
375
|
+
name = "rustix"
|
|
376
|
+
version = "1.1.6"
|
|
377
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
378
|
+
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
|
|
379
|
+
dependencies = [
|
|
380
|
+
"bitflags",
|
|
381
|
+
"errno",
|
|
382
|
+
"libc",
|
|
383
|
+
"linux-raw-sys",
|
|
384
|
+
"windows-sys",
|
|
385
|
+
]
|
|
386
|
+
|
|
387
|
+
[[package]]
|
|
388
|
+
name = "serde"
|
|
389
|
+
version = "1.0.229"
|
|
390
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
391
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
392
|
+
dependencies = [
|
|
393
|
+
"serde_core",
|
|
394
|
+
"serde_derive",
|
|
395
|
+
]
|
|
396
|
+
|
|
397
|
+
[[package]]
|
|
398
|
+
name = "serde_core"
|
|
399
|
+
version = "1.0.229"
|
|
400
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
401
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
402
|
+
dependencies = [
|
|
403
|
+
"serde_derive",
|
|
404
|
+
]
|
|
405
|
+
|
|
406
|
+
[[package]]
|
|
407
|
+
name = "serde_derive"
|
|
408
|
+
version = "1.0.229"
|
|
409
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
410
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
411
|
+
dependencies = [
|
|
412
|
+
"proc-macro2",
|
|
413
|
+
"quote",
|
|
414
|
+
"syn 3.0.10",
|
|
415
|
+
]
|
|
416
|
+
|
|
417
|
+
[[package]]
|
|
418
|
+
name = "serde_json"
|
|
419
|
+
version = "1.0.154"
|
|
420
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
421
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
422
|
+
dependencies = [
|
|
423
|
+
"itoa",
|
|
424
|
+
"memchr",
|
|
425
|
+
"serde",
|
|
426
|
+
"serde_core",
|
|
427
|
+
"zmij",
|
|
428
|
+
]
|
|
429
|
+
|
|
430
|
+
[[package]]
|
|
431
|
+
name = "signal-hook-registry"
|
|
432
|
+
version = "1.4.8"
|
|
433
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
434
|
+
checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
|
|
435
|
+
dependencies = [
|
|
436
|
+
"errno",
|
|
437
|
+
"libc",
|
|
438
|
+
]
|
|
439
|
+
|
|
440
|
+
[[package]]
|
|
441
|
+
name = "slab"
|
|
442
|
+
version = "0.4.12"
|
|
443
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
444
|
+
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
445
|
+
|
|
446
|
+
[[package]]
|
|
447
|
+
name = "smallvec"
|
|
448
|
+
version = "1.16.6"
|
|
449
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
450
|
+
checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59"
|
|
451
|
+
|
|
452
|
+
[[package]]
|
|
453
|
+
name = "socket2"
|
|
454
|
+
version = "0.6.5"
|
|
455
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
456
|
+
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
|
|
457
|
+
dependencies = [
|
|
458
|
+
"libc",
|
|
459
|
+
"windows-sys",
|
|
460
|
+
]
|
|
461
|
+
|
|
462
|
+
[[package]]
|
|
463
|
+
name = "syn"
|
|
464
|
+
version = "2.0.119"
|
|
465
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
466
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
467
|
+
dependencies = [
|
|
468
|
+
"proc-macro2",
|
|
469
|
+
"quote",
|
|
470
|
+
"unicode-ident",
|
|
471
|
+
]
|
|
472
|
+
|
|
473
|
+
[[package]]
|
|
474
|
+
name = "syn"
|
|
475
|
+
version = "3.0.10"
|
|
476
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
477
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
478
|
+
dependencies = [
|
|
479
|
+
"proc-macro2",
|
|
480
|
+
"quote",
|
|
481
|
+
"unicode-ident",
|
|
482
|
+
]
|
|
483
|
+
|
|
484
|
+
[[package]]
|
|
485
|
+
name = "tar"
|
|
486
|
+
version = "0.4.46"
|
|
487
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
488
|
+
checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
|
|
489
|
+
dependencies = [
|
|
490
|
+
"filetime",
|
|
491
|
+
"libc",
|
|
492
|
+
"xattr",
|
|
493
|
+
]
|
|
494
|
+
|
|
495
|
+
[[package]]
|
|
496
|
+
name = "target-lexicon"
|
|
497
|
+
version = "0.13.6"
|
|
498
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
499
|
+
checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
|
|
500
|
+
|
|
501
|
+
[[package]]
|
|
502
|
+
name = "thiserror"
|
|
503
|
+
version = "2.0.21"
|
|
504
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
505
|
+
checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
|
|
506
|
+
dependencies = [
|
|
507
|
+
"thiserror-impl",
|
|
508
|
+
]
|
|
509
|
+
|
|
510
|
+
[[package]]
|
|
511
|
+
name = "thiserror-impl"
|
|
512
|
+
version = "2.0.21"
|
|
513
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
514
|
+
checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
|
|
515
|
+
dependencies = [
|
|
516
|
+
"proc-macro2",
|
|
517
|
+
"quote",
|
|
518
|
+
"syn 3.0.10",
|
|
519
|
+
]
|
|
520
|
+
|
|
521
|
+
[[package]]
|
|
522
|
+
name = "tokio"
|
|
523
|
+
version = "1.54.1"
|
|
524
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
525
|
+
checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
|
|
526
|
+
dependencies = [
|
|
527
|
+
"bytes",
|
|
528
|
+
"libc",
|
|
529
|
+
"mio",
|
|
530
|
+
"pin-project-lite",
|
|
531
|
+
"signal-hook-registry",
|
|
532
|
+
"socket2",
|
|
533
|
+
"tokio-macros",
|
|
534
|
+
"windows-sys",
|
|
535
|
+
]
|
|
536
|
+
|
|
537
|
+
[[package]]
|
|
538
|
+
name = "tokio-macros"
|
|
539
|
+
version = "2.7.2"
|
|
540
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
541
|
+
checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
|
|
542
|
+
dependencies = [
|
|
543
|
+
"proc-macro2",
|
|
544
|
+
"quote",
|
|
545
|
+
"syn 3.0.10",
|
|
546
|
+
]
|
|
547
|
+
|
|
548
|
+
[[package]]
|
|
549
|
+
name = "tracing"
|
|
550
|
+
version = "0.1.44"
|
|
551
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
552
|
+
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
|
553
|
+
dependencies = [
|
|
554
|
+
"pin-project-lite",
|
|
555
|
+
"tracing-attributes",
|
|
556
|
+
"tracing-core",
|
|
557
|
+
]
|
|
558
|
+
|
|
559
|
+
[[package]]
|
|
560
|
+
name = "tracing-attributes"
|
|
561
|
+
version = "0.1.31"
|
|
562
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
563
|
+
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
|
564
|
+
dependencies = [
|
|
565
|
+
"proc-macro2",
|
|
566
|
+
"quote",
|
|
567
|
+
"syn 2.0.119",
|
|
568
|
+
]
|
|
569
|
+
|
|
570
|
+
[[package]]
|
|
571
|
+
name = "tracing-core"
|
|
572
|
+
version = "0.1.36"
|
|
573
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
574
|
+
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
|
575
|
+
dependencies = [
|
|
576
|
+
"once_cell",
|
|
577
|
+
]
|
|
578
|
+
|
|
579
|
+
[[package]]
|
|
580
|
+
name = "try-lock"
|
|
581
|
+
version = "0.2.5"
|
|
582
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
583
|
+
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
|
584
|
+
|
|
585
|
+
[[package]]
|
|
586
|
+
name = "unicode-ident"
|
|
587
|
+
version = "1.0.27"
|
|
588
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
589
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
590
|
+
|
|
591
|
+
[[package]]
|
|
592
|
+
name = "want"
|
|
593
|
+
version = "0.3.2"
|
|
594
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
595
|
+
checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
|
|
596
|
+
dependencies = [
|
|
597
|
+
"try-lock",
|
|
598
|
+
]
|
|
599
|
+
|
|
600
|
+
[[package]]
|
|
601
|
+
name = "wasi"
|
|
602
|
+
version = "0.11.1+wasi-snapshot-preview1"
|
|
603
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
604
|
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
605
|
+
|
|
606
|
+
[[package]]
|
|
607
|
+
name = "windows-link"
|
|
608
|
+
version = "0.2.1"
|
|
609
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
610
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
611
|
+
|
|
612
|
+
[[package]]
|
|
613
|
+
name = "windows-sys"
|
|
614
|
+
version = "0.61.2"
|
|
615
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
616
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
617
|
+
dependencies = [
|
|
618
|
+
"windows-link",
|
|
619
|
+
]
|
|
620
|
+
|
|
621
|
+
[[package]]
|
|
622
|
+
name = "xattr"
|
|
623
|
+
version = "1.7.0"
|
|
624
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
625
|
+
checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08"
|
|
626
|
+
dependencies = [
|
|
627
|
+
"libc",
|
|
628
|
+
"rustix",
|
|
629
|
+
]
|
|
630
|
+
|
|
631
|
+
[[package]]
|
|
632
|
+
name = "zmij"
|
|
633
|
+
version = "1.0.23"
|
|
634
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
635
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# ------------------------------------------------------------------------------
|
|
2
|
+
# fastsandbox — the Cargo workspace of the repository: its member list, shared
|
|
3
|
+
# package metadata, the lint policy every member inherits, and the release
|
|
4
|
+
# build profile.
|
|
5
|
+
#
|
|
6
|
+
# `fastsandbox-native/` is the one crate: the native extension of the Python
|
|
7
|
+
# package, built by maturin (pyproject.toml) into `fastsandbox._native`. The
|
|
8
|
+
# Python package itself is `fastsandbox/`, at the root.
|
|
9
|
+
# ------------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
[workspace]
|
|
12
|
+
members = ["fastsandbox-native"]
|
|
13
|
+
resolver = "3"
|
|
14
|
+
|
|
15
|
+
# Metadata inherited by every member through `<key>.workspace = true`.
|
|
16
|
+
[workspace.package]
|
|
17
|
+
authors = ["Aurelien Andre <aurelien.andre@aartintelligent.fr>"]
|
|
18
|
+
edition = "2024"
|
|
19
|
+
license = "MIT OR Apache-2.0"
|
|
20
|
+
# The extension ships in the Python package, never on crates.io.
|
|
21
|
+
publish = false
|
|
22
|
+
# The MSRV of `docker-sandbox`; PyO3 itself needs 1.85.
|
|
23
|
+
rust-version = "1.88"
|
|
24
|
+
version = "0.1.0"
|
|
25
|
+
|
|
26
|
+
# ------------------------------------------------------------------------------
|
|
27
|
+
# Quality gates — the policy of `docker-sandbox`, inherited by every member
|
|
28
|
+
# through `[lints] workspace = true`. Never silence one of these locally
|
|
29
|
+
# without a written justification.
|
|
30
|
+
# ------------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
[workspace.lints.rust]
|
|
33
|
+
# Every public type should be printable while debugging.
|
|
34
|
+
missing_debug_implementations = "warn"
|
|
35
|
+
# Every item exposed to Python carries English documentation: it becomes the
|
|
36
|
+
# docstring.
|
|
37
|
+
missing_docs = "warn"
|
|
38
|
+
# Edition-2018 idioms (explicit `dyn`, no extern crate, ...); lower priority so
|
|
39
|
+
# that individual lints below can still override it.
|
|
40
|
+
rust_2018_idioms = { level = "warn", priority = -1 }
|
|
41
|
+
# Catches `pub` items that are not actually reachable from outside the crate.
|
|
42
|
+
unreachable_pub = "warn"
|
|
43
|
+
# No unsafe code of our own; `deny` rather than `forbid`, since the PyO3
|
|
44
|
+
# macros expand to unsafe code they allow themselves.
|
|
45
|
+
unsafe_code = "deny"
|
|
46
|
+
# Paths that are already imported should not be spelled out again.
|
|
47
|
+
unused_qualifications = "warn"
|
|
48
|
+
|
|
49
|
+
[workspace.lints.clippy]
|
|
50
|
+
# The default lint set plus the pedantic group, both at low priority so that
|
|
51
|
+
# the explicit allows and warns below take precedence.
|
|
52
|
+
all = { level = "warn", priority = -1 }
|
|
53
|
+
pedantic = { level = "warn", priority = -1 }
|
|
54
|
+
# Names like `client::ClientHandle` are the conventional vocabulary of a module.
|
|
55
|
+
module_name_repetitions = "allow"
|
|
56
|
+
# Leftover debugging output.
|
|
57
|
+
dbg_macro = "warn"
|
|
58
|
+
print_stderr = "warn"
|
|
59
|
+
print_stdout = "warn"
|
|
60
|
+
# Unfinished code must not ship.
|
|
61
|
+
todo = "warn"
|
|
62
|
+
unimplemented = "warn"
|
|
63
|
+
# Panics on `Option`/`Result` in library code; tests are exempt via clippy.toml.
|
|
64
|
+
unwrap_used = "warn"
|
|
65
|
+
|
|
66
|
+
[workspace.lints.rustdoc]
|
|
67
|
+
# A broken `[link]` in rustdoc is a documentation bug, not a warning.
|
|
68
|
+
broken_intra_doc_links = "deny"
|
|
69
|
+
|
|
70
|
+
# ------------------------------------------------------------------------------
|
|
71
|
+
# Build profiles — release wheels trade compile time for a smaller, faster
|
|
72
|
+
# extension.
|
|
73
|
+
# ------------------------------------------------------------------------------
|
|
74
|
+
|
|
75
|
+
[profile.release]
|
|
76
|
+
codegen-units = 1
|
|
77
|
+
lto = "fat"
|
|
78
|
+
strip = true
|