Debian Codegraph @

maturin.schema.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "ToolMaturin",
4 "description": "The `[tool.maturin]` section of a pyproject.toml",
5 "type": "object",
6 "properties": {
7 "all-features": {
8 "description": "Activate all available features",
9 "type": [
10 "boolean",
11 "null"
12 ]
13 },
14 "auditwheel": {
15 "description": "Audit wheel mode",
16 "anyOf": [
17 {
18 "$ref": "#/definitions/AuditWheelMode"
19 },
20 {
21 "type": "null"
22 }
23 ]
24 },
25 "bindings": {
26 "description": "Bindings type",
27 "type": [
28 "string",
29 "null"
30 ]
31 },
32 "compatibility": {
33 "description": "Platform compatibility",
34 "anyOf": [
35 {
36 "$ref": "#/definitions/PlatformTag"
37 },
38 {
39 "type": "null"
40 }
41 ]
42 },
43 "config": {
44 "description": "Override a configuration value (unstable)",
45 "type": [
46 "array",
47 "null"
48 ],
49 "items": {
50 "type": "string"
51 }
52 },
53 "data": {
54 "description": "Path to the wheel directory, defaults to `<module_name>.data`",
55 "type": [
56 "string",
57 "null"
58 ]
59 },
60 "exclude": {
61 "description": "Exclude files matching the given glob pattern(s)",
62 "type": [
63 "array",
64 "null"
65 ],
66 "items": {
67 "$ref": "#/definitions/GlobPattern"
68 }
69 },
70 "features": {
71 "description": "Space or comma separated list of features to activate",
72 "type": [
73 "array",
74 "null"
75 ],
76 "items": {
77 "type": "string"
78 }
79 },
80 "frozen": {
81 "description": "Require Cargo.lock and cache are up to date",
82 "type": [
83 "boolean",
84 "null"
85 ]
86 },
87 "include": {
88 "description": "Include files matching the given glob pattern(s)",
89 "type": [
90 "array",
91 "null"
92 ],
93 "items": {
94 "$ref": "#/definitions/GlobPattern"
95 }
96 },
97 "locked": {
98 "description": "Require Cargo.lock is up to date",
99 "type": [
100 "boolean",
101 "null"
102 ]
103 },
104 "manifest-path": {
105 "description": "Path to Cargo.toml",
106 "type": [
107 "string",
108 "null"
109 ]
110 },
111 "module-name": {
112 "description": "Module name, accepts setuptools style import name like `foo.bar`",
113 "type": [
114 "string",
115 "null"
116 ]
117 },
118 "no-default-features": {
119 "description": "Do not activate the `default` feature",
120 "type": [
121 "boolean",
122 "null"
123 ]
124 },
125 "profile": {
126 "description": "Build artifacts with the specified Cargo profile",
127 "type": [
128 "string",
129 "null"
130 ]
131 },
132 "python-packages": {
133 "description": "Python packages to include",
134 "type": [
135 "array",
136 "null"
137 ],
138 "items": {
139 "type": "string"
140 }
141 },
142 "python-source": {
143 "description": "The directory with python module, contains `<module_name>/__init__.py`",
144 "type": [
145 "string",
146 "null"
147 ]
148 },
149 "rustc-args": {
150 "description": "Additional rustc arguments",
151 "type": [
152 "array",
153 "null"
154 ],
155 "items": {
156 "type": "string"
157 }
158 },
159 "sdist-generator": {
160 "description": "Source distribution generator",
161 "default": "cargo",
162 "allOf": [
163 {
164 "$ref": "#/definitions/SdistGenerator"
165 }
166 ]
167 },
168 "skip-auditwheel": {
169 "description": "Skip audit wheel",
170 "default": false,
171 "type": "boolean"
172 },
173 "strip": {
174 "description": "Strip the final binary",
175 "default": false,
176 "type": "boolean"
177 },
178 "target": {
179 "description": "Target configuration",
180 "default": {},
181 "type": "object",
182 "additionalProperties": {
183 "$ref": "#/definitions/TargetConfig"
184 }
185 },
186 "targets": {
187 "description": "Cargo compile targets",
188 "type": [
189 "array",
190 "null"
191 ],
192 "items": {
193 "$ref": "#/definitions/CargoTarget"
194 }
195 },
196 "unstable-flags": {
197 "description": "Unstable (nightly-only) flags to Cargo, see 'cargo -Z help' for details",
198 "type": [
199 "array",
200 "null"
201 ],
202 "items": {
203 "type": "string"
204 }
205 },
206 "use-base-python": {
207 "description": "Use base Python executable instead of venv Python executable in PEP 517 build.",
208 "default": false,
209 "type": "boolean"
210 }
211 },
212 "definitions": {
213 "AuditWheelMode": {
214 "description": "Auditwheel mode",
215 "oneOf": [
216 {
217 "description": "Audit and repair wheel for manylinux compliance",
218 "type": "string",
219 "enum": [
220 "repair"
221 ]
222 },
223 {
224 "description": "Check wheel for manylinux compliance, but do not repair",
225 "type": "string",
226 "enum": [
227 "check"
228 ]
229 },
230 {
231 "description": "Don't check for manylinux compliance",
232 "type": "string",
233 "enum": [
234 "skip"
235 ]
236 }
237 ]
238 },
239 "CargoCrateType": {
240 "description": "Supported cargo crate types",
241 "oneOf": [
242 {
243 "description": "Binary executable target",
244 "type": "string",
245 "enum": [
246 "bin"
247 ]
248 },
249 {
250 "description": "Dynamic system library target",
251 "type": "string",
252 "enum": [
253 "cdylib"
254 ]
255 },
256 {
257 "description": "Dynamic Rust library target",
258 "type": "string",
259 "enum": [
260 "dylib"
261 ]
262 },
263 {
264 "description": "Rust library",
265 "type": "string",
266 "enum": [
267 "lib"
268 ]
269 },
270 {
271 "description": "Rust library for use as an intermediate target",
272 "type": "string",
273 "enum": [
274 "rlib"
275 ]
276 },
277 {
278 "description": "Static library",
279 "type": "string",
280 "enum": [
281 "staticlib"
282 ]
283 }
284 ]
285 },
286 "CargoTarget": {
287 "description": "Cargo compile target",
288 "type": "object",
289 "required": [
290 "name"
291 ],
292 "properties": {
293 "kind": {
294 "description": "Kind of target (\"bin\", \"cdylib\")",
295 "anyOf": [
296 {
297 "$ref": "#/definitions/CargoCrateType"
298 },
299 {
300 "type": "null"
301 }
302 ]
303 },
304 "name": {
305 "description": "Name as given in the `Cargo.toml` or generated from the file name",
306 "type": "string"
307 }
308 }
309 },
310 "Format": {
311 "description": "The target format for the include or exclude [GlobPattern].\n\nSee [Formats].",
312 "oneOf": [
313 {
314 "description": "Source distribution",
315 "type": "string",
316 "enum": [
317 "sdist"
318 ]
319 },
320 {
321 "description": "Wheel",
322 "type": "string",
323 "enum": [
324 "wheel"
325 ]
326 }
327 ]
328 },
329 "Formats": {
330 "description": "A single [Format] or multiple [Format] values for a [GlobPattern].",
331 "anyOf": [
332 {
333 "description": "A single [Format] value",
334 "allOf": [
335 {
336 "$ref": "#/definitions/Format"
337 }
338 ]
339 },
340 {
341 "description": "Multiple [Format] values",
342 "type": "array",
343 "items": {
344 "$ref": "#/definitions/Format"
345 }
346 }
347 ]
348 },
349 "GlobPattern": {
350 "description": "A glob pattern for the include and exclude configuration.\n\nSee [PyProjectToml::include] and [PyProject::exclude].\n\nBased on <https://python-poetry.org/docs/pyproject/#include-and-exclude>.",
351 "anyOf": [
352 {
353 "description": "A glob",
354 "type": "string"
355 },
356 {
357 "description": "A glob `path` with a `format` key to specify one or more [Format] values",
358 "type": "object",
359 "required": [
360 "format",
361 "path"
362 ],
363 "properties": {
364 "format": {
365 "description": "One or more [Format] values",
366 "allOf": [
367 {
368 "$ref": "#/definitions/Formats"
369 }
370 ]
371 },
372 "path": {
373 "description": "A glob",
374 "type": "string"
375 }
376 }
377 }
378 ]
379 },
380 "PlatformTag": {
381 "description": "Decides how to handle manylinux and musllinux compliance",
382 "oneOf": [
383 {
384 "description": "Use the manylinux_x_y tag",
385 "type": "object",
386 "required": [
387 "Manylinux"
388 ],
389 "properties": {
390 "Manylinux": {
391 "type": "object",
392 "required": [
393 "x",
394 "y"
395 ],
396 "properties": {
397 "x": {
398 "description": "GLIBC version major",
399 "type": "integer",
400 "format": "uint16",
401 "minimum": 0.0
402 },
403 "y": {
404 "description": "GLIBC version minor",
405 "type": "integer",
406 "format": "uint16",
407 "minimum": 0.0
408 }
409 }
410 }
411 },
412 "additionalProperties": false
413 },
414 {
415 "description": "Use the musllinux_x_y tag",
416 "type": "object",
417 "required": [
418 "Musllinux"
419 ],
420 "properties": {
421 "Musllinux": {
422 "type": "object",
423 "required": [
424 "x",
425 "y"
426 ],
427 "properties": {
428 "x": {
429 "description": "musl libc version major",
430 "type": "integer",
431 "format": "uint16",
432 "minimum": 0.0
433 },
434 "y": {
435 "description": "musl libc version minor",
436 "type": "integer",
437 "format": "uint16",
438 "minimum": 0.0
439 }
440 }
441 }
442 },
443 "additionalProperties": false
444 },
445 {
446 "description": "Use the native linux tag",
447 "type": "string",
448 "enum": [
449 "Linux"
450 ]
451 }
452 ]
453 },
454 "SdistGenerator": {
455 "description": "Source distribution generator",
456 "oneOf": [
457 {
458 "description": "Use `cargo package --list`",
459 "type": "string",
460 "enum": [
461 "cargo"
462 ]
463 },
464 {
465 "description": "Use `git ls-files`",
466 "type": "string",
467 "enum": [
468 "git"
469 ]
470 }
471 ]
472 },
473 "TargetConfig": {
474 "description": "Target configuration",
475 "type": "object",
476 "properties": {
477 "macos-deployment-target": {
478 "description": "macOS deployment target version",
479 "type": [
480 "string",
481 "null"
482 ]
483 }
484 }
485 }
486 }
487 }