qr-scanner-0.2.1 is not a library.
QR Scanner
A cross-platform QR code scanner built with Rust. Features:
- Screen Area Selection: Click "Scan QR" to gray out the screen and drag a rectangle over a QR code
- Image Paste: Copy an image (right-click "Copy Image" on web) and paste it for QR extraction
- Clipboard Integration: Scan results are automatically copied to clipboard
- History: Keeps track of recent scans
- System Tray (optional): Run from system tray with double-click to scan
Requirements
Build Requirements:
- Rust 1.85+ (install via
rustup)
Runtime Dependencies (Linux):
For screen capture:
- GNOME:
gnome-screenshot(usually pre-installed) - KDE Plasma:
spectacle - Xfce:
xfce4-screenshooter - Sway/Wayland:
slopandgrim
For clipboard paste:
- X11:
xclip - Wayland:
wl-clipboard
Runtime Dependencies (macOS):
screencapture(built-in, no installation needed)
For System Tray Support (Linux):
For System Tray Support (Windows/Mac):
No additional dependencies needed - builds out of the box.
Build Instructions
Basic Build (no system tray):
With System Tray:
Usage
- Run the application:
./target/release/qr-scanner - Click "Scan QR" button
- Drag a rectangle over the QR code on your screen
- The decoded text will appear in the result box and be copied to clipboard
Paste Image:
- Right-click an image on a webpage and select "Copy Image"
- In QR Scanner, expand "Paste Image" section
- Click "Paste from Clipboard"
Platform Support
- ✅ Linux (tested)
- ✅ Windows (should work)
- ✅ macOS (should work)
Dependencies
eframe(0.31) - GUI framework (egui)screenshots(0.8) - Screen capture (uses libwayshot for Wayland)rqrr(0.8) - QR code decodingarboard(3.3) - Clipboard accessimage(0.25) - Image processingbase64(0.22) - Base64 encoding/decoding for clipboard imagesrfd(0.15) - Native file dialogstray-icon(0.14) - System tray (optional feature, enabled withsystem-trayfeature flag)