現象
Diesel
のコンパイル時に以下のエラーが出てdotenv
のコンパイルが失敗する。
error[E0046]: not all trait items implemented, missing: `extract_backtrace`
(中略)
error: Could not compile `dotenv`.
warning: build failed, waiting for other jobs to finish...
error: build failed
対処方法
以下をCargo.toml
に明記する。
[dependencies]
dotenv = "0.10.*" # バージョンは適宜変更
環境
- OS: macOS Sierra 10.12.6
- Rust: 0.19.0 / 0.21.0 Nightly
- Cargo: 0.20.0
- Diesel: 0.15.2
- dotenv: 0.10.1