summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2020-11-20 23:33:51 +0100
committerLibravatar GitHub <noreply@github.com>2020-11-20 23:33:51 +0100
commitea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff (patch)
treef13dd72d053592f1ea9e8213ade0a26704937a1b /wgpu
parent209056e1cd0fd74f508e11de2233123cc951640b (diff)
parentf259d44186a795067a189f2597ae357a375d832b (diff)
downloadiced-ea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff.tar.gz
iced-ea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff.tar.bz2
iced-ea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff.zip
Merge pull request #622 from hecrj/feature/qr_code-widget
`QRCode` widget
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/Cargo.toml1
-rw-r--r--wgpu/src/widget.rs8
-rw-r--r--wgpu/src/widget/qr_code.rs2
3 files changed, 11 insertions, 0 deletions
diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml
index 01fd720b..4d9f9ada 100644
--- a/wgpu/Cargo.toml
+++ b/wgpu/Cargo.toml
@@ -10,6 +10,7 @@ repository = "https://github.com/hecrj/iced"
[features]
svg = ["resvg"]
canvas = ["iced_graphics/canvas"]
+qr_code = ["iced_graphics/qr_code"]
default_system_font = ["iced_graphics/font-source"]
[dependencies]
diff --git a/wgpu/src/widget.rs b/wgpu/src/widget.rs
index 1dae26f5..177ae1b6 100644
--- a/wgpu/src/widget.rs
+++ b/wgpu/src/widget.rs
@@ -52,6 +52,14 @@ pub mod canvas;
#[doc(no_inline)]
pub use canvas::Canvas;
+#[cfg(feature = "qr_code")]
+#[cfg_attr(docsrs, doc(cfg(feature = "qr_code")))]
+pub mod qr_code;
+
+#[cfg(feature = "qr_code")]
+#[doc(no_inline)]
+pub use qr_code::QRCode;
+
pub use iced_native::Space;
/// A container that distributes its contents vertically.
diff --git a/wgpu/src/widget/qr_code.rs b/wgpu/src/widget/qr_code.rs
new file mode 100644
index 00000000..7b1c2408
--- /dev/null
+++ b/wgpu/src/widget/qr_code.rs
@@ -0,0 +1,2 @@
+//! Encode and display information in a QR code.
+pub use iced_graphics::qr_code::*;