From 8543d2d61fbafde6222e9b95f9604b41570db477 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Wed, 20 Jul 2022 16:26:08 +0800 Subject: Switch to `qrcode` lib --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index de73987..9094883 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ mime = "0.3" nanoid = "0.4" percent-encoding = "2" port_check = "0.1" -qrcodegen = "1" +qrcode = "0.12.0" rustls = { version = "0.20", optional = true } rustls-pemfile = { version = "1.0", optional = true } serde = { version = "1", features = ["derive"] } -- cgit v1.2.3 From c2ece55040d4f1f03e189636895645435d762322 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Wed, 20 Jul 2022 20:09:55 +0800 Subject: Fix tests --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 9094883..1bac97e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,6 +69,7 @@ tls = ["rustls", "rustls-pemfile", "actix-web/rustls"] [dev-dependencies] assert_cmd = "2" assert_fs = "1" +fake-tty = "0.2.0" predicates = "2" pretty_assertions = "1.2" regex = "1" -- cgit v1.2.3 From 3c0d0cfffe6a647ff91bd74ebe0c3085032fc646 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Sat, 23 Jul 2022 00:46:55 +0800 Subject: Disable broken tests for Windows --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 1bac97e..1876320 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,6 @@ tls = ["rustls", "rustls-pemfile", "actix-web/rustls"] [dev-dependencies] assert_cmd = "2" assert_fs = "1" -fake-tty = "0.2.0" predicates = "2" pretty_assertions = "1.2" regex = "1" @@ -78,5 +77,9 @@ rstest = "0.15" select = "0.5" url = "2" +[target.'cfg(not(windows))'.dev-dependencies] +# fake_tty does not support Windows for now +fake-tty = "0.2.0" + [build-dependencies] grass = "0.11" -- cgit v1.2.3 From 9f7d5a8aeaf252fb51d88b965b3a324e8e815f37 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 1 Sep 2022 19:37:39 +0800 Subject: Fix drop-down QR code --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 1876320..b7eb520 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,7 @@ get_if_addrs = "0.5" hex = "0.4" http = "0.2" httparse = "1" +lazy_static = "1.4.0" libflate = "1" log = "0.4" maud = "0.23" @@ -45,6 +46,7 @@ nanoid = "0.4" percent-encoding = "2" port_check = "0.1" qrcode = "0.12.0" +regex = "1" rustls = { version = "0.20", optional = true } rustls-pemfile = { version = "1.0", optional = true } serde = { version = "1", features = ["derive"] } @@ -71,7 +73,6 @@ assert_cmd = "2" assert_fs = "1" predicates = "2" pretty_assertions = "1.2" -regex = "1" reqwest = { version = "0.11", features = ["blocking", "multipart", "rustls-tls"], default-features = false } rstest = "0.15" select = "0.5" -- cgit v1.2.3 From aa2dda7885a83354d1519eef62397b90189a9802 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 1 Sep 2022 20:20:27 +0800 Subject: Switch to `fast_qr` crate --- Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index b7eb520..1294a6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,12 +32,12 @@ clap = { version = "3.2", features = ["derive", "cargo", "wrap_help"] } clap_complete = "3.2.3" clap_mangen = "0.1" comrak = "0.14.0" +fast_qr = "0.3.1" futures = "0.3" get_if_addrs = "0.5" hex = "0.4" http = "0.2" httparse = "1" -lazy_static = "1.4.0" libflate = "1" log = "0.4" maud = "0.23" @@ -45,8 +45,6 @@ mime = "0.3" nanoid = "0.4" percent-encoding = "2" port_check = "0.1" -qrcode = "0.12.0" -regex = "1" rustls = { version = "0.20", optional = true } rustls-pemfile = { version = "1.0", optional = true } serde = { version = "1", features = ["derive"] } @@ -73,6 +71,7 @@ assert_cmd = "2" assert_fs = "1" predicates = "2" pretty_assertions = "1.2" +regex = "1" reqwest = { version = "0.11", features = ["blocking", "multipart", "rustls-tls"], default-features = false } rstest = "0.15" select = "0.5" -- cgit v1.2.3