weirdnet-code-spaces 0.1.0

Weirdnet code spaces: math, Polars, Rust and typed Python sources compiled into plugins against the weirdnet-plugin SDK, content-addressed builds, ABI-checked loading, trust hashes and space line-ups, under an application profile.
Documentation
1
use stdpython :: * ; pub static MODULE_VAR : & 'static str = "initialized" ; pub fn helper () -> Result < & 'static str , PyException > { print (& ("3. Helper function")) ; return Ok ("helper_result") ; } pub fn python_main () -> Result < String , PyException > { let local_helper ; print (& ("5. User main function")) ; local_helper = helper () ? ; ; return Ok (format ! ("main_result: {}" , py_display (& (local_helper)))) ; } fn __module_init__ () -> Result < () , PyException > { let helper_result ; ; print (& ("1. Module starts")) ; print (& (format ! ("2. Module var: {}" , py_display (& (MODULE_VAR))))) ; helper_result = helper () ? ; ; print (& (format ! ("4. Helper result: {}" , py_display (& (helper_result))))) ; print (& ("6. Before main block")) ; Ok (()) } fn main () { let __rython_result = (|| -> Result < () , PyException > { __module_init__ () ? ; let user_main_result ; ; print (& ("7. Main block starts")) ; user_main_result = python_main () ? ; ; print (& (format ! ("8. User main returned: {}" , py_display (& (user_main_result))))) ; print (& (format ! ("9. Module var still: {}" , py_display (& (MODULE_VAR))))) ; print (& ("10. Execution completed")) ; Ok (()) }) () ; if let Err (e) = __rython_result { eprintln ! ("{}" , e) ; std :: process :: exit (1) ; } }