This is the Windows app named rust_cmd_lib whose latest release can be downloaded as v1.0.10sourcecode.tar.gz. It can be run online in the free hosting provider OnWorks for workstations.
使用 OnWorks 免费下载并在线运行名为 rust_cmd_lib 的应用程序。
请按照以下说明运行此应用程序:
- 1. 在您的 PC 中下载此应用程序。
- 2. 在我们的文件管理器 https://www.onworks.net/myfiles.php?username=XXXXX 中输入您想要的用户名。
- 3. 在这样的文件管理器中上传这个应用程序。
- 4. 从本网站启动任何 OS OnWorks 在线模拟器,但更好的 Windows 在线模拟器。
- 5. 从您刚刚启动的 OnWorks Windows 操作系统,使用您想要的用户名转到我们的文件管理器 https://www.onworks.net/myfiles.php?username=XXXXX。
- 6. 下载应用程序并安装。
- 7. 从您的 Linux 发行版软件存储库下载 Wine。 安装后,您可以双击该应用程序以使用 Wine 运行它们。 您还可以尝试 PlayOnLinux,这是 Wine 上的一个花哨界面,可帮助您安装流行的 Windows 程序和游戏。
Wine 是一种在 Linux 上运行 Windows 软件的方法,但不需要 Windows。 Wine 是一个开源的 Windows 兼容层,可以直接在任何 Linux 桌面上运行 Windows 程序。 本质上,Wine 试图从头开始重新实现足够多的 Windows,以便它可以运行所有这些 Windows 应用程序,而实际上不需要 Windows。
SCREENSHOTS
Ad
rust_cmd_lib
商品描述
rust_cmd_lib is a Rust library designed to make it easier to write shell-script–style tasks in Rust, blending the power and safety of Rust with the expressiveness of shell pipelines. It provides macros and utilities that let you spawn external processes, redirect input/output, and pipe commands together, all without invoking a shell. You can write something like run_cmd!(ls -l | grep foo > out.txt) in a more declarative style, rather than manually wiring up file descriptors, handles, and child processes. The library also supports features like variable substitution, scoped environment settings, and defining custom commands (functions) that behave like built-ins. It hides much of the boilerplate of std::process::Command when you're doing simple task automations, but still allows full flexibility when needed. Because it avoids launching a shell, it reduces some classes of security and quoting errors, while improving readability of scripting logic inside a Rust binary.
功能
- 宏如 run_cmd! 和 run_fun! 可以执行外部命令,并捕获输出、链接、错误处理等。
- 支持管道和重定向(因此您可以在宏使用中编写管道和重定向,而不必手动生成子进程和连接 IO)
- 用于更直观地传递参数的实用程序(文字字符串、变量插值),因此脚本比冗长的进程生成代码更自然
- 功能标志和可选依赖项,以便您可以根据需要启用或禁用部分功能(日志记录、管道故障等)
- 示例和测试套件,包括“俄罗斯方块游戏示例”等,展示了如何表达更复杂的 shell 脚本行为。
- 库设计:尽可能不生成额外的 shell,从而减少运行时开销并提高转义的安全性等。
程式语言
锈
分类
此应用程序也可从 https://sourceforge.net/projects/rust-cmd-lib.mirror/ 获取。它已托管在 OnWorks 中,以便通过我们的免费操作系统之一以最便捷的方式在线运行。
