aboutsummaryrefslogtreecommitdiffstats
path: root/src/consts.rs
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2022-09-18 03:40:33 +0000
committerGitHub <noreply@github.com>2022-09-18 03:40:33 +0000
commit9b4be68d7ecbf7737ff62c03017b5111f12a4a28 (patch)
treeef648b44467de162cb75e8498554f7954f9601f7 /src/consts.rs
parentMerge pull request #905 from svenstaro/dependabot/cargo/sha2-0.10.6 (diff)
parentMerge branch 'master' into qrcode (diff)
downloadminiserve-9b4be68d7ecbf7737ff62c03017b5111f12a4a28.tar.gz
miniserve-9b4be68d7ecbf7737ff62c03017b5111f12a4a28.zip
Merge pull request #848 from cyqsimon/qrcode
Switch to `fast_qr` lib
Diffstat (limited to 'src/consts.rs')
-rw-r--r--src/consts.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/consts.rs b/src/consts.rs
new file mode 100644
index 0000000..d864683
--- /dev/null
+++ b/src/consts.rs
@@ -0,0 +1,7 @@
+use fast_qr::ECL;
+
+/// The error correction level to use for all QR code generation.
+pub const QR_EC_LEVEL: ECL = ECL::L;
+
+/// The margin size for the SVG QR code on the webpage.
+pub const SVG_QR_MARGIN: usize = 1;