Ai
4 Star 10 Fork 0

Gitee 极速下载/RustPython

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/RustPython/RustPython
克隆/下载
build.rs 590 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ashwin Naren 提交于 2025-06-29 01:50 +08:00 . Display logo on windows executable (#5790)
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
println!("cargo:rerun-if-changed=logo.ico");
let mut res = winresource::WindowsResource::new();
if std::path::Path::new("logo.ico").exists() {
res.set_icon("logo.ico");
} else {
println!("cargo:warning=logo.ico not found, skipping icon embedding");
return;
}
res.compile()
.map_err(|e| {
println!("cargo:warning=Failed to compile Windows resources: {e}");
})
.ok();
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/mirrors/RustPython.git
git@gitee.com:mirrors/RustPython.git
mirrors
RustPython
RustPython
main

搜索帮助