deadpool-postgres 0.10开始,需要手动开启serde
feature。否则以下代码将报错:error[E0277]: the trait bound "deadpool_postgres::Config: config::_::_serde::Deserialize<'_>" is not satisfied
#[derive(Deserialize)]
pub struct Config {
pub pg: deadpool_postgres::Config,
}
0.9 版本
deadpool-postgres = "0.9"