Если я попытаюсь использовать postgres
особенность SQLx Rust следующим образом,
[dependencies]
sqlx = { version = "0.3.3", default-features=false , features=["runtime-async-std", "macros", "postgres", "all-type"] }
Тогда я получу ошибку компиляции следующим образом
Compiling sqlx-core v0.3.4
error[E0658]: use of unstable library feature 'matches_macro'
--> /Users/asnimpansari/.cargo/registry/src/github.com-1ecc6299db9ec823/sqlx-core-0.3.4/src/postgres/value.rs:78:12
|
78 | if matches!(self.data, Some(PgData::Binary(_))) {
| ^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/65721
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.
error: could not compile `sqlx-core`.
Вместо этого, если я использую mysql
вместо postgres
сборка успешна.
➜ ~ rustc -V
rustc 1.41.1 (f3e1a954d 2020-02-24)