fusion-engineering / inline-python

Inline Python code directly in your Rust code
https://docs.rs/inline-python
BSD 2-Clause "Simplified" License
1.15k stars 37 forks source link

Call Py_CompileString at compile time #3

Closed m-ou-se closed 5 years ago

m-ou-se commented 5 years ago

It should be possible to call Py_CompileString at compile time (in the proc macro), and only store the Python bytecode in the Rust binary. That should save both space and parsing time in the resulting binary.

m-ou-se commented 5 years ago

This would also show the user any Python syntax errors during compile time instead of only at run time.

tbodt commented 5 years ago

This issue, and the entire project, is both amazing and horrifying

de-vri-es commented 5 years ago

Implemented with #5 :balloon: