1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[]
= "pythonrs"
= "0.1.0"
= "2021"
= "1.80"
= ["MenkeTechnologies <linux.dev25@gmail.com>"]
= "Python as a fusevm frontend: a lexer/parser and compiler to fusevm::Chunk on a PyHost object heap, with no bespoke VM or JIT — the first compiled standalone Python runtime"
= "MIT"
= "https://github.com/MenkeTechnologies/pythonrs"
= "https://menketechnologies.github.io/pythonrs/"
= "https://docs.rs/pythonrs"
= "README.md"
= ["python", "interpreter", "compiler", "jit", "fusevm"]
= ["command-line-utilities", "compilers"]
= true
# Dev-only artifacts kept out of the published crate. Consumers get src + the
# `python`/gen-docs/parity bins, the man page, and shell completions — not the
# HUD site, CI config, integration-test corpus, self-test .py examples, or the
# bug tracker. None are referenced at compile time (no include_str! into them),
# so the packaged crate still builds and its bins run.
= [
"/docs/",
"/.github/",
"/tests/",
"/examples/",
"/scripts/",
"/BUGS.md",
]
# pythonrs is a standalone crate, not a workspace member. An explicit empty
# `[workspace]` stops cargo walking up to the MenkeTechnologiesMeta parent.
[]
[]
= "pythonrs"
= "src/lib.rs"
# staticlib so an AOT object can be linked against the pythonrs runtime (the
# extension-op dispatch + the fusevm AOT runtime) into a standalone native
# executable via `python --build`.
= ["rlib", "staticlib"]
[[]]
= "python"
= "src/main.rs"
# Offline generator for docs/reference.html — renders the builtin/method
# reference (src/lsp.rs corpus) as a static page. Run before pushing Pages.
[[]]
= "gen-docs"
= "src/bin/gen_docs.rs"
# Differential parity harness: runs the corpus through pythonrs and the reference
# `python3`, diffing stdout. Development tool — needs `python3` on PATH, so CI
# never runs it; its frozen outputs live in tests/data/parity_expected.txt, which
# tests/parity.rs replays with no `python3` installed.
[[]]
= "parity"
= "src/bin/parity.rs"
# Differential parity FUZZER: generates thousands of deterministic-output Python
# snippets (biased toward float repr, int //-/%- sign rules, bignum, slices, the
# format mini-language, string methods) and diffs `python -c` against the
# reference `python3 -c`, delta-debugging every divergence to a minimal repro.
# Subprocess-only (never links the lib); std-only (no `rand`). Dev tool — needs
# `python3` on PATH, so CI never runs it.
[[]]
= "parity-fuzz"
= "src/bin/parity_fuzz.rs"
[]
# Python executes on fusevm. pythonrs is a pure frontend: it lowers Python to
# fusevm bytecode (src/compiler.rs) and hosts the Python object heap
# (src/host.rs, reached from fusevm's extension handler). Object/str/list/dict
# cells ride through the VM as `Value::Obj(u32)` handles into that heap.
#
# `jit-disk-cache` turns on fusevm's three-tier Cranelift JIT *and* its
# persistent on-disk cache of compiled native code (keyed by chunk hash), so hot
# Python loops trace-compile and warm runs skip recompilation. `aot` enables the
# ahead-of-time object emitter behind `python --build`.
= { = "0.14.10", = ["jit", "jit-disk-cache", "aot"] }
= { = "4.5", = ["derive", "cargo"] }
= "2.0"
= "2.1"
# Python dict preserves insertion order (guaranteed since 3.7, observable in
# iteration/repr).
= "2"
# rkyv-backed bytecode cache at ~/.pythonrs/scripts.rkyv (mirrors zshrs/rubylang):
# the outer shard is a zero-copy rkyv archive; the inner per-script fusevm::Chunk
# is bincode (fusevm::Chunk is serde-owned, not rkyv::Archive). Versioned from
# day one so a cached .py that worked never breaks (compat floor).
= { = "0.7", = ["validation", "archive_le", "size_32"] }
= "1.3"
= "0.9"
= "5"
= "1"
# LSP (`python --lsp`) + DAP (`python --dap`) over stdio. libc gives the DAP
# server a pipe + dup2 to capture the debuggee's stdout (print) so program output
# streams as `output` events instead of corrupting the JSON-RPC channel.
= "0.7.9"
= "0.97.0"
= { = "1", = ["derive"] }
= "1"
= "0.2"
# Interactive REPL (`python --repl` / TTY fallthrough): reedline line editor,
# nu-ansi-term for the banner/status colors, sysinfo for the live stats box.
= "0.47.0"
= "0.50"
= { = "0.38", = false, = ["system"] }
= "0.8"
# Regex engine backing the `re` module.
= "1"
= "0.3"
# Stackful same-thread coroutines backing Python generators (yield) and the
# async event loop. Switches the native stack on the SAME OS thread, so the
# thread_local! PyHost object heap is shared across a generator suspend/resume.
= "0.3"
# Arbitrary-precision integers: Python `int` is unbounded, so values that fit
# stay `i64` and only the overflow path allocates a `BigInt` heap object.
= "0.4"
= "0.1"
= "0.2"
# Exact rationals backing `fractions.Fraction` and complex support.
= "0.4"
= "0.4"
[]
= "3"