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 :: * ; use stdpython :: os :: execv ; use stdpython :: os :: path :: dirname ; fn __module_init__ () -> Result < () , PyException > { let path ; let result ; ; print (& ("Testing module structure:")) ; print_parts (& [py_display (& ("sys.executable:")) , py_display (& ((* sys :: executable)))] , " " , "\n") ; path = dirname ("/home/user/file.txt") ; ; print_parts (& [py_display (& ("dirname result:")) , py_display (& (path))] , " " , "\n") ; result = { let args_owned : Vec < String > = vec ! ["echo" , "hello"] ; let args_vec : Vec < & str > = args_owned . iter () . map (| s | s . as_str ()) . collect () ; let cwd_str = None ; subprocess :: run (args_vec , Some (& cwd_str)) . unwrap () } ; ; print_parts (& [py_display (& ("subprocess returncode:")) , py_display (& (result . returncode))] , " " , "\n") ; Ok (()) } fn main () { if let Err (e) = __module_init__ () { eprintln ! ("{}" , e) ; std :: process :: exit (1) ; } }