rust启用r2d2以后就会提示缺少DLL:
error: process didn't exit successfully: target\debug\backend.exe
(exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)
diesel = { version = "1.4", features = ["postgres", "r2d2", "chrono"] } r2d2 = "0.8"
尝试重建项目了,但还是这样。
1
共 3 条评论, 1 页
评论区
写评论感谢支持,最后是把postgresql/16目录下的bin和lib文件夹的所有内容全部复制到target/debug文件夹里然后解决了。
找没趣,用sqlx不香么。
https://github.com/diesel-rs/diesel/discussions/2947