#bug #file #file-extension #directory #include-str #publish #mre

构建 include_str_rs_file_mre

一个 include_str! 嵌套目录错误的 MRE

2 个版本

0.1.1 2019年7月15日
0.1.0 2019年7月15日

#455 in 构建工具

每月 28 次下载

MIT 许可证

2KB

[最小可复现

示例](https://stackoverflow.com/help/minimal-reproducible-example) of a bug in include_str!

cargo publish fails when you use include_str! on a file with the rs file extension.

复现步骤

  1. 克隆此仓库

gitclone https://github.com/masonforest/include_str_rs_file_mre

  1. 尝试发布仓库

解决方案

作为一个解决方案,你可以给文件添加不同的后缀,例如 file.rs.txt

无运行时依赖