< 返回版块

C-Jeril 发表于 2023-12-27 18:04

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"

尝试重建项目了,但还是这样。

评论区

写评论
作者 C-Jeril 2024-01-19 09:35

感谢支持,最后是把postgresql/16目录下的bin和lib文件夹的所有内容全部复制到target/debug文件夹里然后解决了。

github.com/shanliu/lsys 2023-12-29 22:17

找没趣,用sqlx不香么。

night-cruise 2023-12-29 20:25

https://github.com/diesel-rs/diesel/discussions/2947

1 共 3 条评论, 1 页