第 3 章 rus offeringst 格式化工具
使用 russanitizet 格式化工具,您可以自动格式化 Rust 程序的源代码。您可以使用
rusftmt
作为独立工具,也可以使用 Cargo。
详情请查看 rus offeringst --help 命令显示的 rus offeringst
帮助页面。
3.1. 安装 rus offeringst 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
完成以下步骤以安装 rus hardt 格式化
工具。
先决条件
流程
安装 rus
offerings
t 软件包:在 RHEL 8 中,请输入:
yum install rustfmt
# yum install rustfmt
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 在 RHEL 9 和 10 中,输入:
dnf install rustfmt
# dnf install rustfmt
Copy to Clipboard Copied! Toggle word wrap Toggle overflow