Skip to content

Commit

Permalink
downgrade rusqlite dependency from 0.24.2 to 0.23.1 for Buster
Browse files Browse the repository at this point in the history
The Rust compiler version on Debian 10 ("Buster") does not support
the matches_macro feature used in rusqlite 0.24.2. It fails with

    error[E0658]: use of unstable library feature 'matches_macro'
       --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/rusqlite-0.24.2/src/types/from_sql.rs:146:44
        |
    146 |         i64::column_result(value).map(|i| !matches!(i, 0))
        |                                            ^^^^^^^
        |
        = note: for more information, see rust-lang/rust#65721
    error: aborting due to previous error
    For more information about this error, try `rustc --explain E0658`.
    error: could not compile `rusqlite`.

when trying to compile rusqlite 0.24.2. However, it does compile
with the older version 0.23.1 of rusqlite. Until there is a more
recent Rust compiler version available in Debian 10, e.g. via the
backports repository, it will probably stay at this version.
  • Loading branch information
striezel committed Dec 24, 2020
1 parent c9be4ce commit 9beda00
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 28 deletions.
91 changes: 64 additions & 27 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ edition = "2018"

[dependencies]
regex = "1.4.2"
rusqlite = "0.24.2"
rusqlite = "0.23.1"

0 comments on commit 9beda00

Please sign in to comment.