Skip to content
File

Blob: src/pyodide/pyodide_extra.capnp

1.6 KB
1@0x96c290dbf479ac0c;
2using Cxx = import "/capnp/c++.capnp";
3$Cxx.namespace("workerd");
4 
5struct PackageLock {
6 packageDate @0 :Text;
7 lock @1 :Text;
8}
9const packageLocks :List(PackageLock) = [
10 %PACKAGE_LOCKS
11];
12 
13 
14struct PythonSnapshotRelease @0x89c66fb883cb6975 {
15 # Used to indicate a specific Python release that introduces a change which likely breaks
16 # existing memory snapshots.
17 #
18 # The versions/dates specified here are used to generate a filename for the package memory
19 # snapshots created by the validator. They are also used to generate a filename of the Pyodide
20 # and package bundle that gets downloaded for Python Workers.
21 pyodide @0 :Text;
22 # The Pyodide version, for example "0.26.0a2".
23 pyodideRevision @1 :Text;
24 # A date identifying a revision of the above Pyodide version. A change in this field but not
25 # the `pyodide` version field may indicate that changes to the workerd Pyodide integration code
26 # were made with the Pyodide version remaining the same.
27 #
28 # For example "2024-05-25".
29 packages @2 :Text;
30 # A date identifying a revision of the Python package bundle.
31 #
32 # For example "2024-02-18".
33 backport @3 :Int64;
34 # A number that is incremented each time we need to backport a fix to an existing Python release.
35 baselineSnapshotHash @4 :Text;
36 # A sha256 checksum hash of the baseline/universal memory snapshot to use for Python Workers using
37 # this release.
38 fieldName @5 :Text;
39 # Name of the corresponding feature flag
40 flagName @6 :Text;
41 realPyodideVersion @7 :Text;
42}
43 
44const releases :List(PythonSnapshotRelease) = [
45 %PYTHON_RELEASES
46];