将未编译的 Rust 资产复制到目标的推荐方法是什么

what's the recommended way to copy non-compiled rust assets to target

将未编译的 Rust 应用程序资产(例如 HTML 和图像文件)复制到构建目标目录的推荐方法是什么。

特别是,在项目根目录中放置一个 build.rs 脚本并手动编写这些操作是否真的是推荐的方法?

有宏,std::include_bytes!(file_path) and std::include_str!(file_path),用于将文件内容合并到编译后的二进制文件中。 (但是,文档并未明确说明合并部分)。

有多个additional standard macros