feat(deltachat-repl): built-in QR code printer

Print QR codes with Rust code
instead of depending on external `qrencode`.
This commit is contained in:
link2xt
2024-10-15 22:36:14 +00:00
parent 3a72188548
commit f14880146a
4 changed files with 42 additions and 16 deletions

39
Cargo.lock generated
View File

@@ -1109,6 +1109,28 @@ version = "0.8.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
[[package]]
name = "crossterm"
version = "0.28.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
dependencies = [
"bitflags 2.6.0",
"crossterm_winapi",
"parking_lot",
"rustix",
"winapi",
]
[[package]]
name = "crossterm_winapi"
version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
dependencies = [
"winapi",
]
[[package]]
name = "crunchy"
version = "0.2.2"
@@ -1403,6 +1425,7 @@ dependencies = [
"dirs",
"log",
"nu-ansi-term",
"qr2term",
"rusqlite",
"rustyline",
"tokio",
@@ -4457,6 +4480,22 @@ dependencies = [
"unarray",
]
[[package]]
name = "qr2term"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6867c60b38e9747a079a19614dbb5981a53f21b9a56c265f3bfdf6011a50a957"
dependencies = [
"crossterm",
"qrcode",
]
[[package]]
name = "qrcode"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec"
[[package]]
name = "qrcodegen"
version = "1.8.0"