2023年11月6日

Rust 在可执行文件中嵌入代码版本信息

摘要: 缘起 我想要最终编译出的可执行文件中包含代码仓库的版本信息 fn main() { println!("Hello RustHub"); // git rev-parse --short HEAD let commit_hash = "6c1b45f"; println!("commit_hash: 阅读全文

posted @ 2023-11-06 14:13 明天有风吹 阅读(65) 评论(0) 推荐(0) 编辑

导航

+V atob('d2h5X251bGw=')

请备注:from博客园