demergent-labs / kybra

Python CDK for the Internet Computer
MIT License
80 stars 15 forks source link

Prebuilt stdlib #474

Closed lastmjs closed 5 months ago

lastmjs commented 5 months ago

Instead of conditionally compiling the Python stdlib into the canister Wasm binary only if it has not already been compiled and stored in stable memory, we instead just compile the stdlib on the developer's machine and always include it in the canister Wasm using the include_bytes macro. The stdlib compilation is what takes a long time, so the dev should hopefully only need to do this once, and the build artifacts might even work across Kybra versions since all Kybra projects share the same target directory.