zust-0.2.2 is not a library.
通用 zust 脚本运行器
用法: zust <script.zs> [args...] zust -c|--check <script.zs>
第一个位置参数是 .zs 脚本路径,后续所有参数都进 ctx.args 数组传给脚本。
zust 脚本的 main(ctx) 函数会被调用,ctx 至少包含:
args: List,所有命令行参数(脚本名后的部分)script: String,本次执行的 .zs 路径cwd: String,当前工作目录
-c/--check 只跑编译/语义检查(对应 compiler::import_file),不查找
入口函数、不分配 ctx、不调用 JIT。退出码:成功 0、编译失败非零。