Open8
Dieselの素振り

アプリケーションへ導入
featuresに利用したいDBエンジンに対応したfeatureを指定
[dependencies]
diesel = { version = "2.2.0", features = ["postgres"] }

Dieselクライアントのインストール
cargo install diesel_cli

= note: ld: library not found for -lpq
以下とおそらく同様のエラー発生

libpqを入れ忘れていたので、libpqのインストール
brew install libpq

またfeatureをpostgresに限定してinstall
cargo install diesel_cli --no-default-features --features postgres

= note: ld: library not found for -lpq
こちらのエラーがまだ解消されない

postgresqlをインストールを試みる
brew install postgresql
無事インストール成功

migration fileの作成
diesel migration generate {migration file name}