Home
Sign Up
Sign In
V2EX
›
问与答
rust 有没有像 windows c++平台那样 优雅的嵌入资源(resource)到编译出来的二进制文件内的库呢
proxytoworld
·
Aug 19, 2022
· 2138 views
This topic created in 1544 days ago, the information mentioned may be changed or developed.
并且可以方便提取,想实现某些 exe ,提取程序运行的 dll/各种资源 等到某个目录内,或者内存加载
库呢
二进制
Rust
resource
1 replies
•
2022-08-19 10:31:57 +08:00
AddictX
Aug 19, 2022
1
https://doc.rust-lang.org/std/macro.include_bytes.html
效果和`Go embed`差不多,直接绑定到变量。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1131 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 23:09
·
PVG 07:09
·
LAX 15:09
·
JFK 18:09
♥ Do have faith in what you're doing.
❯