输入“柴油安装程序”时,必须启用postgres功能,但我安装了postgres
完全错误: hread 'main‘恐慌at’database.rs postgres://localhost:8080/diesel_demo需要postgres特性,但它没有启用。‘,柴油机_cli/src/database.rs:40:21注意:运行RUST_BACKTRACE=1环境变量显示回溯跟踪。
操作系统: arch linux
发布于 2022-06-27 04:40:05
在Cargo.toml中添加柴油依赖项时,应该启用这样的postgres功能:
diesel = { version = "1.4.8", features = ["postgres","64-column-tables","chrono","serde_json"] }检查您的依赖项并确保postgres功能已启用。
https://stackoverflow.com/questions/72756921
复制相似问题